Skip to content

Commit

Permalink
Merge pull request #212 from chiukapoor/rancher-hardened-cniplugins
Browse files Browse the repository at this point in the history
Copy CNI plugins from rancher/hardened-cni-plugins image
  • Loading branch information
chiukapoor authored Oct 18, 2024
2 parents 3b3ab69 + 0657e0b commit 40e8abe
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions package/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM rancher/hardened-cni-plugins:v1.5.1-build20240910 as cni_base

FROM nginx:1.27.1-alpine as base

ENV DOCKER_VERSION=27.1.1
ENV CNI_PLUGINS_VERSION=v1.5.1
ENV FLANNEL_VERSION=v1.5.1-flannel1
ENV ETCD_VERSION=v3.5.16
ENV CRIDOCKERD_VERSION=0.3.15
ENV RANCHER_CONFD_VERSION=v0.16.6
Expand Down Expand Up @@ -30,9 +30,8 @@ RUN apk -U --no-cache add curl wget ca-certificates tar sysstat acl\
&& apk del curl

RUN mkdir -p /opt/cni/bin
RUN wget -q -O - https://github.com/containernetworking/plugins/releases/download/${CNI_PLUGINS_VERSION}/cni-plugins-linux-${ARCH}-${CNI_PLUGINS_VERSION}.tgz | tar xzf - -C /tmp \
&& wget -q -O /tmp/flannel "https://github.com/flannel-io/cni-plugin/releases/download/${FLANNEL_VERSION}/flannel-${ARCH}" \
&& chmod +x /tmp/flannel

COPY --from=cni_base /opt/cni/bin /tmp

ENV ETCD_URL=https://github.com/etcd-io/etcd/releases/download/${ETCD_VERSION}/etcd-${ETCD_VERSION}-linux-${ARCH}.tar.gz

Expand Down

0 comments on commit 40e8abe

Please sign in to comment.