k3s/scripts/download
2020-03-03 00:00:39 +02:00

24 lines
701 B
Bash
Executable File

#!/bin/bash
cd $(dirname $0)/..
. ./scripts/version.sh
ROOT_VERSION=v0.3.0
NGINX_VERSION=1.33.0
CHARTS_DIR=build/static/charts
mkdir -p ${CHARTS_DIR}
curl --compressed -sfL https://github.com/rancher/k3s-root/releases/download/${ROOT_VERSION}/k3s-root-${ARCH}.tar | tar xf -
ln -sf pigz bin/unpigz
for target in iptables iptables-save iptables-restore ip6tables ip6tables-save ip6tables-restore; do
ln -sf xtables-legacy-multi bin/$target
done
mkdir -p bin/aux && rm bin/mount && ln -sf ../busybox bin/aux/mount
NGINX_FILE=nginx-ingress-${NGINX_VERSION}.tgz
curl -sfL https://kubernetes-charts.storage.googleapis.com/${NGINX_FILE} -o ${CHARTS_DIR}/${NGINX_FILE}
cp scripts/wg-add.sh bin/aux/