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

Commit

Permalink
Add podman and docker binaries (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
ziegenberg authored Mar 18, 2022
1 parent 67b9e06 commit 52d2ac2
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
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

0 comments on commit 52d2ac2

Please sign in to comment.