Use self update ready entrypoint (#99)

* Use self update ready entrypoint

* Add --once support for runsvc.sh

Run `cd runner; NAME=$DOCKER_USER/actions-runner TAG=dev make docker-build docker-push`,
`kubectl apply -f release/actions-runner-controller.yaml`,
then update the runner image(not the controller image) by updating e.g. `Runner.Spec.Image` to `$DOCKER_USER/actions-runner:$TAG`, for testing.

Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
This commit is contained in:
Yury Tsarev
2020-10-05 01:58:20 +02:00
committed by GitHub
parent b1ba5bf0e8
commit b79ea980b8
5 changed files with 122 additions and 3 deletions

View File

@@ -55,6 +55,7 @@ RUN mkdir -p /runner \
&& rm -rf /var/lib/apt/lists/*
COPY entrypoint.sh /runner
COPY patched /runner/patched
USER runner:runner
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]