-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocker-compose.yml
54 lines (52 loc) · 1.86 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
version: '3.1'
services:
ci:
image: 'linuxkitci/ci'
# The canary flag can be used to limit which branches you want to test:
command: '-v --web-ui http://localhost:8080/ --metadata-store tcp:db:5640 --canary=linuxkit/linuxkit/heads/master --canary=linuxkit/linuxkit-ci/heads/master'
ports:
- '8080:8080'
volumes:
# The LinuxKit build uses Docker to build things:
- '/var/run/docker.sock:/var/run/docker.sock'
# A Git clone of the linuxkit repository. Will be cloned automatically if missing:
- '/repos'
# The admin password:
- './local/secrets:/secrets'
# A local cache of the generated LinuxKit outputs.
- '/build-cache'
# Records which VMs we created, so we can clean up later.
- './local/ci-state:/ci-state'
# Pull from here instead of from GitHub
- './local/linuxkit:/fake-remote/linuxkit'
# SSH directory for accessing GCP instances
- './local/builder-ssh:/root/.ssh/builder-ssh'
environment:
# These will be imported from your local environment
- CLOUDSDK_CORE_PROJECT
- CLOUDSDK_COMPUTE_ZONE
- CLOUDSDK_IMAGE_BUCKET
# Use Docker Secrets for GCP keys
- CLOUDSDK_COMPUTE_KEYS=/run/secrets/gcp-key.json
- PROFILE=localhost
secrets:
- gcp-key.json
- builder-ssh
db:
image: 'datakit/db'
command: '-v --listen-9p tcp://0.0.0.0:5640 --git /data'
volumes:
- '/data'
bridge:
restart: always
image: 'datakit/local-bridge'
command: '--metadata-store tcp:db:5640 -v linuxkit/linuxkit:/linuxkit-src linuxkit/linuxkit-ci:/linuxkit-ci-src'
volumes:
# The location of the local repositories to monitor.
- './local/linuxkit:/linuxkit-src'
- './local/linuxkit-ci:/linuxkit-ci-src'
secrets:
gcp-key.json:
file: ./local/gcp-key.json
builder-ssh:
file: ./local/builder-ssh/id_rsa