sharenet/ci/Dockerfile.ci-node-podman
continuist 828871d829
Some checks failed
CI/CD Pipeline with Secure Ephemeral PiP / test-backend (push) Failing after 49s
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
Fix dockerfile #3
2025-09-12 15:48:42 -04:00

28 lines
1.3 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.

FROM node:20-bookworm-slim
# Basics your CI uses
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends ca-certificates curl git jq; \
rm -rf /var/lib/apt/lists/*
# Install the Podman **remote** client and expose it as "podman"
ARG PODMAN_REMOTE_VERSION=5.2.3
RUN set -eux; \
arch="$(dpkg --print-architecture)"; \
case "$arch" in amd64) goarch=amd64;; arm64) goarch=arm64;; *) echo "unsupported arch: $arch"; exit 1;; esac; \
url="https://github.com/containers/podman/releases/download/v${PODMAN_REMOTE_VERSION}/podman-remote-static-linux_${goarch}.tar.gz"; \
curl -fsSL -o /tmp/podman-remote.tgz "$url"; \
mkdir -p /tmp/podman-remote; \
tar -xzf /tmp/podman-remote.tgz -C /tmp/podman-remote; \
cand="/tmp/podman-remote/bin/podman-remote-static-linux_${goarch}"; \
if [ ! -f "$cand" ]; then cand="$(find /tmp/podman-remote -type f -name 'podman*' -print -quit)"; fi; \
test -f "$cand"; \
install -m0755 "$cand" /usr/local/bin/podman-remote; \
ln -sf /usr/local/bin/podman-remote /usr/local/bin/podman; \
/usr/local/bin/podman --version; \
rm -rf /tmp/podman-remote /tmp/podman-remote.tgz
# Defaults for your runners rootless socket
ENV XDG_RUNTIME_DIR=/run/user/999
ENV CONTAINER_HOST=unix:///run/user/999/podman/podman.sock