-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminiconda_install.sh
34 lines (27 loc) · 1.04 KB
/
miniconda_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
#!/bin/bash
# miniconda_install.sh
# Download and install the latest Miniconda
miniconda=Miniconda-latest-Linux-x86.sh
condapackages="django pandas Jinja2 sqlalchemy psycopg2 xlrd"
cd /vagrant
if [[ ! -f $miniconda ]]; then
wget --quiet http://repo.continuum.io/miniconda/$miniconda
fi
chmod +x $miniconda
sudo ./$miniconda -b -p /opt/anaconda
sudo chown -R vagrant /opt/anaconda
#Install conda packages
/opt/anaconda/bin/conda config --add channels IOOS
/opt/anaconda/bin/conda install --yes -q -c https://conda.anaconda.org/ioos $condapackages
/opt/anaconda/bin/pip install aldjemy
/opt/anaconda/bin/pip install folium
/opt/anaconda/bin/pip install geoalchemy2
# Add the Anaconda python executables to the path for the vagrant user
cat >> /home/vagrant/.bashrc << END
# add for anaconda install
PATH=/opt/anaconda/bin:\$PATH
PATH=/opt/anaconda/lib:\$PATH
END
# Run the ipython notebook server on all IP addresses.
# This is in the Vagrantfile.. suggest leaving it out here.
# cd /home/vagrant && /opt/anaconda/bin/ipython notebook --no-browser --ip="*" &