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

Commit

Permalink
fix(registry): create /deis/cache etcdctl dir
Browse files Browse the repository at this point in the history
  • Loading branch information
mboersma committed Apr 6, 2015
1 parent 07e58f9 commit 6441a4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deisctl/units/deis-registry.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Description=deis-registry
[Service]
EnvironmentFile=/etc/environment
TimeoutStartSec=30m
ExecStartPre=-/usr/bin/etcdctl mkdir /deis/cache >/dev/null 2>&1
ExecStartPre=/bin/sh -c "IMAGE=`/run/deis/bin/get_image /deis/registry` && docker history $IMAGE >/dev/null 2>&1 || docker pull $IMAGE"
ExecStartPre=/bin/sh -c "docker inspect deis-registry >/dev/null 2>&1 && docker rm -f deis-registry || true"
ExecStart=/bin/sh -c "IMAGE=`/run/deis/bin/get_image /deis/registry` && docker run --name deis-registry --rm -p 5000:5000 -e EXTERNAL_PORT=5000 -e HOST=$COREOS_PRIVATE_IPV4 $IMAGE"
Expand Down

0 comments on commit 6441a4f

Please sign in to comment.