diff --git a/flannel/flannel-cni-plugin/Dockerfile b/flannel/flannel-cni-plugin/Dockerfile new file mode 100644 index 0000000..e6131e8 --- /dev/null +++ b/flannel/flannel-cni-plugin/Dockerfile @@ -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 diff --git a/flannel/flannel/Dockerfile b/flannel/flannel/Dockerfile new file mode 100644 index 0000000..c6d8c30 --- /dev/null +++ b/flannel/flannel/Dockerfile @@ -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"]