Add flannel and flannel-cni-plugin dockerfiles

This commit is contained in:
Александр Степченко 2022-12-09 12:25:52 +03:00
parent 1e24b37b8b
commit e82f9aaea2
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,8 @@
FROM alt:sisyphus
RUN apt-get update && apt-get install -y cni-plugin-flannel; \
rm -f /var/cache/apt/archives/*.rpm \
/var/cache/apt/*.bin \
/var/lib/apt/lists/*.*
RUN cp /usr/libexec/cni/flannel /flannel

View File

@ -0,0 +1,20 @@
FROM alt:sisyphus
#RUN apk add --no-cache iproute2 net-tools ca-certificates iptables strongswan && update-ca-certificates
#RUN apk add wireguard-tools --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community
RUN apt-get update && apt-get install -y iproute2 net-tools ca-certificates \
iptables iptables-nft strongswan wireguard-tools flannel wget && update-ca-trust; \
rm -f /var/cache/apt/archives/*.rpm \
/var/cache/apt/*.bin \
/var/lib/apt/lists/*.*
#COPY dist/flanneld-$FLANNEL_ARCH /opt/bin/flanneld
#COPY dist/mk-docker-opts.sh /opt/bin/
#COPY dist/iptables-wrapper-installer.sh /
RUN mkdir -p /opt/bin/ && cp /usr/sbin/flanneld /opt/bin/flanneld
RUN cp /usr/libexec/flannel/mk-docker-opts.sh /opt/bin/
#COPY dist/iptables-wrapper-installer.sh /
#RUN /iptables-wrapper-installer.sh
ENTRYPOINT ["/opt/bin/flanneld"]