Skip to content

Commit

Permalink
Fix windows airgap image packaging
Browse files Browse the repository at this point in the history
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
  • Loading branch information
brandond committed Aug 20, 2024
1 parent ba87c79 commit cdad5d0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down
8 changes: 4 additions & 4 deletions scripts/build-windows-images
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF >build/windows-images.txt
${REGISTRY}/${REPO}/${PROG}-runtime:${DOCKERIZED_VERSION}-windows-amd64
${REGISTRY}/${REPO}/mirrored-pause:${PAUSE_VERSION}
EOF
12 changes: 6 additions & 6 deletions scripts/package-windows-images
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cdad5d0

Please sign in to comment.