Some checks failed
Build-and-publish podman-in-docker / build-and-push (push) Failing after 55s
25 lines
775 B
Docker
25 lines
775 B
Docker
ARG VERSION
|
|
|
|
FROM quay.io/podman/stable:${VERSION}
|
|
|
|
ARG REPO_MIRROR
|
|
|
|
RUN set -e; \
|
|
source /etc/os-release; \
|
|
export ARCH=`uname -m`; \
|
|
if ! test -z "${REPO_MIRROR}"; then \
|
|
dnf config-manager setopt \
|
|
fedora.baseurl=${REPO_MIRROR}/fedora/linux/updates/${VERSION_ID}/Everything/${ARCH}/; \
|
|
dnf config-manager setopt fedora.metalink=; \
|
|
dnf config-manager setopt \
|
|
updates.baseurl=${REPO_MIRROR}/fedora/linux/releases/${VERSION_ID}/Everything/${ARCH}/os/; \
|
|
dnf config-manager setopt updates.metalink=; \
|
|
fi; \
|
|
dnf install -y podman-docker; \
|
|
touch /etc/containers/nodocker; \
|
|
rm -f /etc/containers/storage.conf; \
|
|
dnf clean all; \
|
|
rm -rf /var/cache/yum;
|
|
|
|
ENTRYPOINT ["/usr/bin/podman", "system", "service", "--time", "0", "unix:///var/run/docker.sock"]
|