Skip to content

Instantly share code, notes, and snippets.

@chiffa
Created December 31, 2015 20:15
Show Gist options
  • Save chiffa/9258344a163ecb78a300 to your computer and use it in GitHub Desktop.
Save chiffa/9258344a163ecb78a300 to your computer and use it in GitHub Desktop.
ubuntu in docker set-up for BioFlow run
# create and set-up home directory
cd /home
mkdir ank
cd ank
# install python build dependencies and system python:
apt-get update
apt-get install python
apt-get install build-essential
apt-get install libsuitesparse-dev
apt-get install wget
apt-get install git
apt-get install curl
apt-get install nohup
# install and activate Oracle Java 7:
apt-get install software-properties-common
apt-get install python-software-properties
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install oracle-java7-installer
apt-get install oracle-java7-set-default
# install neo4j:
cd /home/ank
git clone https://github.com/chiffa/neo4j-community-1.9.6.git
mv neo4j-community-1.9.6 neo4j-yeast
# install mongodb:
cd /home/ank
curl -O https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.8.tgz
tar -zxvf mongodb-linux-x86_64-3.0.8.tgz
rm mongodb-linux-x86_64-3.0.8.tgz
mv mongodb-linux-x86_64-3.0.8 mongodb
mkdir -p /data/db
# install minicoda
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda/sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
hash -r
conda config --set always_yes yes --set changeps1 no
conda update -q conda
rm minicoda.sh
# create and activate test environement:
conda create -1 -n test-environement python="2.7" numpy scipy matplotlib
source activate test-environement
conda install python="2.7" cython scikit-learn
# clone the project into the test environement:
mkdir datastore
git clone https://github.com/chiffa/BioFlow.git
# install project requirements:
cd BioFlow/
pip install requirements -r requirements.txt
# start-up the databases:
/home/ank/neo4j-yeast/bin/neo4j start
nohup /home/ank/mongodb/bin/mongod &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment