mirror of
https://github.com/containers/podman.git
synced 2025-06-22 18:08:11 +08:00
Merge pull request #3856 from giuseppe/fix-dockerfile-cni
Dockerfile*: fix build for CNI plugins
This commit is contained in:
@ -70,11 +70,11 @@ RUN set -x \
|
||||
# Install CNI plugins
|
||||
ENV CNI_COMMIT 485be65581341430f9106a194a98f0f2412245fb
|
||||
RUN set -x \
|
||||
&& export GOPATH="$(mktemp -d)" \
|
||||
&& export GOPATH="$(mktemp -d)" GOCACHE="$(mktemp -d)" \
|
||||
&& git clone https://github.com/containernetworking/plugins.git "$GOPATH/src/github.com/containernetworking/plugins" \
|
||||
&& cd "$GOPATH/src/github.com/containernetworking/plugins" \
|
||||
&& git checkout -q "$CNI_COMMIT" \
|
||||
&& ./build.sh \
|
||||
&& ./build_linux.sh \
|
||||
&& mkdir -p /usr/libexec/cni \
|
||||
&& cp bin/* /usr/libexec/cni \
|
||||
&& rm -rf "$GOPATH"
|
||||
|
@ -29,11 +29,11 @@ RUN yum -y install btrfs-progs-devel \
|
||||
# Install CNI plugins
|
||||
ENV CNI_COMMIT 485be65581341430f9106a194a98f0f2412245fb
|
||||
RUN set -x \
|
||||
&& export GOPATH="$(mktemp -d)" \
|
||||
&& export GOPATH="$(mktemp -d)" GOCACHE="$(mktemp -d)" \
|
||||
&& git clone https://github.com/containernetworking/plugins.git "$GOPATH/src/github.com/containernetworking/plugins" \
|
||||
&& cd "$GOPATH/src/github.com/containernetworking/plugins" \
|
||||
&& git checkout -q "$CNI_COMMIT" \
|
||||
&& ./build.sh \
|
||||
&& ./build_linux.sh \
|
||||
&& mkdir -p /usr/libexec/cni \
|
||||
&& cp bin/* /usr/libexec/cni \
|
||||
&& rm -rf "$GOPATH"
|
||||
|
@ -31,12 +31,13 @@ RUN dnf -y install btrfs-progs-devel \
|
||||
|
||||
# Install CNI plugins
|
||||
ENV CNI_COMMIT 485be65581341430f9106a194a98f0f2412245fb
|
||||
ENV
|
||||
RUN set -x \
|
||||
&& export GOPATH="$(mktemp -d)" \
|
||||
&& export GOPATH="$(mktemp -d)" GOCACHE="$(mktemp -d)" \
|
||||
&& git clone https://github.com/containernetworking/plugins.git "$GOPATH/src/github.com/containernetworking/plugins" \
|
||||
&& cd "$GOPATH/src/github.com/containernetworking/plugins" \
|
||||
&& git checkout -q "$CNI_COMMIT" \
|
||||
&& ./build.sh \
|
||||
&& ./build_linux.sh \
|
||||
&& mkdir -p /usr/libexec/cni \
|
||||
&& cp bin/* /usr/libexec/cni \
|
||||
&& rm -rf "$GOPATH"
|
||||
|
Reference in New Issue
Block a user