|
|
@ -8,9 +8,7 @@ echo "$SSH_HOST_KEY" > "$HOME/.ssh/known_hosts"
|
|
|
|
export GIT_SSH_COMMAND="ssh -i ""$SSH_PRIVATE_KEY"""
|
|
|
|
export GIT_SSH_COMMAND="ssh -i ""$SSH_PRIVATE_KEY"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# update swarm-nat
|
|
|
|
docker pull gitea.lubiland.de/lubiland/swarm-nat
|
|
|
|
# use docker.io/lubiland/swarm-nat until registry.lubiland.de allows public access
|
|
|
|
|
|
|
|
docker pull docker.io/lubiland/swarm-nat
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
while :; do
|
|
|
|
while :; do
|
|
|
|
# check if the git repository already got cloned
|
|
|
|
# check if the git repository already got cloned
|
|
|
@ -23,9 +21,7 @@ while :; do
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# run the actual swarm-nat docker container
|
|
|
|
# run the actual swarm-nat docker container
|
|
|
|
# use docker instead of running it directly to use --cap-add
|
|
|
|
docker run --rm --net=host --cap-add=NET_ADMIN --volume /var/run/docker.sock:/var/run/docker.sock --volume /cephfs/lubiland-lubinat/lubidock/stacks:/stacks gitea.lubiland.de/lubiland/swarm-nat
|
|
|
|
# use docker.io/lubiland/swarm-nat until registry.lubiland.de allows public access
|
|
|
|
|
|
|
|
docker run --rm --net=host --cap-add=NET_ADMIN --volume /var/run/docker.sock:/var/run/docker.sock --volume /cephfs/lubiland-lubinat/lubidock/stacks:/stacks docker.io/lubiland/swarm-nat
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sleep 60
|
|
|
|
sleep 60
|
|
|
|
done
|
|
|
|
done
|