feat: pre-install docker in node-runner image
- Dockerfile.node extends node:22-bookworm with docker.io - No need for install step in every workflow - Values-node.yaml references custom image - Build and push manually (no CI needed)
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
FROM node:22-bookworm
|
||||||
|
|
||||||
|
# Install Docker client (dind sidecar provides the daemon)
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y --no-install-recommends \
|
||||||
|
docker.io \
|
||||||
|
git \
|
||||||
|
curl \
|
||||||
|
ca-certificates && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Verify installations
|
||||||
|
RUN docker --version && node --version && git --version
|
||||||
@@ -6,7 +6,8 @@
|
|||||||
# (homelab has no CI; custom runner images built manually if desired)
|
# (homelab has no CI; custom runner images built manually if desired)
|
||||||
runner:
|
runner:
|
||||||
name: node-runner
|
name: node-runner
|
||||||
labels: "node:docker://node:22-bookworm"
|
# Custom image: node:22-bookworm + docker.io pre-installed
|
||||||
|
labels: "node:docker://forgejo.riotpiao.com/rock/forgejo-runner-node:latest"
|
||||||
|
|
||||||
# GC CronJob renders only from the default (golang) values to avoid duplicates
|
# GC CronJob renders only from the default (golang) values to avoid duplicates
|
||||||
gc:
|
gc:
|
||||||
|
|||||||
Reference in New Issue
Block a user