File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -25,13 +25,20 @@ IMAGE_NAME="${IMAGE_NAME:-node}"
25
25
REPO_ROOT=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) /../.." & > /dev/null && pwd -P) "
26
26
cd " ${REPO_ROOT} "
27
27
28
- VERSION=" $1 "
28
+ VERSION=" ${1:- } "
29
+ if [[ -z " ${VERSION} " ]]; then
30
+ echo >&2 " version argument not supplied, looking up current stable ..."
31
+ VERSION=" $( curl -sL https://dl.k8s.io/release/stable.txt) "
32
+ fi
33
+ echo >&2 " will build node image for Kubernetes ${VERSION} ..."
29
34
30
35
# ensure we have up to date kind
36
+ echo >&2 " building kind ..."
31
37
make build
32
38
33
39
# ensure we have qemu setup so we can run cross-arch images
34
40
# TODO: dedupe specifying this image?
41
+ echo >&2 " ensuring binfmt_misc ..."
35
42
docker run --rm --privileged tonistiigi/binfmt:qemu-v7.0.0-28@sha256:66e11bea77a5ea9d6f0fe79b57cd2b189b5d15b93a2bdb925be22949232e4e55 --install all
36
43
37
44
# NOTE: adding platforms is costly in terms of build time
@@ -48,6 +55,7 @@ IMAGE="${REGISTRY}/${IMAGE_NAME}:${VERSION}"
48
55
images=()
49
56
for arch in " ${__arches__[@]} " ; do
50
57
image=" ${REGISTRY} /${IMAGE_NAME} -${arch} :${VERSION} "
58
+ echo >&2 " building ${image} ..."
51
59
" ${REPO_ROOT} /bin/kind" build node-image --image=" ${image} " --arch=" ${arch} " " ${VERSION} "
52
60
images+=(" ${image} " )
53
61
done
You can’t perform that action at this time.
0 commit comments