File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ define deis_units
1919 sed -n 's/\(deis-.*\.service\).*/\1/p' | tr '\n' ' ')
2020endef
2121
22- # TODO: re-evaluate the fragile start order now that we're on fleet 0.3.2.
22+ # TODO: re-evaluate the fragile start order
2323COMPONENTS =builder cache controller database logger registry
2424ALL_COMPONENTS =$(COMPONENTS ) router
2525START_COMPONENTS =registry logger cache database
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ Upgrading from a previous Deis release? See [Upgrading Deis](http://docs.deis.io
1919
2020## Install prerequisites
2121On your workstation:
22- * Install [ Vagrant] ( http://www.vagrantup.com/downloads.html ) and [ VirtualBox] ( https://www.virtualbox.org/wiki/Downloads )
23- * Install the fleetctl client: Install v0.3.2 from the [ fleet GitHub page] ( https://github.com/coreos/fleet/releases ) .
22+ * Install [ Vagrant v1.6+ ] ( http://www.vagrantup.com/downloads.html ) and [ VirtualBox] ( https://www.virtualbox.org/wiki/Downloads )
23+ * Install the fleetctl client: Install v0.5.0 from the [ fleet GitHub page] ( https://github.com/coreos/fleet/releases ) .
2424* Install the Docker client if you want to run Docker commands locally (optional)
2525
2626## Additional setup for a multi-node cluster
Original file line number Diff line number Diff line change 1212end
1313
1414Vagrant . configure ( "2" ) do |config |
15- config . vm . box = "coreos-324.2 .0"
16- config . vm . box_url = "http://storage.core-os.net/coreos/amd64-usr/324.2 .0/coreos_production_vagrant.box"
15+ config . vm . box = "coreos-349.0 .0"
16+ config . vm . box_url = "http://storage.core-os.net/coreos/amd64-usr/349.0 .0/coreos_production_vagrant.box"
1717
1818 config . vm . provider :vmware_fusion do |vb , override |
19- override . vm . box_url = "http://storage.core-os.net/coreos/amd64-usr/324.2 .0/coreos_production_vagrant_vmware_fusion.box"
19+ override . vm . box_url = "http://storage.core-os.net/coreos/amd64-usr/349.0 .0/coreos_production_vagrant_vmware_fusion.box"
2020 end
2121
2222 config . vm . provider :virtualbox do |vb , override |
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ RUN apt-get install -yq aufs-tools iptables ca-certificates lxc
1616RUN echo "deb http://get.docker.io/ubuntu docker main" > /etc/apt/sources.list.d/docker.list
1717RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
1818RUN apt-get update -qy
19- RUN apt-get install -yq lxc-docker-0.11.1
19+ RUN apt-get install -yq lxc-docker-1.0.0
2020
2121# install recent pip
2222RUN wget -qO- https://raw.githubusercontent.com/pypa/pip/1.5.5/contrib/get-pip.py | python -
Original file line number Diff line number Diff line change 44 "Mappings" : {
55 "RegionMap" : {
66 "ap-northeast-1" : {
7- "AMI" : "ami-25175a24 "
7+ "AMI" : "ami-253b7324 "
88 },
99 "sa-east-1" : {
10- "AMI" : "ami-b96fc3a4 "
10+ "AMI" : "ami-8fab0492 "
1111 },
1212 "ap-southeast-2" : {
13- "AMI" : "ami-792ab043 "
13+ "AMI" : "ami-9f0c68a5 "
1414 },
1515 "ap-southeast-1" : {
16- "AMI" : "ami-58c9940a "
16+ "AMI" : "ami-ac1b44fe "
1717 },
1818 "us-east-1" : {
19- "AMI" : "ami-8a53a6e2 "
19+ "AMI" : "ami-820ff0ea "
2020 },
2121 "us-west-2" : {
22- "AMI" : "ami-a7d1a197 "
22+ "AMI" : "ami-7b8ff24b "
2323 },
2424 "us-west-1" : {
25- "AMI" : "ami-debdb89b "
25+ "AMI" : "ami-ea5650af "
2626 },
2727 "eu-west-1" : {
28- "AMI" : "ami-1df4396a "
28+ "AMI" : "ami-a73bf2d0 "
2929 }
3030 }
3131 },
Original file line number Diff line number Diff line change @@ -197,9 +197,7 @@ def attach(self, name):
197197[Service]
198198ExecStartPre=/usr/bin/docker pull {image}
199199ExecStartPre=/bin/sh -c "docker inspect {name} >/dev/null 2>&1 && docker rm -f {name} || true"
200- ExecStart=/bin/sh -c "port=$(docker inspect -f '{{{{range $k, $v := .config.ExposedPorts }}}}{{{{$k}}}}{{{{end}}}}' {image} | cut -d/ -f1) ; /usr/bin/docker run --name {name} -P -e PORT=$port {image} {command}"
201- ExecStartPost=/bin/sh -c "until docker inspect {name} >/dev/null 2>&1; do sleep 1; done"; \
202- /bin/sh -c "arping -Idocker0 -c1 `docker inspect -f '{{{{ .NetworkSettings.IPAddress }}}}' {name}`"
200+ ExecStart=/bin/sh -c "port=$(docker inspect -f '{{{{range $k, $v := .ContainerConfig.ExposedPorts }}}}{{{{$k}}}}{{{{end}}}}' {image} | cut -d/ -f1) ; docker run --name {name} -P -e PORT=$port {image} {command}"
203201ExecStop=/usr/bin/docker rm -f {name}
204202TimeoutStartSec=20m
205203"""
@@ -225,8 +223,8 @@ def attach(self, name):
225223BindsTo={name}.service
226224
227225[Service]
228- ExecStartPre=/bin/sh -c "until /usr/bin/ docker inspect {name} >/dev/null 2>&1; do sleep 1; done"
229- ExecStart=/bin/sh -c "/usr/bin/ docker logs -f {name} 2>&1 | logger -p local0.info -t {app}[{c_type}.{c_num}] --udp --server $(etcdctl get /deis/logs/host | cut -d ':' -f1) --port $(etcdctl get /deis/logs/port | cut -d ':' -f2)"
226+ ExecStartPre=/bin/sh -c "until docker inspect {name} >/dev/null 2>&1; do sleep 1; done"
227+ ExecStart=/bin/sh -c "docker logs -f {name} 2>&1 | logger -p local0.info -t {app}[{c_type}.{c_num}] --udp --server $(etcdctl get /deis/logs/host | cut -d ':' -f1) --port $(etcdctl get /deis/logs/port | cut -d ':' -f2)"
230228
231229[X-Fleet]
232230X-ConditionMachineOf={name}.service
You can’t perform that action at this time.
0 commit comments