Skip to content

zhangyuan/setup-github-actions-runner-dood

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Actions runner via Docker outside of Docker

This is a basic setup of Github Actions runner in docker with docker-compose. Althought it can work in common cases, be ware of the following cases:

  • If the job consists of service container and the the job runs directly on the runner, and job won't be able to access the service via port. This is because the docker daemon runs on the host machine, thus the service container is exposed on the host machine. To solve the issue, you may have to run the runner on the host rather than in docker (e.g. https://github.com/zhangyuan/setup-github-actions-runner-on-vm ), or run the job in the container.

Build the image

docker compose build --progress=plain

Run the runner

Create the .env file, and run the container:

docker compose run runner run

or launch the container in the background:

docker compose up -d

Prune docker data with crontab

echo "0 0 * * * docker system prune -f" | crontab -

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published