Skip to content

Commit

Permalink
update base-podman dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
yudong2015 committed Apr 19, 2024
1 parent ed22cd0 commit 3a09606
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions base/podman/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RUN yum install -y epel-release ca-certificates && \
yum -y clean all --enablerepo='*'

RUN wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz && \
tar zxvf git-2.9.5.tar.gz --no-same-owner && \
tar zxf git-2.9.5.tar.gz --no-same-owner && \
cd git-2.9.5 && \
make configure && \
./configure prefix=/usr/local/git/ && \
Expand Down Expand Up @@ -65,15 +65,15 @@ ENV EXCLUDE_DOCKER 1
RUN ./hack/install_utils.sh && rm -rf ./*

# Install runc for podman
RUN git clone -b v1.1.12 https://github.com/opencontainers/runc.git $(go env GOPATH)/src/github.com/opencontainers/runc && \
RUN git clone -b v1.1.10 https://github.com/opencontainers/runc.git $(go env GOPATH)/src/github.com/opencontainers/runc && \
cd $(go env GOPATH)/src/github.com/opencontainers/runc && make BUILDTAGS="selinux seccomp" && mv runc /usr/bin/runc

# Install conmon for podman
RUN wget https://github.com/containers/conmon/releases/download/v2.1.0/conmon.amd64 && mv conmon.amd64 /usr/bin/conmon && chmod +x /usr/bin/conmon

# Install podman
RUN wget https://github.com/containers/podman/archive/refs/tags/v3.4.4.tar.gz && \
tar -zxvf v3.4.4.tar.gz && \
tar -zxf v3.4.4.tar.gz && \
cd podman-3.4.4 && make BUILDTAGS="selinux seccomp systemd cni" PREFIX=/usr && make install PREFIX=/usr && \
cd .. && rm v3.4.4.tar.gz && rm -rf podman-3.4.4 && rm -rf go && \
ln -s /usr/bin/podman /usr/bin/docker
Expand Down

0 comments on commit 3a09606

Please sign in to comment.