forked from bharathi26/ExaBGPmon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
36 lines (29 loc) · 1.05 KB
/
install.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
#!/bin/bash
# Install essential packages from Apt
apt-get update -y
# Python dev packages
apt-get install -y build-essential python python-dev python-setuptools python-pip mongodb language-pack-nl
# Dependencies for image processing with Pillow (drop-in replacement for PIL)
# supporting: jpeg, tiff, png, freetype, littlecms
apt-get install -y libncurses5-dev libjpeg-dev libtiff-dev zlib1g-dev libfreetype6-dev liblcms2-dev
# Git (we'd rather avoid people keeping credentials for git commits in the repo, but sometimes we need it for pip requirements that aren't in PyPI)
apt-get install -y git
# virtualenv global setup
if ! command -v pip; then
easy_install -U pip
fi
locale-gen nl_NL.UTF-8
echo "Installing python requirements"
pip install -r /vagrant/requirements.txt
cd /vagrant
echo "Init config"
python manage.py init_config
python manage.py build_config
if [[ ! -f /vagrant/etc/exabgp.env ]]; then
python manage.py build_env
fi
# Cleanup
apt-get clean
echo "Zeroing free space to improve compression."
dd if=/dev/zero of=/EMPTY bs=1M
rm -f /EMPTY