This commit is contained in:
iceBear67
2026-06-05 16:42:56 +08:00
commit 87e76877ca
23 changed files with 662 additions and 0 deletions

32
BUILD.sh Executable file
View File

@@ -0,0 +1,32 @@
#!/bin/sh
hasunset=0
if [[ "$CLOUD_CONFIG_REPO" -eq "" ]]; then
echo "CLOUD_CONFIG_REPO is not set."
hasunset=1
fi
if [[ "$CLOUD_CONFIG_REVISION" -eq "" ]]; then
echo "CLOUD_CONFIG_REVISION is not set."
hasunset=1
fi
if [[ "$CLOUD_GATEWAY_ADDRESS" -eq "" ]]; then
echo "CLOUD_GATEWAY_ADDRESS is not set."
hasunset=1
fi
if [[ "$hasunset" -ne 0 ]]; then
echo ""
echo "Default values will be used for unset environments:"
echo ""
grep -E "^ENV" ./Dockerfile
fi
echo "Additional arguments: $@"
echo "Continue?"
read
sudo docker build . $@