This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit bbb7256 committed Jan 30, 2024 · 8 / 8
1 parent a89f97b commit bbb7256 Copy full SHA for bbb7256
File tree 1 file changed +9
-4
lines changed
templates/al2023/provisioners
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -4,18 +4,23 @@ set -o pipefail
4
4
set -o nounset
5
5
set -o errexit
6
6
7
+ BUILD_IMAGE=public.ecr.aws/eks-distro-build-tooling/golang:1.21
8
+
7
9
sudo systemctl start containerd
8
10
9
11
sudo nerdctl run \
10
12
--rm \
13
+ --network host \
11
14
--workdir /workdir \
12
15
--volume $PROJECT_DIR :/workdir \
13
- public.ecr.aws/eks-distro-build-tooling/golang:1.21 \
16
+ $BUILD_IMAGE \
14
17
make build
15
18
16
- # cleanup images and networks used for nerdctl
17
- sudo nerdctl image prune --all --force
18
- sudo nerdctl network rm $( sudo nerdctl network list -q)
19
+ # cleanup build image and snapshots
20
+ sudo nerdctl rmi \
21
+ --force \
22
+ $BUILD_IMAGE \
23
+ $( sudo nerdctl images -a | grep none | awk ' { print $3 }' )
19
24
20
25
# move the nodeadm binary into bin folder
21
26
sudo chmod a+x $PROJECT_DIR /_bin/nodeadm
You can’t perform that action at this time.
0 commit comments