Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Add podman and docker binaries #37

Merged
merged 1 commit into from
Mar 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,13 @@ COPY --from=galaxy /usr/share/ansible /usr/share/ansible
COPY --from=builder /output/ /output/
RUN /output/install-from-bindep && rm -rf /output/wheels
RUN alternatives --set python /usr/bin/python3
RUN dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
RUN dnf config-manager --set-disabled docker-ce-stable
RUN rpm --install --nodeps --replacefiles --excludepath=/usr/bin/runc https://download.docker.com/linux/centos/8/x86_64/stable/Packages/containerd.io-1.5.10-3.1.el8.x86_64.rpm
RUN dnf --assumeyes --enablerepo=docker-ce-stable install docker-ce
RUN molecule --version
RUN molecule drivers
RUN ansible-lint --version
RUN docker --version
RUN podman --version
RUN git --version
1 change: 1 addition & 0 deletions _build/bindep.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
python38-devel [platform:rpm compile]
podman [platform:rpm]
13 changes: 13 additions & 0 deletions execution-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,16 @@ dependencies:
additional_build_steps:
append:
- RUN alternatives --set python /usr/bin/python3
- RUN dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
- RUN dnf config-manager --set-disabled docker-ce-stable
# This is a workaround due to a conflict between the packaged version of runc in the containerd.io package from Docker and the CentOS 8 Stream native
# version packaged for Podman and Skopeo. This can be changed once https://github.com/docker/containerd-packaging/pull/231 is merged and available
# upstream via the Docker repository. Cudos for the workaround: https://faun.pub/how-to-install-simultaneously-docker-and-podman-on-rhel-8-centos-8-cb67412f321e
- RUN rpm --install --nodeps --replacefiles --excludepath=/usr/bin/runc https://download.docker.com/linux/centos/8/x86_64/stable/Packages/containerd.io-1.5.10-3.1.el8.x86_64.rpm
- RUN dnf --assumeyes --enablerepo=docker-ce-stable install docker-ce
- RUN molecule --version
- RUN molecule drivers
- RUN ansible-lint --version
- RUN docker --version
- RUN podman --version
- RUN git --version