-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv-setup.sh
More file actions
executable file
·51 lines (42 loc) · 1.81 KB
/
env-setup.sh
File metadata and controls
executable file
·51 lines (42 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
sudo apt-get install -y curl software-properties-common apt-transport-https ca-certificates
cd /tmp
wget -O - https://dbeaver.io/debs/dbeaver.gpg.key | sudo apt-key add -
echo "deb https://dbeaver.io/debs/dbeaver-ce /" | sudo tee /etc/apt/sources.list.d/dbeaver.list
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt update && sudo apt upgrade
# Reading config file
. .env
for lib in $libs; do
dpkg --status $lib &> /dev/null
if [ $? -eq 0 ]; then
echo "$lib: Already installed"
else
sudo apt-get install -y $lib
echo "$lib: Succesfully installed"
fi
done
# To avoid typing sudo whenever you run the docker command
sudo usermod -aG docker ${USER}
# Docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
# Installing anaconda
which conda &> /dev/null
if [ $? -eq 0 ]; then
echo "conda: Already installed"
else
cd /tmp
VERSION=Anaconda3-2021.05-Linux-x86_64.sh
curl -O https://repo.anaconda.com/archive/$VERSION
sha256sum $VERSION
bash $VERSION
source ~/.bashrc
fi
#Configuring gcloud sdk
gcloud init