Skip to content

Instantly share code, notes, and snippets.

@carmstrong
Created August 9, 2014 00:27
Show Gist options
  • Save carmstrong/6951a239b57fb75f085b to your computer and use it in GitHub Desktop.
Save carmstrong/6951a239b57fb75f085b to your computer and use it in GitHub Desktop.
diff --git a/builder/bin/boot b/builder/bin/boot
index 89f6211..fe8119f 100755
--- a/builder/bin/boot
+++ b/builder/bin/boot
@@ -60,14 +60,12 @@ docker load -i /progrium_cedarish.tar
# pull required images
# Custom slugbuilder?
-etcdctl --no-sync -C $ETCD mk /deis/slugbuilder/image deis/slugbuilder:latest >/dev/null 2>&1 || true
-SLUGBUILDER=`etcdctl --no-sync -C $ETCD get /deis/slugbuilder/image`
+SLUGBUILDER=`etcdctl --no-sync -C $ETCD get /deis/slugbuilder/image 2>/dev/null || etcdctl --no-sync -C $ETCD mk /deis/slugbuilder/image deis/slugbuilder:latest 2>/dev/null`
docker pull ${SLUGBUILDER}
docker tag ${SLUGBUILDER} deis/slugbuilder:latest
# Custom slugrunner?
-etcdctl --no-sync -C $ETCD mk /deis/slugrunner/image deis/slugrunner:latest >/dev/null 2>&1 || true
-SLUGRUNNER=`etcdctl --no-sync -C $ETCD get /deis/slugrunner/image`
+SLUGRUNNER=`etcdctl --no-sync -C $ETCD get /deis/slugrunner/image 2>/dev/null || etcdctl --no-sync -C $ETCD mk /deis/slugrunner/image deis/slugrunner:latest 2>/dev/null`
docker pull ${SLUGRUNNER}
docker tag ${SLUGRUNNER} deis/slugrunner:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment