-
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
175 changed files
with
2,194 additions
and
22,535 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,13 +1,11 @@ | ||
#!/bin/bash | ||
|
||
rm -rf output | ||
|
||
export PATH=/opt/compiler/gcc-8.2/bin:$PATH | ||
make -f Makefile prepare compile GOARCH=amd64 | ||
mv output amd64 | ||
make -f Makefile prepare compile GOARCH=arm64 | ||
mv output arm64 | ||
|
||
mkdir -p output | ||
mv arm64 output | ||
mv amd64 output | ||
|
||
mv arm64 output/arm64 | ||
mv amd64 output/amd64 |
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-slim | ||
FROM registry.baidubce.com/cce-plugin-pro/cce-cni-base:v1.0.0 | ||
|
||
LABEL maintainer="Chen Yaqi<[email protected]>" | ||
|
||
|
@@ -11,9 +11,6 @@ COPY output/cni-bin/ptp /ptp | |
COPY output/cni-bin/eni-ipam /eni-ipam | ||
COPY output/cni-bin/sysctl /sysctl | ||
COPY output/cni-bin/crossvpc-eni /crossvpc-eni | ||
COPY output/cni-bin/rdma /rdma | ||
COPY output/cni-bin/eri /eri | ||
COPY output/cni-bin/roce /roce | ||
|
||
# install cce ipam binary | ||
COPY output/cce-ipam /bin/cce-ipam | ||
|
@@ -24,6 +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 | ||
|
||
COPY build/images/cce-cni/entrypoint.sh /entrypoint.sh | ||
|
||
CMD ["/bin/sh", "/entrypoint.sh"] | ||
CMD ["/bin/bash", "/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
This file was deleted.
Oops, something went wrong.
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,16 +1,13 @@ | ||
FROM alpine:3.18 | ||
FROM cce-cni-debian-iptables:v1.0.0 | ||
|
||
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 entrypoint.sh /entrypoint.sh | ||
COPY uninstall-cni.sh /uninstall-cni.sh | ||
COPY build/images/cce-cni/entrypoint.sh /entrypoint.sh | ||
COPY build/images/cce-cni/uninstall-cni.sh /uninstall-cni.sh | ||
|
||
CMD ["/bin/sh", "/entrypoint.sh"] | ||
CMD ["/bin/bash", "/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
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
Oops, something went wrong.