Commit 17bd9c39 authored by Volodymyr SAVCHENKO's avatar Volodymyr SAVCHENKO
Browse files


FROM centos
RUN yum -y install epel-release
RUN yum -y update
RUN yum -y install gcc gcc-c++ gcc-gfortran \
git curl make zlib-devel bzip2 bzip2-devel \
readline-devel sqlite sqlite-devel openssl \
openssl-devel patch libjpeg libpng12 libX11 \
which libXpm libXext curlftpfs wget libgfortran file \
ruby-devel fpm rpm-build \
ncurses-devel \
libXt-devel libX11-devel libXpm-devel libXft-devel libXext-devel \
cmake openssl-devel pcre-devel mesa-libGL-devel mesa-libGLU-devel glew-devel ftgl-devel \
mysql-devel fftw-devel cfitsio-devel graphviz-devel avahi-compat-libdns_sd-devel libldap-dev python-devel libxml2-devel gsl-static \
compat-gcc-44 compat-gcc-44-c++ compat-gcc-44-c++.gfortran \
perl-ExtUtils-MakeMaker \
net-tools strace sshfs sudo iptables
RUN ln -s /usr/lib64/ /usr/lib64/
RUN curl -s | 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:// .pyenv
ENV HOME /home/integral
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
# root
RUN cd / && \
wget && \
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 / && \
wget && \
tar xvzf heasoft-CentOS_7.5.1804_x86_64.tar.gz && \
rm -fv heasoft-CentOS_7.5.1804_x86_64.tar.gz
RUN cd / && \
wget && \
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
export HEADAS=/heasoft/x86_64-unknown-linux-gnu-libc2.17/
source $HEADAS/
rm -rf $HOME/pfiles
export ISDC_ENV=/osa
source $ISDC_ENV/bin/
export CURRENT_IC=/data/ic_tree_current
export REP_BASE_PROD=/data/rep_base_prod
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/
mkdir -p /data/rep_base_prod/scw
echo "mounting.."
#curlftpfs -o nonempty /data/rep_base_prod/aux
#curlftpfs -o nonempty /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
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