-
Notifications
You must be signed in to change notification settings - Fork 63
build imagegw
miguelgila edited this page Feb 8, 2016
·
4 revisions
this can be done using docker-compose
or, on a dedicated system, using the script imagegw/contrib/shifter-imagegw_build_env
.
It can then be run using an init.d script similar to imagegw/contrib/shifter-imagegw_init_d
export APPS=/opt
export ROOT_TREE=${APPS}/system/opt/shifter/15.12.0/imageGW
export SRC_TREE="${ROOT_TREE}/berkeleylab-shifter-a5f1dbaeb86b" #a5f1dbaeb86b is the hash of the release 15.12.0
export PYTHON_VENV="${ROOT_TREE}/imagegw_venv"
cd ${ROOT_TREE}
wget 'https://bitbucket.org/berkeleylab/shifter/get/15.12.0.tar.bz2'
tar xjf 15.12.0.tar.bz2
DEP_RPM_LIST="mongodb-server mongodb redis zlib zlib-devel munge munge-devel openssl openssl-devel"
sudo yum install -y ${DEP_RPM_LIST}
sudo /etc/init.d/mongod
sudo /etc/init.d/redis start
cd ${ROOT_TREE}
MYPYTHONPATH=${ROOT_TREE}/python_2.7.9
wget 'https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz'
tar xzf Python-2.7.9.tgz
cd Python-2.7.9/
./configure --prefix=$MYPYTHONPATH
make -j4 && make install
cd ..
find ./Python-2.7.9 -exec rm -rf {} \;
cd ${ROOT_TREE}
wget 'https://pypi.python.org/packages/source/v/virtualenv/virtualenv-13.1.2.tar.gz#md5=b989598f068d64b32dead530eb25589a'
tar xzvf virtualenv-13.1.2.tar.gz
virtualenv-13.1.2/virtualenv.py imagegw_venv --python=$MYPYTHONPATH/bin/python2.7
cd ${ROOT_TREE}
source ${PYTHON_VENV}/bin/activate
pip install -r ${SRC_TREE}/imagegw/src/requirements.txt