-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1824 from zhouliang-eswin/master
add riscv64 support
- Loading branch information
Showing
2 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM riscv64/alpine:edge | ||
|
||
ENV FLANNEL_ARCH=riscv64 | ||
|
||
ADD dist/qemu-$FLANNEL_ARCH-static /usr/bin/qemu-$FLANNEL_ARCH-static | ||
RUN apk update && apk upgrade | ||
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 | ||
COPY dist/flanneld-$FLANNEL_ARCH /opt/bin/flanneld | ||
COPY dist/mk-docker-opts.sh /opt/bin/ | ||
COPY dist/iptables-wrapper-installer.sh / | ||
RUN /iptables-wrapper-installer.sh --no-sanity-check | ||
|
||
ENTRYPOINT ["/opt/bin/flanneld"] | ||
|