2019-03-22 00:11:42 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e -x
|
|
|
|
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
|
2019-11-12 23:36:04 +00:00
|
|
|
. ./scripts/version.sh
|
|
|
|
|
2020-03-17 01:03:20 +00:00
|
|
|
airgap_image_file='scripts/airgap/image-list.txt'
|
|
|
|
images=$(cat "${airgap_image_file}")
|
2019-03-22 00:11:42 +00:00
|
|
|
xargs -n1 docker pull <<< "${images}"
|
2020-05-27 15:27:30 +00:00
|
|
|
docker save ${images} -o dist/artifacts/k3s-airgap-images-${ARCH}.tar
|
2021-05-10 22:58:41 +00:00
|
|
|
zstd --no-progress -T0 -16 -f --long=25 dist/artifacts/k3s-airgap-images-${ARCH}.tar -o dist/artifacts/k3s-airgap-images-${ARCH}.tar.zst
|
2021-04-09 22:56:40 +00:00
|
|
|
gzip -v -c dist/artifacts/k3s-airgap-images-${ARCH}.tar > dist/artifacts/k3s-airgap-images-${ARCH}.tar.gz
|
2020-09-17 22:14:18 +00:00
|
|
|
if [ ${ARCH} = amd64 ]; then
|
|
|
|
cp "${airgap_image_file}" dist/artifacts/k3s-images.txt
|
|
|
|
fi
|