Sign inSign up

senaddizdarevic/git-hub-selfhosted-runner

By senaddizdarevic

•Updated about 1 year ago

Docker in Docker, Kubernetes, Terraform, Trivy, and AWS CLI

Image
0

1.6K

senaddizdarevic/git-hub-selfhosted-runner repository overview

Run a container to test installs:

docker run -it -e GITHUB_PERSONAL_TOKEN="<token>" -e GITHUB_OWNER=<owner> -e GITHUB_REPOSITORY=<repository> senaddizdarevic/git-hub-selfhosted-runner:latest

docker-compose.yml

version: '3'

services:
  runner:
    image: senaddizdarevic/git-hub-selfhosted-runner:latest
    env_file: .env
    container_name: runner
    restart: unless-stopped
    volumes:
      - data:/home/github/work/
    environment:
      GITHUB_PERSONAL_TOKEN: '${GITHUB_PERSONAL_TOKEN}'
      GITHUB_OWNER: '${GITHUB_OWNER}'
      DOCKER_HOST: tcp://docker:2375
    deploy:
      resources:
        limits:
          cpus: '0.50'
          memory: 512M
        reservations:
          cpus: '0.25'
          memory: 256M
    networks:
      - dnd
  docker:
    image: docker:24.0.6-dind
    container_name: dnd
    restart: unless-stopped
    privileged: true
    volumes:
      - data:/work/
      - docker-graph-storage:/var/lib/docker
    environment:
      DOCKER_TLS_CERTDIR: ''
    deploy:
      resources:
        limits:
          cpus: '0.50'
          memory: 512M
        reservations:
          cpus: '0.25'
          memory: 256M
    networks:
      - dnd
volumes:
  data:
    driver: local
  docker-graph-storage:
    driver: local
networks:
  dnd:
    external: true

Tag summary

Content type

Image

Digest

sha256:f7edf9c4d…

Size

670.9 MB

Last updated

about 1 year ago

docker pull senaddizdarevic/git-hub-selfhosted-runner