mirror of
https://github.com/hauler-dev/hauler.git
synced 2026-02-14 09:59:50 +00:00
baseline
This commit is contained in:
10
README.md
Normal file
10
README.md
Normal 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
17
scripts/save-docker-image.sh
Executable 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
25
scripts/save-k3s-artifacts.sh
Executable 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
|
||||
|
||||
Reference in New Issue
Block a user