diff --git a/docker-compose.yml b/docker-compose.yml index 7ed0941..7f9957e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,7 +8,8 @@ services: build: context: . volumes: - #- /var/run/docker.sock:/var/run/docker.sock + - /var/run/docker.sock:/var/run/docker.sock:ro + - /usr/bin/docker:/usr/bin/docker:ro #- ./config:/config - ./data:$HOME/.cache - ./configs/NuGet:/root/.nuget/NuGet diff --git a/entrypoint.sh b/entrypoint.sh index b2d88a0..99baec1 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,7 +4,7 @@ echo "Connecting to ${GITEA_INSTANCE_URL}" if ! test -f .runner; then echo "No .runner file detected, running registration" - /app/act_runner register --instance "${GITEA_INSTANCE_URL}" --token "${GITEA_RUNNER_REGISTRATION_TOKEN}" --name "${GITEA_RUNNER_NAME}" --labels "${GITEA_RUNNER_LABELS}" --no-interactive + /app/act_runner register --instance "${GITEA_INSTANCE_URL}" --token "${GITEA_RUNNER_REGISTRATION_TOKEN}" --name "${GITEA_RUNNER_NAME}" --labels "${GITEA_RUNNER_LABELS}" --no-interactive --ephemeral touch /.runner fi