mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
02a5bee62f
* Move registries.yaml handling out to rancher/wharfie * Add system-default-registry support * Add CLI support for kubelet image credential providers Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
17 lines
596 B
Bash
Executable File
17 lines
596 B
Bash
Executable File
#!/bin/bash
|
|
set -e -x
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
. ./scripts/version.sh
|
|
|
|
airgap_image_file='scripts/airgap/image-list.txt'
|
|
images=$(cat "${airgap_image_file}")
|
|
xargs -n1 docker pull <<< "${images}"
|
|
docker save ${images} -o dist/artifacts/k3s-airgap-images-${ARCH}.tar
|
|
zstd --no-progress -T0 -16 -f --long=25 dist/artifacts/k3s-airgap-images-${ARCH}.tar -o dist/artifacts/k3s-airgap-images-${ARCH}.tar.zst
|
|
gzip -v -c dist/artifacts/k3s-airgap-images-${ARCH}.tar > dist/artifacts/k3s-airgap-images-${ARCH}.tar.gz
|
|
if [ ${ARCH} = amd64 ]; then
|
|
cp "${airgap_image_file}" dist/artifacts/k3s-images.txt
|
|
fi
|