gitea/peertube runner foundations. secrets mgmt is a blocker. Adding that to my shell framework and will vendor that framework into here.

This commit is contained in:
2025-07-15 10:53:19 -05:00
parent b4b36b6084
commit 8c402e3084
5 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#!/bin/sh
if [ -n "$DOCKER_SERVICE_NAME" ]; then
NAME="$NODE_NAME"
else
NAME=$(uname -n)
fi
cleanup() {
echo "Container is stopping, removing runner '$NAME'..."
peertube-runner unregister --url $URL --runner-name $NAME
}
trap cleanup SIGTERM
echo "Starting runner $NAME"...
peertube-runner server & sleep 5 && \
peertube-runner register --url $URL --registration-token $TOKEN --runner-name $NAME && \
wait