Skip to content

Commit

Permalink
Fixed startup script to use proper user and permissions and installed…
Browse files Browse the repository at this point in the history
… Git and Curl
  • Loading branch information
Physer committed Mar 27, 2024
1 parent 8327dea commit 13f6e3e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
FROM ghcr.io/actions/actions-runner:latest

COPY ./setup.sh .
USER root
RUN chmod +x ./setup.sh
USER runner
CMD ["./setup.sh"]
RUN sudo apt update -y && sudo apt install git curl -y

COPY ./runner.sh .
CMD ["./runner.sh"]
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ If you wish to build and run the Docker container from the source of the reposit

## Additional software

Currently no additional software has been installed.
* [Git](https://git-scm.com/)
* [Curl](https://curl.se/)

## References

Expand Down
5 changes: 5 additions & 0 deletions runner.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

./config.sh --url https://github.com/${REPOSITORY_PATH} --token ${RUNNER_ACCESS_TOKEN} --name ${RUNNER_NAME} --unattended

sudo ./bin/runsvc.sh
5 changes: 0 additions & 5 deletions setup.sh

This file was deleted.

0 comments on commit 13f6e3e

Please sign in to comment.