sharenet/ci/Dockerfile.ci-node-podman
continuist 3b0f92b8cf
Some checks failed
CI/CD Pipeline with Secure Ephemeral PiP / test-backend (push) Failing after 33s
CI/CD Pipeline with Secure Ephemeral PiP / test-frontend (push) Has been skipped
CI/CD Pipeline with Secure Ephemeral PiP / build-backend (push) Has been skipped
CI/CD Pipeline with Secure Ephemeral PiP / build-frontend (push) Has been skipped
CI/CD Pipeline with Secure Ephemeral PiP / deploy-prod (push) Has been skipped
Use updated Node+podman CI image
2025-09-12 15:26:41 -04:00

28 lines
No EOL
1.2 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Dockerfile.ci-node-podman
ARG CI_IMAGE_REV=1
FROM node:20-bookworm-slim
# Tools needed at runtime by actions and your scripts
# - git: actions/checkout uses it
# - curl, ca-certificates: handy for health checks, etc.
# - jq: used in your scripts
# Then add the libcontainers repo to get a recent Podman (v5.x).
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
ca-certificates curl git gnupg jq; \
. /etc/os-release; \
echo "deb [signed-by=/usr/share/keyrings/libcontainers-archive-keyring.gpg] \
https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_${VERSION_ID}/ /" \
> /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list; \
curl -fsSL \
"https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_${VERSION_ID}/Release.key" \
| gpg --dearmor -o /usr/share/keyrings/libcontainers-archive-keyring.gpg; \
apt-get update; \
apt-get install -y --no-install-recommends podman; \
apt-get purge -y gnupg; \
rm -rf /var/lib/apt/lists/*
# These match your runners rootless socket layout
ENV XDG_RUNTIME_DIR=/run/user/999
ENV CONTAINER_HOST=unix:///run/user/999/podman/podman.sock