#!/bin/bash

# Install curl to download the miniconda setup script.
apt-get install -y curl

# Install VCS.
apt-get install -y git mercurial subversion

# Install bzip2 and tar. Needed for decompressing packages.
apt-get install -y bzip2 tar

# Install dependencies of conda's Qt4.
apt-get install -y libSM6 libXext6 libXrender1

# Clean out apt-get.
apt-get clean

# Download and configure conda.
cd /usr/share/miniconda
curl http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh > miniconda.sh
bash miniconda.sh -b -p /opt/conda
rm miniconda.sh
export PATH="/opt/conda/bin:${PATH}"
source activate root
conda config --set show_channel_urls True

# Install basic conda dependencies.
conda update -y --all
conda install -y pycrypto
conda install -y conda-build
conda install -y anaconda-client
conda install -y jinja2

# Clean out all unneeded intermediates.
conda clean -yitps

#!/bin/bash

# Install curl to download the miniconda setup script.
apt-get install -y curl

# Install VCS.
apt-get install -y git mercurial subversion

# Install bzip2 and tar. Needed for decompressing packages.
apt-get install -y bzip2 tar

# Install dependencies of conda's Qt4.
apt-get install -y libSM6 libXext6 libXrender1

# Clean out apt-get.
apt-get clean

# Download and configure conda.
cd /usr/share/miniconda
curl http://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh > miniconda2.sh
bash miniconda2.sh -b -p /opt/conda2
rm miniconda2.sh
export PATH="/opt/conda/bin:${PATH}"
source activate root
conda config --set show_channel_urls True

# Install basic conda dependencies.
conda update -y --all
conda install -y pycrypto
conda install -y conda-build
conda install -y anaconda-client
conda install -y jinja2

# Clean out all unneeded intermediates.
conda clean -yitps

Install Miniconda2 in `/opt/conda2` instead.
miniconda: Install Miniconda2 in `/opt/conda2` instead.
