Commit 595e1df 1 parent a89f97b commit 595e1df Copy full SHA for 595e1df
File tree 1 file changed +7
-4
lines changed
templates/al2023/provisioners
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -4,18 +4,21 @@ 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 -- force $BUILD_IMAGE
21
+ sudo nerdctl image prune --force
19
22
20
23
# move the nodeadm binary into bin folder
21
24
sudo chmod a+x $PROJECT_DIR /_bin/nodeadm
You can’t perform that action at this time.
0 commit comments