/dockerized-self-hosted-runner

This is an Ubuntu Dockerfile of a self hosted GitHub Action.

Primary LanguageDockerfileMIT LicenseMIT

Contributors Forks Stargazers Issues MIT License

Logo

Dockerized self-hosted runner

This is an Ubuntu Dockerfile for self hosted GitHub Action.

Report an issue

Table of contents

How to build it

You must specify 3 vaild arguments (org, repo and token) to build the Dockerfile.

docker build --build-arg org=<OrganizationNameHere> --build-arg repo=<RepoNameHere> --build-arg token=<ActionsRunnerTokenHere> -t dockerizied-self-hosted-runner .

How to bash in

To connect to the Docker image to execute bash commands.

docker run -it dockerizied-self-hosted-runner sh

How to stop it

To stop the Docker image.

Ctrl + C

How to remove it

To completely remove the dockerized self hosted runner.

https://docs.github.com/en/free-pro-team@latest/actions/hosting-your-own-runners/removing-self-hosted-runners#:~:text=Click%20next%20to%20the%20runner,removing%20the%20self%2Dhosted%20runner.