Skip to content

Commit 21d03e6

Browse files
committed
single script to build arm64 and amd64
1 parent 125f854 commit 21d03e6

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

ebpf-pod-network-stats/build-ebpf-netstats-attach-img-arm64.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash -x
2+
3+
cpu_arch="amd64"
4+
if [[ "$(arch)" == "aarch64" ]]; then
5+
cpu_arch="arm64"
6+
fi
7+
8+
pushd ebpf-netstats-program
9+
make clean
10+
make all
11+
popd
12+
13+
docker rmi -f skiibum/ebpf-netstats-attach-${cpu_arch}:poc
14+
docker image build -t skiibum/ebpf-netstats-attach-${cpu_arch}:poc -f ebpf-netstats-docker-img/ebpf-netstats-attach.Dockerfile .

0 commit comments

Comments
 (0)