Github Actions Self Hosted container Dockerfile
MIT License
Github Actions self hosted container Dockerfile.
There are 2 Docker images, with one supporting GPU used for model training:
Build and push the images:
# the cpu image
docker build -t kengz/github-actions:0.0.2 -t kengz/github-actions:latest .
docker push kengz/github-actions
# the gpu image
docker build -f gpu.Dockerfile -t kengz/github-actions-gpu:0.0.2 -t kengz/github-actions-gpu:latest .
docker push kengz/github-actions-gpu
Run Github Actions container:
docker pull kengz/github-actions
docker run --rm --shm-size=8g -it -v /var/run/docker.sock:/var/run/docker.sock kengz/github-actions
Github repo > Settings > Actions > Add Runner
, run the Configure
commands as shown there.