From bd916c5b77b22c3a37038593ad4ca38280d79165 Mon Sep 17 00:00:00 2001 From: Brad Davidson Date: Mon, 19 Aug 2024 17:56:16 +0000 Subject: [PATCH] Fix windows airgap image packaging Signed-off-by: Brad Davidson --- Dockerfile | 2 +- scripts/build-windows-images | 8 ++++---- scripts/package-windows-images | 12 ++++++------ 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index cf66fbb2e7..b3f21b9d1d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -64,7 +64,7 @@ RUN set -x && \ apk add --no-cache rpm-dev; \ fi -RUN GOCR_VERSION="v0.5.1" && \ +RUN GOCR_VERSION="v0.20.2" && \ if [ "${ARCH}" = "arm64" ]; then \ wget https://github.com/google/go-containerregistry/releases/download/${GOCR_VERSION}/go-containerregistry_Linux_arm64.tar.gz && \ tar -zxvf go-containerregistry_Linux_arm64.tar.gz && \ diff --git a/scripts/build-windows-images b/scripts/build-windows-images index 12a3bcf8eb..fdd55084a7 100755 --- a/scripts/build-windows-images +++ b/scripts/build-windows-images @@ -11,7 +11,7 @@ fi mkdir -p build -WINDOWS_IMAGES=(${REGISTRY}/${REPO}/${PROG}-runtime:${DOCKERIZED_VERSION}-windows-amd64 rancher/mirrored-pause:${PAUSE_VERSION}-windows-1809-amd64 rancher/mirrored-pause:${PAUSE_VERSION}-windows-ltsc2022-amd64) -for IMAGE in "${WINDOWS_IMAGES[@]}"; do - echo "${IMAGE}" >> build/windows-images.txt -done +cat <build/windows-images.txt +${REGISTRY}/${REPO}/${PROG}-runtime:${DOCKERIZED_VERSION}-windows-amd64 +${REGISTRY}/${REPO}/mirrored-pause:${PAUSE_VERSION} +EOF diff --git a/scripts/package-windows-images b/scripts/package-windows-images index c21dfe6acd..e70ad0ffa6 100755 --- a/scripts/package-windows-images +++ b/scripts/package-windows-images @@ -7,16 +7,16 @@ source ./scripts/version.sh mkdir -p dist/artifacts -# 1809/LTSC -crane --platform windows/amd64 pull \ +# ltsc1809 / Server 2019 1809 +crane pull --platform windows/amd64:10.0.17763.2114 \ ${REGISTRY}/${REPO}/${PROG}-runtime:${DOCKERIZED_VERSION}-windows-amd64 \ - rancher/pause:${PAUSE_VERSION}-windows-1809-amd64 \ + ${REGISTRY}/${REPO}/mirrored-pause:${PAUSE_VERSION} \ rke2-windows-1809-amd64-images.tar -# 2022/LTSC -crane --platform windows/amd64 pull \ +# ltsc2022 / Server 2022 21H2 +crane pull --platform windows/amd64:10.0.20348.169 \ ${REGISTRY}/${REPO}/${PROG}-runtime:${DOCKERIZED_VERSION}-windows-amd64 \ - rancher/pause:${PAUSE_VERSION}-windows-ltsc2022-amd64 \ + ${REGISTRY}/${REPO}/mirrored-pause:${PAUSE_VERSION} \ rke2-windows-ltsc2022-amd64-images.tar WINDOWS_TARFILES=(rke2-windows-1809-amd64-images.tar rke2-windows-ltsc2022-amd64-images.tar)