Skip to content

Instantly share code, notes, and snippets.

@pescobar
Last active April 16, 2018 13:50
Show Gist options
  • Save pescobar/3da5df9491a207cf0e06a22b28d1c9ee to your computer and use it in GitHub Desktop.
Save pescobar/3da5df9491a207cf0e06a22b28d1c9ee to your computer and use it in GitHub Desktop.
Install ElastiCluster with Conda
#!/bin/bash
# Install some system dependencies:
# Debian/Ubuntu "sudo apt-get install gcc libc6-dev bzip2"
# RedHat/CentOS "sudo yum install gcc glibc-devel bzip2"
# you DON'T need to run this script as root
ELASTICLUSTER_INSTALL_DIR="$HOME/elasticluster"
curl -O https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh
bash Miniconda2-latest-Linux-x86_64.sh -p ${ELASTICLUSTER_INSTALL_DIR} -b
export PATH=${ELASTICLUSTER_INSTALL_DIR}/bin:$PATH
conda update -y -n base conda
pip install --upgrade pip
conda install -y gcc_linux-64
conda install -y gxx_linux-64
conda install -y git
git clone git://github.com/gc3-uzh-ch/elasticluster.git ${ELASTICLUSTER_INSTALL_DIR}/src
cd ${ELASTICLUSTER_INSTALL_DIR}/src
pip install -e .
echo -e "\n\nYou only need to do 'export PATH=${ELASTICLUSTER_INSTALL_DIR}/bin:\$PATH' to start using ElastiCluster\n\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment