Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
chore(versioning): specify image tag in docker run and `docker hist…
Browse files Browse the repository at this point in the history
…ory`
  • Loading branch information
mboersma committed Jun 5, 2014
1 parent cef943a commit 38c2fb2
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions builder/systemd/deis-builder.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ Description=deis-builder
[Service]
EnvironmentFile=/etc/environment
TimeoutStartSec=20m
ExecStartPre=/bin/sh -c "docker history deis/builder >/dev/null || docker pull deis/builder:v0.9.1"
ExecStartPre=/bin/sh -c "docker history deis/builder:v0.9.1 >/dev/null || docker pull deis/builder:v0.9.1"
ExecStartPre=/bin/sh -c "docker inspect deis-builder >/dev/null && docker rm -f deis-builder || true"
ExecStartPre=/bin/sh -c "docker inspect deis-builder-data >/dev/null 2>&1 || docker run --name deis-builder-data -v /var/lib/docker deis/base true"
ExecStart=/usr/bin/docker run --name deis-builder -p 2223:22 -e PUBLISH=22 -e HOST=${COREOS_PRIVATE_IPV4} -e PORT=2223 --volumes-from deis-builder-data --privileged deis/builder
ExecStart=/usr/bin/docker run --name deis-builder -p 2223:22 -e PUBLISH=22 -e HOST=${COREOS_PRIVATE_IPV4} -e PORT=2223 --volumes-from deis-builder-data --privileged deis/builder:v0.9.1
ExecStartPost=/bin/sh -c "echo 'Waiting for builder on 2223/tcp...' && until cat </dev/null>/dev/tcp/$COREOS_PRIVATE_IPV4/2223; do sleep 1; done"
ExecStop=/usr/bin/docker rm -f deis-builder

Expand Down
4 changes: 2 additions & 2 deletions cache/systemd/deis-cache.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Description=deis-cache
[Service]
EnvironmentFile=/etc/environment
TimeoutStartSec=20m
ExecStartPre=/bin/sh -c "docker history deis/cache >/dev/null || docker pull deis/cache:v0.9.1"
ExecStartPre=/bin/sh -c "docker history deis/cache:v0.9.1 >/dev/null || docker pull deis/cache:v0.9.1"
ExecStartPre=/bin/sh -c "docker inspect deis-cache >/dev/null && docker rm -f deis-cache || true"
ExecStart=/usr/bin/docker run --name deis-cache -p 6379:6379 -e PUBLISH=6379 -e HOST=${COREOS_PRIVATE_IPV4} deis/cache
ExecStart=/usr/bin/docker run --name deis-cache -p 6379:6379 -e PUBLISH=6379 -e HOST=${COREOS_PRIVATE_IPV4} deis/cache:v0.9.1
ExecStop=/usr/bin/docker rm -f deis-cache

[Install]
Expand Down
4 changes: 2 additions & 2 deletions controller/systemd/deis-controller.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ After=deis-logger.service
[Service]
EnvironmentFile=/etc/environment
TimeoutStartSec=20m
ExecStartPre=/bin/sh -c "docker history deis/controller >/dev/null || docker pull deis/controller:v0.9.1"
ExecStartPre=/bin/sh -c "docker history deis/controller:v0.9.1 >/dev/null || docker pull deis/controller:v0.9.1"
ExecStartPre=/bin/sh -c "docker inspect deis-controller >/dev/null && docker rm -f deis-controller || true"
ExecStart=/usr/bin/docker run --name deis-controller -p 8000:8000 -e PUBLISH=8000 -e HOST=${COREOS_PRIVATE_IPV4} --volumes-from=deis-logger deis/controller
ExecStart=/usr/bin/docker run --name deis-controller -p 8000:8000 -e PUBLISH=8000 -e HOST=${COREOS_PRIVATE_IPV4} --volumes-from=deis-logger deis/controller:v0.9.1
ExecStop=/usr/bin/docker rm -f deis-controller

[Install]
Expand Down
4 changes: 2 additions & 2 deletions database/systemd/deis-database.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ Description=deis-database
[Service]
EnvironmentFile=/etc/environment
TimeoutStartSec=20m
ExecStartPre=/bin/sh -c "docker history deis/database >/dev/null || docker pull deis/database:v0.9.1"
ExecStartPre=/bin/sh -c "docker history deis/database:v0.9.1 >/dev/null || docker pull deis/database:v0.9.1"
ExecStartPre=/bin/sh -c "docker inspect deis-database >/dev/null && docker rm -f deis-database || true"
ExecStartPre=/bin/sh -c "docker inspect deis-database-data >/dev/null 2>&1 || docker run --name deis-database-data -v /var/lib/postgresql deis/base true"
ExecStart=/usr/bin/docker run --name deis-database -p 5432:5432 -e PUBLISH=5432 -e HOST=${COREOS_PRIVATE_IPV4} --volumes-from deis-database-data deis/database
ExecStart=/usr/bin/docker run --name deis-database -p 5432:5432 -e PUBLISH=5432 -e HOST=${COREOS_PRIVATE_IPV4} --volumes-from deis-database-data deis/database:v0.9.1
ExecStop=/usr/bin/docker rm -f deis-database

[Install]
Expand Down
4 changes: 2 additions & 2 deletions logger/systemd/deis-logger.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ Description=deis-logger
[Service]
EnvironmentFile=/etc/environment
TimeoutStartSec=20m
ExecStartPre=/bin/sh -c "docker history deis/logger >/dev/null || docker pull deis/logger:v0.9.1"
ExecStartPre=/bin/sh -c "docker history deis/logger:v0.9.1 >/dev/null || docker pull deis/logger:v0.9.1"
ExecStartPre=/bin/sh -c "docker inspect deis-logger >/dev/null && docker rm -f deis-logger || true"
ExecStartPre=/bin/sh -c "docker inspect deis-logger-data >/dev/null 2>&1 || docker run --name deis-logger-data -v /var/log/deis deis/base true"
ExecStart=/usr/bin/docker run --name deis-logger -p 514:514/udp -e PUBLISH=514 -e HOST=${COREOS_PRIVATE_IPV4} --volumes-from deis-logger-data deis/logger
ExecStart=/usr/bin/docker run --name deis-logger -p 514:514/udp -e PUBLISH=514 -e HOST=${COREOS_PRIVATE_IPV4} --volumes-from deis-logger-data deis/logger:v0.9.1
ExecStop=/usr/bin/docker rm -f deis-logger

[Install]
Expand Down
4 changes: 2 additions & 2 deletions registry/systemd/deis-registry.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ Description=deis-registry
[Service]
EnvironmentFile=/etc/environment
TimeoutStartSec=20m
ExecStartPre=/bin/sh -c "docker history deis/registry >/dev/null || docker pull deis/registry:v0.9.1"
ExecStartPre=/bin/sh -c "docker history deis/registry:v0.9.1 >/dev/null || docker pull deis/registry:v0.9.1"
ExecStartPre=/bin/sh -c "docker inspect deis-registry >/dev/null && docker rm -f deis-registry || true"
ExecStartPre=/bin/sh -c "docker inspect deis-registry-data >/dev/null 2>&1 || docker run --name deis-registry-data -v /data deis/base /bin/true"
ExecStart=/usr/bin/docker run --name deis-registry -p 5000:5000 -e PUBLISH=5000 -e HOST=${COREOS_PRIVATE_IPV4} --volumes-from deis-registry-data deis/registry
ExecStart=/usr/bin/docker run --name deis-registry -p 5000:5000 -e PUBLISH=5000 -e HOST=${COREOS_PRIVATE_IPV4} --volumes-from deis-registry-data deis/registry:v0.9.1
ExecStartPost=/bin/sh -c "echo 'Waiting for listener on 5000/tcp...' && until cat </dev/null>/dev/tcp/$COREOS_PRIVATE_IPV4/5000; do sleep 1; done && docker pull deis/slugrunner:latest && docker tag deis/slugrunner $COREOS_PRIVATE_IPV4:5000/deis/slugrunner && docker push $COREOS_PRIVATE_IPV4:5000/deis/slugrunner"
ExecStop=/usr/bin/docker rm -f deis-registry

Expand Down
4 changes: 2 additions & 2 deletions router/systemd/deis-router.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Description=deis-router
[Service]
EnvironmentFile=/etc/environment
TimeoutStartSec=20m
ExecStartPre=/bin/sh -c "docker history deis/router >/dev/null || docker pull deis/router:v0.9.1"
ExecStartPre=/bin/sh -c "docker history deis/router:v0.9.1 >/dev/null || docker pull deis/router:v0.9.1"
ExecStartPre=/bin/sh -c "docker inspect deis-router >/dev/null && docker rm -f deis-router || true"
ExecStart=/usr/bin/docker run --name deis-router -p 80:80 -p 2222:2222 -e PUBLISH=80 -e HOST=${COREOS_PRIVATE_IPV4} deis/router
ExecStart=/usr/bin/docker run --name deis-router -p 80:80 -p 2222:2222 -e PUBLISH=80 -e HOST=${COREOS_PRIVATE_IPV4} deis/router:v0.9.1
ExecStop=/usr/bin/docker rm -f deis-router

[Install]
Expand Down

0 comments on commit 38c2fb2

Please sign in to comment.