Last active
September 1, 2020 12:46
-
-
Save lpsm-dev/020e5e38e2615092f6e625f81aab0af5 to your computer and use it in GitHub Desktop.
🍻 Starting Development Environment on Linux
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
mkdir -p ~/gitlab | |
rm -rf ~/gitlab/.gitconfig | |
cat << EOF >> ~/gitlab/.gitconfig | |
[user] | |
name = lpmatos | |
email = lpmatos@gmail.com | |
EOF | |
mkdir -p ~/github | |
rm -rf ~/github/.gitconfig | |
cat << EOF >> ~/github/.gitconfig | |
[user] | |
name = lpmatos | |
email = luccapessoamatos@gmail.com | |
EOF | |
mkdir -p ~/work | |
rm -rf ~/work/.gitconfig | |
cat << EOF >> ~/work/.gitconfig | |
[user] | |
name = lpmatos | |
email = lpmatos@stefanini.com | |
EOF | |
sudo apt update | |
sudo apt upgrade -y | |
sudo apt install git curl -y < /dev/null | |
rm -rf ~/.gitconfig | |
cat << EOF >> ~/.gitconfig | |
[user] | |
name = lpmatos | |
email = luccapessoamatos@gmail.com | |
[credential] | |
helper = cache --timeout=3600 | |
[includeIf "gitdir:~/gitlab/"] | |
path = ~/gitlab/.gitconfig | |
[includeIf "gitdir:~/github/"] | |
path = ~/github/.gitconfig | |
[includeIf "gitdir:~/work/"] | |
path = ~/work/.gitconfig | |
EOF | |
sudo apt install nodejs npm ruby-full python3-pip -y < /dev/null | |
sudo apt install build-essential libssl-dev libffi-dev python3-dev -y < /dev/null | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
sudo apt-get update | |
sudo apt-get install yarn -y < /dev/null | |
curl --compressed -o- -L https://yarnpkg.com/install.sh | bash | |
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash | |
sudo apt-get update && sudo apt-get install -y apt-transport-https gnupg2 < /dev/null | |
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - | |
echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list | |
sudo apt-get update | |
sudo apt-get install -y kubectl < /dev/null | |
mkdir -p ~/.kube | |
# Enable passwordless sudo | |
sudo tee /etc/sudoers.d/lucca > /dev/null <<EOF | |
lucca ALL=(ALL) NOPASSWD:ALL | |
EOF | |
sudo add-apt-repository ppa:longsleep/golang-backports | |
sudo apt update -y | |
sudo apt install -y golang-go < /dev/null | |
# Add Go to path | |
sudo mkdir -p /home/lucca | |
sudo touch /home/lucca/.bashrc | |
sudo tee -a /home/lucca/.bashrc > /dev/null <<'EOF' | |
export PATH=$PATH:/home/lucca/go/bin | |
export GOPATH=/home/lucca/go | |
EOF | |
export GOPATH=/home/lucca/go | |
export PATH=$PATH:/home/lucca/go/bin | |
# JDK | |
sudo apt-get install -y openjdk-8-jdk < /dev/null | |
go get -u git.stefanini.io/shared/gitlabid | |
go get -u github.com/golang/lint/golint | |
go get -u github.com/lpmatos/glabby | |
pip3 install GitLabRC --no-warn-script-location | |
exec bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment