This commit is contained in:
Brandon Gulla
2020-08-14 05:49:19 -04:00
commit 1ea9604651
3 changed files with 52 additions and 0 deletions

10
README.md Normal file
View File

@@ -0,0 +1,10 @@
# k3ama - Air-gap Migration Assistant
### Other possible names
* k3vac
* k3ziplock
* k3wh - k3 wormhole
* k3cia - Comms insensensitive Assistant
* k3diode

17
scripts/save-docker-image.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
IMAGE_NAME="$1"
SAVE_DIR="$2"
if [ -z "${IMAGE_NAME}" ]; then
echo "[Usage] ./save-docker-image.sh <image_name>"
exit 1
fi
if [ -z "$2" ]; then
SAVE_DIR="."
fi
echo "Creating ${IMAGE_NAME} backup..."
docker save ${IMAGE_NAME} | gzip --stdout > ${SAVE_DIR}/${IMAGE_NAME}.tgz

25
scripts/save-k3s-artifacts.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
K3S_RELEASE="v1.18.8-rc1%2Bk3s1"
SAVE_DIR="$1"
if [ -z "$1" ]; then
SAVE_DIR="."
fi
# k3s - arm64
wget -P ${SAVE_DIR} https://github.com/rancher/k3s/releases/download/${K3S_VERSION}/k3s-arm64
# k3s - amd64
wget -P ${SAVE_DIR} https://github.com/rancher/k3s/releases/download/${K3S_VERSION}/k3s
# images - amd64
wget -P ${SAVE_DIR} https://github.com/rancher/k3s/releases/download/${K3S_VERSION}/k3s-airgap-images-amd64.tar
# images - arm64
wget -P ${SAVE_DIR} https://github.com/rancher/k3s/releases/download/${K3S_VERSION}/k3s-airgap-images-arm64.tar
# images.txt
wget -P ${SAVE_DIR} https://github.com/rancher/k3s/releases/download/${K3S_VERSION}/k3s-images.txt