Created
February 25, 2015 07:55
-
-
Save bmorton/343735730aa8400b9f3f to your computer and use it in GitHub Desktop.
Unit files for fleet repro for #1131
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=hello-world-0fbb804 | |
After=docker.service | |
[Service] | |
EnvironmentFile=/etc/environment | |
User=core | |
TimeoutStartSec=0 | |
ExecStartPre=/usr/bin/docker pull mmmhm/hello-world:0fbb804 | |
ExecStartPre=-/usr/bin/docker rm -f hello-world-0fbb804-%i | |
ExecStart=/usr/bin/docker run --name hello-world-0fbb804-%i -p 3000 mmmhm/hello-world:0fbb804 | |
ExecStartPost=/bin/sh -c "sleep 15; /usr/bin/etcdctl set /vulcand/upstreams/hello-world/endpoints/hello-world-0fbb804-%i http://$COREOS_PRIVATE_IPV4:$(echo $(/usr/bin/docker port hello-world-0fbb804-%i 3000) | cut -d ':' -f 2)" | |
ExecStop=/bin/sh -c "/usr/bin/etcdctl rm '/vulcand/upstreams/hello-world/endpoints/hello-world-0fbb804-%i' ; /usr/bin/docker rm -f hello-world-0fbb804-%i" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=hello-world-ee0f771 | |
After=docker.service | |
[Service] | |
EnvironmentFile=/etc/environment | |
User=core | |
TimeoutStartSec=0 | |
ExecStartPre=/usr/bin/docker pull mmmhm/hello-world:ee0f771 | |
ExecStartPre=-/usr/bin/docker rm -f hello-world-ee0f771-%i | |
ExecStart=/usr/bin/docker run --name hello-world-ee0f771-%i -p 3000 mmmhm/hello-world:ee0f771 | |
ExecStartPost=/bin/sh -c "sleep 15; /usr/bin/etcdctl set /vulcand/upstreams/hello-world/endpoints/hello-world-ee0f771-%i http://$COREOS_PRIVATE_IPV4:$(echo $(/usr/bin/docker port hello-world-ee0f771-%i 3000) | cut -d ':' -f 2)" | |
ExecStop=/bin/sh -c "/usr/bin/etcdctl rm '/vulcand/upstreams/hello-world/endpoints/hello-world-ee0f771-%i' ; /usr/bin/docker rm -f hello-world-ee0f771-%i" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment