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
| 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"] |
| #!/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 | |
| # |
| --- 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 |
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "log" | |
| "os" | |
| "os/exec" | |
| "strconv" | |
| "strings" |
| $ rm -fR ~/mygo/src/github.com/dotcloud/gordon | |
| $ rm -fR ~/mygo/src/github.com/docker/gordon | |
| $ go get github.com/dotcloud/gordon/pulls | |
| $ ls ~/mygo/src/github.com/dotcloud/gordon | |
| AUTHORS display.go github.go legacy MAINTAINERS pulls review.go utils.go | |
| color.go filters issues LICENSE.md maintainers.go README.md sorter.go | |
| $ ls ~/mygo/src/github.com/docker/gordon | |
| AUTHORS display.go github.go legacy MAINTAINERS pulls review.go utils.go | |
| color.go filters issues LICENSE.md maintainers.go README.md sorter.go |
| { | |
| "projection": [], | |
| "kinds": [{ | |
| "name": "Company" | |
| }], | |
| "filter": { | |
| "propertyFilter": { | |
| "property": { | |
| "name": "__key__" | |
| }, |
| containers: | |
| - image: "dockerfile/nginx" | |
| ports: | |
| - containerPort: 80 | |
| hostPort: 8080 |