-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
142 additions
and
30 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM registry.baidubce.com/cce-plugin-pro/cce-cni-base:v1.0.0 | ||
FROM registry.baidubce.com/cce-plugin-pro/cce-cni-base:v1.0.0-slim | ||
|
||
LABEL maintainer="Chen Yaqi<[email protected]>" | ||
|
||
|
@@ -21,4 +21,4 @@ COPY output/cni-node-agent /bin/cni-node-agent | |
# install cce node agent binary | ||
COPY output/ip-masq-agent /bin/cce-ip-masq-agent | ||
|
||
CMD ["/bin/bash", "/entrypoint.sh"] | ||
CMD ["/bin/sh", "/entrypoint.sh"] |
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 |
---|---|---|
@@ -1,13 +1,16 @@ | ||
FROM cce-cni-debian-iptables:v1.0.0 | ||
FROM alpine:3.18 | ||
|
||
LABEL maintainer="Chen Yaqi<[email protected]>" | ||
|
||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories | ||
RUN apk --no-cache add curl | ||
|
||
# ensure cni bin from https://github.com/containernetworking/plugins/releases/download/v1.0.1/cni-plugins-linux-${arch}-v1.0.1.tgz | ||
RUN arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) && \ | ||
curl -L -k --retry 5 https://github.com/containernetworking/plugins/releases/download/v1.0.1/cni-plugins-linux-${arch}-v1.0.1.tgz | tar -xz -C / ./loopback ./host-local ./portmap ./bridge | ||
|
||
# install entrypoint.sh and uninstall-cni.sh | ||
COPY build/images/cce-cni/entrypoint.sh /entrypoint.sh | ||
COPY build/images/cce-cni/uninstall-cni.sh /uninstall-cni.sh | ||
COPY entrypoint.sh /entrypoint.sh | ||
COPY uninstall-cni.sh /uninstall-cni.sh | ||
|
||
CMD ["/bin/bash", "/entrypoint.sh"] | ||
CMD ["/bin/sh", "/entrypoint.sh"] |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
set -u -e | ||
|
||
CNI_BINARY_DIR=/opt/cni/bin/ | ||
|
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
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