Skip to content
 
 

Repository files navigation

Docker Image for Forgejo Runner

docker-nodejs

What is this?

Docker images for Forgejo CI/CD runners with various Node.js versions and Docker variants.

Usage

docker pull ghcr.io/hidemaruowo/forgejo-runner-docker-image:latest
docker run -d ghcr.io/hidemaruowo/forgejo-runner-docker-image:latest
  • Runner labels
labels: ["host", "docker:docker://ghcr.io/hidemaruowo/forgejo-runner-docker-image:latest" ]

Dependencies

  • Docker (for pulling and running the images)

Available Images

Images are automatically built and pushed to GitHub Container Registry (ghcr.io) monthly.

Tags

  • ghcr.io/hidemaruowo/forgejo-runner-docker-image:latest - Node.js 22 with docker:dind (default)
  • ghcr.io/hidemaruowo/forgejo-runner-docker-image:node22-dind - Node.js 22 with docker:dind
  • ghcr.io/hidemaruowo/forgejo-runner-docker-image:node24-dind - Node.js 24 with docker:dind
  • ghcr.io/hidemaruowo/forgejo-runner-docker-image:node26-dind - Node.js 26 with docker:dind
  • ghcr.io/hidemaruowo/forgejo-runner-docker-image:node22-dind-rootless - Node.js 22 with docker:dind-rootless
  • ghcr.io/hidemaruowo/forgejo-runner-docker-image:node24-dind-rootless - Node.js 24 with docker:dind-rootless
  • ghcr.io/hidemaruowo/forgejo-runner-docker-image:node26-dind-rootless - Node.js 26 with docker:dind-rootless
  • ghcr.io/hidemaruowo/forgejo-runner-docker-image:node22-cli - Node.js 22 with docker:cli
  • ghcr.io/hidemaruowo/forgejo-runner-docker-image:node24-cli - Node.js 24 with docker:cli
  • ghcr.io/hidemaruowo/forgejo-runner-docker-image:node26-cli - Node.js 26 with docker:cli

What's Included

Each image includes:

  • Docker (dind or dind-rootless, cli variant)
  • Node.js (version 22, 24, or 26)
  • npm
  • corepack
  • bash
  • curl
  • wget
  • git

Building Locally

To build a specific variant:

# Build with Node.js 22 and dind (default)
docker build -t forgejo-runner:node22-dind .

# Build with Node.js 24 and dind
docker build --build-arg NODE_VERSION=24 --build-arg DOCKER_VARIANT=dind -t forgejo-runner:node24-dind .

# Build with Node.js 22 and dind-rootless
docker build --build-arg NODE_VERSION=22 --build-arg DOCKER_VARIANT=dind-rootless -t forgejo-runner:node22-dind-rootless .

Automated Builds

Images are automatically built and published:

  • Monthly on the 1st of each month at 00:00 UTC
  • On every push to the main branch
  • Can be triggered manually via workflow_dispatch

Reference

About

Docker images differences to use for Forgejo self-hosted runner (cli, dind, dind-rootless)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages