Hosting your self hosted runners on GitHub Codespaces

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

Our great sponsors
  • PopRuby - Clothing and Accessories for Ruby Developers
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • GitHub-Codespaces-Lab

    GitHub CodeSpaces Demo Lab Repository

    All of the code samples and examples are also available on my GitHub Codespaces Demo Repository.

  • runner

    The Runner for GitHub Actions :rocket:

    # You can pick any Debian/Ubuntu-based image. 😊 FROM mcr.microsoft.com/vscode/devcontainers/base:0-bullseye # [Optional] Install zsh ARG INSTALL_ZSH="true" # [Optional] Upgrade OS packages to their latest versions ARG UPGRADE_PACKAGES="false" # Install needed packages and setup non-root user. Use a separate RUN statement to add your own dependencies. ARG USERNAME=vscode ARG USER_UID=1000 ARG USER_GID=$USER_UID COPY library-scripts/*.sh /tmp/library-scripts/ RUN bash /tmp/library-scripts/common-debian.sh "${INSTALL_ZSH}" "${USERNAME}" "${USER_UID}" "${USER_GID}" "${UPGRADE_PACKAGES}" "true" "true" # cd into the user directory, download and unzip the github actions runner RUN cd /home/vscode && mkdir actions-runner && cd actions-runner #input GitHub runner version argument ARG RUNNER_VERSION="2.292.0" RUN cd /home/vscode/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 /home/vscode/actions-runner/actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz \ && /home/vscode/actions-runner/bin/installdependencies.sh # add over the start.sh script COPY library-scripts/start.sh /home/vscode/actions-runner/start.sh # Aply ownership of home folder RUN chown -R vscode ~vscode # make the script executable RUN chmod +x /home/vscode/actions-runner/start.sh # Clean up RUN rm -rf /var/lib/apt/lists/* /tmp/library-scripts

  • PopRuby

    PopRuby: Clothing and Accessories for Ruby Developers. Fashion meets Ruby! Shop our fun Ruby-inspired apparel and accessories designed to celebrate the joy and diversity of the Ruby community.

  • Puts Debuggerer

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

    # You can pick any Debian/Ubuntu-based image. 😊 FROM mcr.microsoft.com/vscode/devcontainers/base:0-bullseye # [Optional] Install zsh ARG INSTALL_ZSH="true" # [Optional] Upgrade OS packages to their latest versions ARG UPGRADE_PACKAGES="false" # Install needed packages and setup non-root user. Use a separate RUN statement to add your own dependencies. ARG USERNAME=vscode ARG USER_UID=1000 ARG USER_GID=$USER_UID COPY library-scripts/*.sh /tmp/library-scripts/ RUN bash /tmp/library-scripts/common-debian.sh "${INSTALL_ZSH}" "${USERNAME}" "${USER_UID}" "${USER_GID}" "${UPGRADE_PACKAGES}" "true" "true" # cd into the user directory, download and unzip the github actions runner RUN cd /home/vscode && mkdir actions-runner && cd actions-runner #input GitHub runner version argument ARG RUNNER_VERSION="2.292.0" RUN cd /home/vscode/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 /home/vscode/actions-runner/actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz \ && /home/vscode/actions-runner/bin/installdependencies.sh # add over the start.sh script COPY library-scripts/start.sh /home/vscode/actions-runner/start.sh # Aply ownership of home folder RUN chown -R vscode ~vscode # make the script executable RUN chmod +x /home/vscode/actions-runner/start.sh # Clean up RUN rm -rf /var/lib/apt/lists/* /tmp/library-scripts

  • docker-github-runner-linux

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

    We will actually be using a very similar approach for the docker image configuration based on one of my previous blog posts, 'Create a Docker based Self Hosted GitHub runner Linux container'. So do check out that post also if you wanted more info on how self hosted GitHub runner containers work.

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