Commit 6125b1c1 authored by Volodymyr SAVCHENKO's avatar Volodymyr SAVCHENKO
Browse files

run

parent 17bd9c39
......@@ -20,75 +20,29 @@ RUN ln -s /usr/lib64/libpcre.so.1 /usr/lib64/libpcre.so.0
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | bash && yum -y install git-lfs
RUN cp -fv /usr/bin/gfortran /usr/bin/g95
ARG uid
RUN groupadd -r integral -g $uid && useradd -u $uid -r -g integral integral && \
mkdir /home/integral /data && \
chown -R integral:integral /home/integral /data
USER integral
## pyenv
WORKDIR /home/integral
RUN git clone git://github.com/yyuu/pyenv.git .pyenv
ENV HOME /home/integral
ENV PYENV_ROOT $HOME/.pyenv
ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
RUN export PYTHON_CONFIGURE_OPTS="--enable-shared" && pyenv install 2.7.12
RUN pyenv global 2.7.12
RUN pyenv rehash
RUN pip install pip --upgrade
RUN pip install future
RUN pip install numpy scipy astropy matplotlib
## install heasoft
ADD heasoft_init.sh .
# root
RUN cd / && \
RUN cd /opt && \
wget https://root.cern.ch/download/root_v5.34.26.Linux-slc6_amd64-gcc4.4.tar.gz && \
tar xvzf root_v5.34.26.Linux-slc6_amd64-gcc4.4.tar.gz && \
rm -f root_v5.34.26.Linux-slc6_amd64-gcc4.4.tar.gz
# heasoft
RUN cd / && \
RUN cd /opt && \
wget https://www.isdc.unige.ch/~savchenk/gitlab-ci/savchenk/osa-build-heasoft-binary-tarball/CentOS_7.5.1804_x86_64/heasoft-CentOS_7.5.1804_x86_64.tar.gz && \
tar xvzf heasoft-CentOS_7.5.1804_x86_64.tar.gz && \
pwd && \
rm -fv heasoft-CentOS_7.5.1804_x86_64.tar.gz
# OSA
RUN cd / && \
RUN cd /opt && \
wget https://www.isdc.unige.ch/~savchenk/gitlab-ci/savchenk/osa-build-binary-tarball/CentOS_7.5.1804_x86_64/osa-CentOS_7.5.1804_x86_64.tar.gz && \
tar xvzf osa-CentOS_7.5.1804_x86_64.tar.gz && \
rm -fv osa-CentOS_7.5.1804_x86_64.tar.gz
# prep OSA
# prep data
RUN mkdir -pv /data/rep_base_prod/aux /data/ic_tree_current/ic /data/ic_tree_current/idx /data/resources /data/rep_base_prod/cat /data/rep_base_prod/ic /data/rep_base_prod/idx && \
chown -R integral:integral /data/rep_base_prod/aux /data/ic_tree_current/ic /data/ic_tree_current/idx /data/resources /data/rep_base_prod/cat /data/rep_base_prod/ic /data/rep_base_prod/idx
RUN mkdir -pv /host_var; chown integral:integral /host_var && \
mkdir -pv /data/rep_base_prod; chown integral:integral /data/rep_base_prod
USER integral
# pfiles
RUN rm -rf /home/integral/pfiles
# jupyter
RUN mkdir -p /home/integral/.jupyter/
ADD jupyter_notebook_config.json /home/integral/.jupyter/jupyter_notebook_config.json
EXPOSE 8888
ADD init.sh
ADD init.sh init.sh
export HEADAS=/heasoft/x86_64-unknown-linux-gnu-libc2.17/
export HEADAS=/opt/heasoft/x86_64-unknown-linux-gnu-libc2.17/
source $HEADAS/headas-init.sh
rm -rf $HOME/pfiles
export ISDC_ENV=/osa
export ISDC_ENV=/opt/osa11
source $ISDC_ENV/bin/isdc_init_env.sh
export CURRENT_IC=/data/ic_tree_current
export REP_BASE_PROD=/data/rep_base_prod
source /opt/root/bin/thisroot.sh
export F90=gfortran #f95
export F95=gfortran #f95
export F77=gfortran #f95
export CC="gcc44" # -Df2cFortran"
export CXX="g++44" # -Df2cFortran"
source $HOME/root/bin/thisroot.sh
#export CURRENT_IC=/data/ic_tree_current
#export REP_BASE_PROD=/data/rep_base_prod
source heasoft_init.sh
sh setup_curlftpfs.sh
mkdir -p /data/rep_base_prod/scw
echo "mounting.."
#curlftpfs -o nonempty ftp://isdcarc.unige.ch/arc/rev_3/aux/ /data/rep_base_prod/aux
#curlftpfs -o nonempty ftp://isdcarc.unige.ch/arc/rev_3/scw/ /data/rep_base_prod/scw
#ls /data/rep_base_prod/scw/0665
#ls -l /data/ic_tree_current/ic/ibis/mod/isgr_mask_mod_0003.fits
#ls -l /data/rep_base_prod/scw/0665/066500230010.001
#export F90=gfortran #f95
#export F95=gfortran #f95
#export F77=gfortran #f95
#export CC="gcc44" # -Df2cFortran"
#export CXX="g++44" # -Df2cFortran"
mkdir -pv /tmp/osa-home-$$
mkdir -pv /tmp/osa-home-$$-pfiles
docker run \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v /tmp/osa-home-$$-pfiles:/pfiles \
-v /tmp/osa-home-$$:/home/integral \
--rm -it --user $(id -u) \
integralsw/osa:11.0 bash -c 'export HOME=/home/integral; source init.sh; ibis_science_analysis'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment