minici is a docker continuous integration that fits in a gist.
- snapshot and reuse disk
- archive logs on gs
- plug with gh hooks
- deploy to appengine
package main | |
import ( | |
"bufio" | |
"fmt" | |
"log" | |
"os" | |
"os/exec" | |
"strconv" | |
"strings" |
--- sandbox.py.orig 2014-09-23 13:26:01.151339089 -0700 | |
+++ sandbox.py 2014-09-23 13:28:04.452163114 -0700 | |
@@ -21,6 +21,7 @@ | |
import imp | |
import os | |
import re | |
+import site | |
import sys | |
import traceback | |
import types |
#!/bin/bash | |
# Copyright 2014 Google Inc. All rights reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
FROM google/python:2.7 | |
ADD requirements.txt /code/requirements.txt | |
RUN pip install -r /code/requirements.txt | |
ADD . /code | |
WORKDIR /code | |
ENTRYPOINT ["python", "app.py"] |
# Copyright 2015 Google Inc. All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
Assuming you installed docker machine and a docker build with identity support locally, and a Google Cloud Platform Project.
PROJECT=my-gcp-project
ZONE=us-central1-f
machine create --driver google --google-project ${PROJECT} --google-zone ${ZONE} \
gcp-machine
export DOCKER_HOST=$(machine url)
export DOCKER_AUTH=identity
docker version
// Copyright 2015 Google Inc. All Rights Reserved. | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, |
isoc is yet another "standard" container format.
It brings together the best bits of Docker Image Specification 1.0 and App Container Specification 0.3.0+git into a comprehensive yet portable container archive format, at the cost of a "few" duplicated bytes.
An isoc image is a appc image embedded in a docker image, but also a docker image embedded in a appc image. Some people might describe it as an iso-contained container format.
"pot-de-lait"
podlet
is a tiny CLI tool & daemon to launch kubernetes pods on a bare docker host.
This is a proof of concept, not affiliated to the main kubernetes project, and it only supports a subset of the v1beta3 PodSpec.