-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.sh
38 lines (25 loc) · 997 Bytes
/
bootstrap.sh
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
#!/usr/bin/env bash
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y python3
sudo apt-get install -y python-virtualenv
virtualenv -p python3 /vagrant/venv
sudo apt-get install -y build-essential python3-dev postgresql postgresql-contrib libpq-dev libssl-dev libffi-dev python-dev
source vagrant/venv/bin/activate
pip install --upgrade pip
pip install -r /vagrant/requirements.txt
# Consul and Vault
sudo apt-get install -y unzip
wget https://releases.hashicorp.com/consul/0.7.5/consul_0.7.5_linux_amd64.zip?_ga=1.48262182.1681598438.1487547995
wget https://releases.hashicorp.com/vault/0.6.5/vault_0.6.5_linux_amd64.zip
consul agent -server -bootstrap-expect 1 -data-dir /tmp/consul -bind 127.0.0.1
export VAULT_ADDR='http://127.0.0.1:8200'
# R
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make
screen -S vault
screen -S consul
screen -S redis
ln -s /srv/password-manager/pwmanager/nginx.conf /etc/nginx/sites-enabled/