set_up_environment.sh 592 Bytes
Newer Older
Willi Rath's avatar
Willi Rath committed
1 2 3
#!/bin/bash

# calculate timestamp
4
time_stamp=$(date +"%s%N")
Willi Rath's avatar
Willi Rath committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

# target directory for the miniconda installation
mc3_target_dir=_miniconda3

# clean up
rm -rf ${mc3_target_dir}

# download miniconda
installer=_tmp_${time_stamp}_miniconda3.sh
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh \
    -O ${installer}

# install miniconda and clean up
bash ${installer} -b -p ${mc3_target_dir}
rm -f ${installer}

# activate root environment of installation
source ${mc3_target_dir}/bin/activate root

# create the working environment
conda env create -f environment.yml