Added custom build script to allow users to re-build in order to support custom CPU architecture including ARM.

This commit is contained in:
Kasra Bigdeli
2017-12-28 09:49:00 -08:00
parent 1fe355f674
commit 15b20dbf23
+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
if ! [ $(id -u) = 0 ]; then
echo "Must run as sudo or root"
exit 1
fi
docker build -t captain-custom-release-build -f dockerfile-captain.release .
mkdir /captain
if docker service ps captain-captain ; then
echo "captain-captain service already exists. Trying to update it..."
else
echo "Installing CaptainDuckDuck..."
docker run \
-v /var/run/docker.sock:/var/run/docker.sock \
captain-custom-release-build
fi
sleep 5s
docker service update --image captain-custom-release-build captain-captain