Add flannel and flannel-cni-plugin dockerfiles
This commit is contained in:
parent
1e24b37b8b
commit
e82f9aaea2
8
flannel/flannel-cni-plugin/Dockerfile
Normal file
8
flannel/flannel-cni-plugin/Dockerfile
Normal 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
|
20
flannel/flannel/Dockerfile
Normal file
20
flannel/flannel/Dockerfile
Normal 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"]
|
Loading…
Reference in New Issue
Block a user