2019-01-24 17:51:14 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
|
2019-11-12 23:36:04 +00:00
|
|
|
. ./scripts/version.sh
|
|
|
|
|
2019-10-04 02:35:23 +00:00
|
|
|
ROOT_VERSION=v0.3.0
|
2019-08-29 03:21:07 +00:00
|
|
|
TRAEFIK_VERSION=1.77.1
|
2019-03-20 00:21:49 +00:00
|
|
|
CHARTS_DIR=build/static/charts
|
|
|
|
|
|
|
|
mkdir -p ${CHARTS_DIR}
|
|
|
|
|
2019-09-20 00:17:56 +00:00
|
|
|
curl --compressed -sfL https://github.com/rancher/k3s-root/releases/download/${ROOT_VERSION}/k3s-root-${ARCH}.tar | tar xf -
|
2019-01-31 23:57:50 +00:00
|
|
|
ln -sf pigz bin/unpigz
|
2019-11-04 18:35:14 +00:00
|
|
|
for target in iptables iptables-save iptables-restore ip6tables ip6tables-save ip6tables-restore; do
|
|
|
|
ln -sf xtables-legacy-multi bin/$target
|
|
|
|
done
|
2019-05-02 19:19:16 +00:00
|
|
|
mkdir -p bin/aux && rm bin/mount && ln -sf ../busybox bin/aux/mount
|
2019-03-20 00:21:49 +00:00
|
|
|
|
|
|
|
TRAEFIK_FILE=traefik-${TRAEFIK_VERSION}.tgz
|
|
|
|
curl -sfL https://kubernetes-charts.storage.googleapis.com/${TRAEFIK_FILE} -o ${CHARTS_DIR}/${TRAEFIK_FILE}
|
2019-09-03 23:41:54 +00:00
|
|
|
|
|
|
|
cp scripts/wg-add.sh bin/aux/
|