mirror of
https://github.com/caprover/caprover
synced 2025-11-03 11:57:32 +00:00
Some checks failed
Run build / build (push) Has been cancelled
Run formatter / check-code-formatting (push) Has been cancelled
Run lint / run-lint (push) Has been cancelled
Build and push the edge image / run-pre-checks (push) Has been cancelled
Build and push the edge image / build-publish-docker-hub (push) Has been cancelled
30 lines
714 B
Bash
Executable File
30 lines
714 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if ! [ $(id -u) = 0 ]; then
|
|
echo "Must run as sudo or root"
|
|
exit 1
|
|
fi
|
|
|
|
pwd >currentdirectory
|
|
docker service rm $(docker service ls -q)
|
|
sleep 1s
|
|
docker secret rm captain-salt
|
|
docker build -t captain-debug -f dockerfile-captain.debug .
|
|
rm -rf /captain && mkdir /captain
|
|
mkdir -p /captain/data/shared-logs
|
|
chmod -R 777 /captain
|
|
|
|
docker run \
|
|
-e "CAPTAIN_IS_DEBUG=1" \
|
|
-e "MAIN_NODE_IP_ADDRESS=127.0.0.1" \
|
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
|
-v /captain:/captain \
|
|
-v $(pwd):/usr/src/app captain-debug
|
|
|
|
# -e "CAPTAIN_HOST_HTTP_PORT=10083" \
|
|
# -e "CAPTAIN_HOST_HTTPS_PORT=10443" \
|
|
# -e "CAPTAIN_HOST_ADMIN_PORT=13000" \
|
|
|
|
sleep 2s
|
|
docker service logs captain-captain --follow
|