27 lines
1.5 KiB
Bash
27 lines
1.5 KiB
Bash
# Install Go
|
|
wget https://go.dev/dl/go1.18.1.linux-amd64.tar.gz && sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.18.1.linux-amd64.tar.gz
|
|
echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.bashrc
|
|
exec $SHELL
|
|
|
|
# Install Docker
|
|
#sudo apt-get update && sudo apt-get install ca-certificates curl gnupg lsb-release
|
|
#curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
|
|
#echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
|
#sudo apt-get update && sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
|
|
curl -fsSL https://get.docker.com -o get-docker.sh && chmod +x get-docker.sh && ./get-docker.sh
|
|
sudo chmod 666 /var/run/docker.sock
|
|
|
|
#Install Minikube
|
|
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb
|
|
sudo dpkg -i minikube_latest_amd64.deb
|
|
|
|
#Install Tilt
|
|
curl -fsSL https://raw.githubusercontent.com/tilt-dev/tilt/master/scripts/install.sh | bash
|
|
|
|
# Configure Minikube
|
|
minikube start --driver=docker --kubernetes-version=v1.23.3 --cpus=4 --memory=14G --disk-size=10G --namespace=wormhole
|
|
|
|
#Bring Tilt Up
|
|
git clone --branch dev.v2 https://github.com/certusone/wormhole.git
|
|
echo "tilt up --host=0.0.0.0 -- --webHost=0.0.0.0 --num=1" > wormhole/tilt.sh
|
|
chmod +x wormhole/tilt.sh |