Some checks failed
Build Container / build (push) Failing after 3s
## Summary - Dagger shells out to the `docker` binary to provision its BuildKit engine container - Phase 3 removed `docker-ce-cli`, breaking all `dagger call` invocations in CI - This restores `docker-ce-cli` (without buildx/skopeo — those aren't needed) ## Test plan - [ ] Build locally, release as v3.0.2, update manifest, sync - [ ] Trigger docs build workflow and verify Dagger engine starts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Reviewed-on: https://forge.ops.eblu.me/eblume/blumeops/pulls/164
68 lines
2.7 KiB
Docker
68 lines
2.7 KiB
Docker
# Forgejo Actions Job Execution Image
|
|
#
|
|
# This image is used as the job execution environment for Forgejo Actions.
|
|
# The host runner daemon creates containers from this image to run workflow steps.
|
|
#
|
|
# Build logic (container images, docs site) runs inside Dagger containers,
|
|
# so this image only needs: git, Docker CLI, Dagger CLI, ArgoCD CLI, uv, and basic tools.
|
|
#
|
|
# Usage: Configure runner with label like:
|
|
# docker:docker://registry.ops.eblu.me/blumeops/forgejo-runner:latest
|
|
|
|
FROM debian:bookworm-slim
|
|
|
|
ARG TARGETARCH
|
|
|
|
# Install base dependencies
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
ca-certificates \
|
|
curl \
|
|
git \
|
|
gnupg \
|
|
jq \
|
|
tzdata \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Install Node.js (required by actions/checkout and other JavaScript Actions)
|
|
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
|
&& apt-get install -y --no-install-recommends nodejs \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& node --version
|
|
|
|
# Install Docker CLI (Dagger shells out to `docker` to provision its engine)
|
|
RUN install -m 0755 -d /etc/apt/keyrings \
|
|
&& curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc \
|
|
&& chmod a+r /etc/apt/keyrings/docker.asc \
|
|
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian bookworm stable" > /etc/apt/sources.list.d/docker.list \
|
|
&& apt-get update \
|
|
&& apt-get install -y --no-install-recommends docker-ce-cli \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Install uv (Python package runner for towncrier)
|
|
RUN curl -LsSf https://astral.sh/uv/install.sh | sh \
|
|
&& mv /root/.local/bin/uv /usr/local/bin/uv \
|
|
&& mv /root/.local/bin/uvx /usr/local/bin/uvx
|
|
|
|
# Install argocd CLI (for syncing apps from workflows)
|
|
RUN ARCH="${TARGETARCH:-$(dpkg --print-architecture)}" \
|
|
&& curl -fsSL -o /usr/local/bin/argocd \
|
|
"https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-${ARCH}" \
|
|
&& chmod +x /usr/local/bin/argocd \
|
|
&& argocd version --client
|
|
|
|
# Install Dagger CLI (for running Dagger CI pipelines)
|
|
ARG DAGGER_VERSION=0.19.11
|
|
RUN ARCH="${TARGETARCH:-$(dpkg --print-architecture)}" \
|
|
&& curl -fsSL -o /tmp/dagger.tar.gz \
|
|
"https://dl.dagger.io/dagger/releases/${DAGGER_VERSION}/dagger_v${DAGGER_VERSION}_linux_${ARCH}.tar.gz" \
|
|
&& tar -xzf /tmp/dagger.tar.gz -C /usr/local/bin dagger \
|
|
&& rm /tmp/dagger.tar.gz \
|
|
&& dagger version
|
|
|
|
# Install flyctl (for Fly.io cache purge after docs deploy)
|
|
RUN curl -L https://fly.io/install.sh | sh \
|
|
&& mv /root/.fly/bin/flyctl /usr/local/bin/fly \
|
|
&& rm -rf /root/.fly
|
|
|
|
# Default to bash
|
|
CMD ["/bin/bash"]
|