Create a Docker based Self Hosted GitHub runner Linux container

This page summarizes the projects mentioned and recommended in the original post on dev.to

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • docker-github-runner-linux

    Repository for building a self hosted GitHub runner as a ubuntu linux container

  • Open VSCode, you can clone the repo found on my GitHub project docker-github-runner-linux which contains all the files or simply follow along with the following steps. We will prepare a script that will be needed as part of our docker image creation.

  • runner

    The Runner for GitHub Actions :rocket:

  • # base image FROM ubuntu:20.04 #input GitHub runner version argument ARG RUNNER_VERSION ENV DEBIAN_FRONTEND=noninteractive LABEL Author="Marcel L" LABEL Email="[email protected]" LABEL GitHub="https://github.com/Pwd9000-ML" LABEL BaseImage="ubuntu:20.04" LABEL RunnerVersion=${RUNNER_VERSION} # update the base packages + add a non-sudo user RUN apt-get update -y && apt-get upgrade -y && useradd -m docker # install the packages and dependencies along with jq so we can parse JSON (add additional packages as necessary) RUN apt-get install -y --no-install-recommends \ curl nodejs wget unzip vim git azure-cli jq build-essential libssl-dev libffi-dev python3 python3-venv python3-dev python3-pip # cd into the user directory, download and unzip the github actions runner RUN cd /home/docker && mkdir actions-runner && cd actions-runner \ && curl -O -L https://github.com/actions/runner/releases/download/v${RUNNER_VERSION}/actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz \ && tar xzf ./actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz # install some additional dependencies RUN chown -R docker ~docker && /home/docker/actions-runner/bin/installdependencies.sh # add over the start.sh script ADD scripts/start.sh start.sh # make the script executable RUN chmod +x start.sh # set the user to "docker" so all subsequent commands are run as the docker user USER docker # set the entrypoint to the start.sh script ENTRYPOINT ["./start.sh"]

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • docker-github-runner-windows

    Repository for building a self hosted GitHub runner as a windows container

  • You can use this test workflow from my GitHub project: docker-github-runner-linux.

  • Puts Debuggerer

    Ruby library for improved puts debugging, automatically displaying bonus useful information such as source line number and source code.

  • # base image FROM ubuntu:20.04 #input GitHub runner version argument ARG RUNNER_VERSION ENV DEBIAN_FRONTEND=noninteractive LABEL Author="Marcel L" LABEL Email="[email protected]" LABEL GitHub="https://github.com/Pwd9000-ML" LABEL BaseImage="ubuntu:20.04" LABEL RunnerVersion=${RUNNER_VERSION} # update the base packages + add a non-sudo user RUN apt-get update -y && apt-get upgrade -y && useradd -m docker # install the packages and dependencies along with jq so we can parse JSON (add additional packages as necessary) RUN apt-get install -y --no-install-recommends \ curl nodejs wget unzip vim git azure-cli jq build-essential libssl-dev libffi-dev python3 python3-venv python3-dev python3-pip # cd into the user directory, download and unzip the github actions runner RUN cd /home/docker && mkdir actions-runner && cd actions-runner \ && curl -O -L https://github.com/actions/runner/releases/download/v${RUNNER_VERSION}/actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz \ && tar xzf ./actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz # install some additional dependencies RUN chown -R docker ~docker && /home/docker/actions-runner/bin/installdependencies.sh # add over the start.sh script ADD scripts/start.sh start.sh # make the script executable RUN chmod +x start.sh # set the user to "docker" so all subsequent commands are run as the docker user USER docker # set the entrypoint to the start.sh script ENTRYPOINT ["./start.sh"]

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Hosting your self hosted runners on GitHub Codespaces

    4 projects | dev.to | 13 Aug 2022
  • A Beginner's Guide to Front-End Development

    1 project | dev.to | 4 May 2024
  • 5 Free Tools to Boost Developer Productivity

    1 project | dev.to | 3 May 2024
  • End-to-end MLOps CI/CD pipeline with Harness and AWS

    2 projects | dev.to | 1 May 2024
  • Top 10 Developer Communities You Should Explore

    2 projects | dev.to | 29 Apr 2024