Package airgap image files

Generate airgap artifacts from an images list for each architecture.
This commit is contained in:
Erik Wilson 2019-03-22 00:11:42 +00:00
parent 9645048a57
commit 40172dc508
4 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,8 @@
#!/bin/bash
set -e -x
cd $(dirname $0)
k3s crictl images -o json \
| jq -r '.images[].repoTags[0] | select(. != null)' \
| tee image-list.txt

View File

@ -0,0 +1,5 @@
docker.io/coredns/coredns:1.3.0
docker.io/library/traefik:1.7.9
docker.io/rancher/klipper-helm:v0.1.5
docker.io/rancher/klipper-lb:v0.1.1
k8s.gcr.io/pause:3.1

View File

@ -9,3 +9,4 @@ fi
./package-cli
./package-image
./package-airgap

10
scripts/package-airgap Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
set -e -x
source $(dirname $0)/version.sh
cd $(dirname $0)/..
images=$(cat scripts/airgap/image-list.txt)
xargs -n1 docker pull <<< "${images}"
docker save ${images} -o dist/artifacts/k3s-airgap-images-${ARCH}.tar