mirror of https://github.com/k3s-io/k3s
35 lines
892 B
Bash
Executable File
35 lines
892 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
. ./scripts/version.sh
|
|
|
|
RUNC_VERSION=v1.0.0-rc94
|
|
ROOT_VERSION=v0.8.1
|
|
TRAEFIK_VERSION=1.81.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 -
|
|
|
|
git clone --depth=1 https://github.com/opencontainers/runc build/src/github.com/opencontainers/runc || true
|
|
pushd build/src/github.com/opencontainers/runc
|
|
git fetch --all --tags
|
|
git checkout ${RUNC_VERSION} -b k3s
|
|
popd
|
|
|
|
TRAEFIK_FILE=traefik-${TRAEFIK_VERSION}.tgz
|
|
TRAEFIK_URL=https://charts.helm.sh/stable/packages/${TRAEFIK_FILE}
|
|
|
|
echo "Downloading Traefik Helm chart from ${TRAEFIK_URL}"
|
|
curl -sfL ${TRAEFIK_URL} -o ${CHARTS_DIR}/${TRAEFIK_FILE}
|
|
code=$?
|
|
|
|
if [ $code -ne 0 ]; then
|
|
echo "Error: Failed to download Traefik Helm chart!"
|
|
exit $code
|
|
fi
|
|
|
|
cp scripts/wg-add.sh bin/aux/
|