mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
15 lines
341 B
Bash
15 lines
341 B
Bash
|
#!/bin/bash
|
||
|
set -e
|
||
|
|
||
|
cd $(dirname $0)/../bin
|
||
|
|
||
|
# Prime sudo
|
||
|
sudo echo Compiling CLI
|
||
|
go build -tags "k8s no_etcd" -o rio-agent ../cli/main.go
|
||
|
|
||
|
echo Building image and agent
|
||
|
../image/build
|
||
|
|
||
|
echo Running
|
||
|
exec sudo ENTER_ROOT=../image/main.squashfs ./rio-agent --debug agent -s https://localhost:7443 -t $(<${HOME}/.rancher/rio/server/node-token)
|