-
Notifications
You must be signed in to change notification settings - Fork 7
/
instance_install_script
34 lines (34 loc) · 1.34 KB
/
instance_install_script
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
cd ~
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt -y install git-lfs
git lfs install
git clone https://github.com/spinamp/spindexer.git
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
nvm install 16.17
nvm alias default 16.17
nvm use 16.17
sudo apt-get -y install wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
sudo apt-get update
sudo apt-get -y install postgresql postgresql-contrib
cd spindexer/
npm install -g typescript
npm install -g ts-node
npm install --global yarn
sudo apt install -y build-essential
yarn
cp .env.example .env
cp rds-ssl-certificate.pem db-ssl-certificate.pem
yarn config set script-shell /bin/bash
echo "cd spindexer" >> ~/.bashrc
echo "alias g=\"git\"" >> ~/.bashrc
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
git config --global core.editor "vim"
source ~/.bashrc