-
Notifications
You must be signed in to change notification settings - Fork 0
/
.envrc.gitpod
37 lines (32 loc) · 1.33 KB
/
.envrc.gitpod
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
#!/bin/bash
WORKPLACE="${PWD}"
if ! command -v terraform &> /dev/null
then
sudo apt-get update && sudo apt-get install -y gnupg software-properties-common curl
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
sudo apt-get update && sudo apt-get install terraform
fi
if ! command -v commitizen &> /dev/null
then
npm install commitizen -g
commitizen init cz-conventional-changelog --save-dev --save-exact
npm install --save-dev @commitlint/prompt @commitlint/config-conventional commitizen
touch .git/hooks/prepare-commit-msg
echo "exec < /dev/tty && node_modules/.bin/cz --hook || true" >> .git/hooks/prepare-commit-msg
fi
if ! command -v secretsfoundry &> /dev/null
then
cd /tmp &&\
wget https://github.com/truefoundry/secretsfoundry/releases/download/v0.1.16/secretsfoundry-0.1.16-linux-x64 &&\
mv secretsfoundry-0.1.16-linux-x64 secretsfoundry &&\
chmod u+x secretsfoundry &&\
sudo mv secretsfoundry /usr/local/bin
fi
if ! command -v csvdiff &> /dev/null
then
cd /tmp &&\
wget https://github.com/aswinkarthik/csvdiff/releases/download/v1.4.0/csvdiff_1.4.0_linux_64-bit.deb &&\
mv csvdiff_1.4.0_linux_64-bit.deb csvdiff.deb &&\
sudo dpkg -i csvdiff.deb
fi