Skip to content

Instantly share code, notes, and snippets.

@CJ-Wright
Last active September 22, 2016 15:10
Show Gist options
  • Save CJ-Wright/105a311f69ce2a32116f45163cfcd2af to your computer and use it in GitHub Desktop.
Save CJ-Wright/105a311f69ce2a32116f45163cfcd2af to your computer and use it in GitHub Desktop.
Install the APS/NSLS-II hybrid stack
#!/usr/bin/env bash
# Start in the home dir
cd
# Need to install/start mongo
# install miniconda
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O ~/miniconda.sh
chmod +x miniconda.sh
./miniconda.sh -b -p ~/mc
# add nice things to bashrc
echo 'export PATH=~/mc/bin:$PATH' >> ~/.bashrc
echo 'alias sa="source activate"' >> ~/.bashrc
echo 'alias sd="source deactivate"' >> ~/.bashrc
echo 'alias psd="python setup.py develop"' >> ~/.bashrc
export PATH=~/mc/bin:$PATH
alias sa="source activate"
alias sd="source deactivate"
alias psd="python setup.py develop"
# add a condarc
wget https://gist.githubusercontent.com/CJ-Wright/a57600995e4fcf55ad0d4c57589b8b94/raw/a7dabd53cf5fff98fc8d8b15a6804cc9f762adae/.condarc -O ~/.condarc
# add configurations for FS and MDS
mkdir -p ~/.config/metadatastore
echo 'host: localhost' > ~/.config/metadatastore/connection.yml
echo 'database: metadatastore-experimental-data' >> ~/.config/metadatastore/connection.yml
echo 'port: 27017' >> ~/.config/metadatastore/connection.yml
echo 'timezone: US/Eastern' >> ~/.config/metadatastore/connection.yml
mkdir -p ~/.config/filestore
echo 'host: localhost' > ~/.config/filestore/connection.yml
echo 'database: filestore-experimental-data' >> ~/.config/filestore/connection.yml
echo 'port: 27017' >> ~/.config/filestore/connection.yml
# Conda install all the things
conda update conda --yes
conda create -n dp2 python=3 pip nose xraylib numpy scipy six numba mkl matplotlib accelerate mpi4py psutil future scikit-beam databroker datamuxer six pandas coverage
sa dp_prod2
pip install magic-wormhole
mkdir -p ~/other_src
cd ~/other_src
git clone https://github.com/CJ-Wright/sidewinder-spec.git
cd sidewinder-spec
psd
cd ..
git clone https://github.com/CJ-Wright/xpd_workflow.git
cd xpd_workflow
psd
@CJ-Wright
Copy link
Author

Note that you need to have installed mongodb first and get it running.

@CJ-Wright
Copy link
Author

Note that this will need to be updated with the new pyFAI, we should just install it from source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment