Last active
July 12, 2021 05:29
-
-
Save MJjainam/e50f1ce7ed1cb7fa6eaa1f0a7b8efaa2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#1. Add SSH key of the new testbed | |
function myprog(){ | |
cd ~/; mkdir github.com; cd github.com; mkdir RafaySystems; cd RafaySystems; | |
git clone git@github.com:RafaySystems/rcloud.git | |
git clone git@github.com:RafaySystems/edgesrv.git | |
git clone git@github.com:RafaySystems/edge-common.git | |
git clone git@github.com:RafaySystems/salt-exec.git | |
git clone git@github.com:RafaySystems/rafay-common.git | |
git clone git@github.com:RafaySystems/edgedb-migrations.git | |
git clone git@github.com:RafaySystems/edge-pg-service.git | |
wget https://golang.org/dl/go1.16.5.linux-amd64.tar.gz | |
rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.16.5.linux-amd64.tar.gz | |
export PATH=$PATH:/usr/local/go/bin | |
echo "PATH=$PATH:/usr/local/go/bin" >> ~/.bashrc | |
sudo add-apt-repository ppa:git-core/ppa; sudo apt update; sudo apt install git -y | |
git config --global url."ssh://git@github.com".insteadOf "https://github.com" | |
sudo apt install upx docker gcc unzip make -y | |
sudo groupadd docker | |
sudo usermod -aG docker ${USER} | |
} | |
function extractProto(){ | |
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protoc-3.17.3-linux-x86_64.zip | |
unzip protoc-3.17.3-linux-x86_64.zip -d protoc | |
export PATH=$PATH:/home/ubuntu/protoc/bin:/home/ubuntu/protoc/include >> ~/.bashrc | |
} | |
myprog | |
extractProto |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment