Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kengz/github-actions-self-hosted
Github Actions Self Hosted container Dockerfile
https://github.com/kengz/github-actions-self-hosted
docker-image github-actions self-hosted
Last synced: 18 days ago
JSON representation
Github Actions Self Hosted container Dockerfile
- Host: GitHub
- URL: https://github.com/kengz/github-actions-self-hosted
- Owner: kengz
- License: mit
- Created: 2020-06-05T01:44:53.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-29T03:27:01.000Z (over 3 years ago)
- Last Synced: 2024-10-03T10:34:01.910Z (about 1 month ago)
- Topics: docker-image, github-actions, self-hosted
- Language: Dockerfile
- Homepage:
- Size: 7.81 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Github Actions self hosted
Github Actions self hosted container Dockerfile.
## Usage
### Build
There are 2 Docker images, with one supporting GPU used for model training:
- kengz/github-actions
- kengz/github-actions-gpuBuild and push the images:
```bash
# 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
Run Github Actions container:
- on your the Github Actions host machine, pull the image `docker pull kengz/github-actions`
- run the container: `docker run --rm --shm-size=8g -it -v /var/run/docker.sock:/var/run/docker.sock kengz/github-actions`
- go to your `Github repo > Settings > Actions > Add Runner`, run the `Configure` commands as shown there.