mirror of
https://github.com/caprover/caprover
synced 2026-09-23 15:15:36 +00:00
Added custom build script to allow users to re-build in order to support custom CPU architecture including ARM.
This commit is contained in:
Executable
+22
@@ -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
|
||||
Reference in New Issue
Block a user