demo: Update etcd

- Add prometheus node monitor
- Make the hyperkit VMs slightly bigger
- Add GCP upload
- Use env vars in infrakit startup script

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
Rolf Neugebauer 2017-04-16 15:14:48 -05:00 committed by Rolf Neugebauer
parent 846c96384f
commit c854d58ca4
4 changed files with 21 additions and 6 deletions

View File

@ -67,8 +67,18 @@ services:
- CAP_SETUID
- CAP_SETGID
net: host
- name: node_exporter
image: "linuxkit/node_exporter:0c7c1588e4cbce9cc946c1a84d3902b38b4b7ada"
capabilities:
- all
net: host
pid: host
binds:
- /proc:/host/proc
- /sys:/host/sys
- /:/rootfs
- name: etcd
image: "linuxkit/etcd"
image: "moby/etcd"
capabilities:
- CAP_CHOWN
- CAP_SETUID
@ -83,4 +93,8 @@ services:
outputs:
- format: kernel+initrd
- format: gcp-img
- format: gcp
project: docker4x
bucket: rolf
family: moby-demo
replace: true

View File

@ -14,9 +14,9 @@
"Plugin": "instance-hyperkit",
"Properties": {
"kernel+initrd": "etcd",
"Disk" : 1024,
"Disk" : 2048,
"CPUs" : 1,
"Memory" : 512
"Memory" : 1024
}
},
"Flavor": {

View File

@ -1,4 +1,4 @@
#! /bin/sh
docker build -t linuxkit/etcd .
docker build -t moby/etcd .
docker build -t etcd.local -f Dockerfile.local .

View File

@ -10,7 +10,8 @@ mkdir -p $INFRAKIT_HOME/cli
infrakit-flavor-vanilla &
infrakit-instance-hyperkit &
infrakit-instance-gcp --project docker4x --zone europe-west1-d &
infrakit-instance-gcp --project $CLOUDSDK_CORE_PROJECT --zone $CLOUDSDK_COMPUTE_ZONE &
# start the group plugin in the foreground. If it exits, it will take
# the others down as well.