>> sudo docker run --runtime=nvidia \
-itd \
-p 3303:22 \
-p 9997:8888 \
-p 9996:8889 \
--name global-fit \
iphysresearch/global_fit:0.1
>> ssh -p 3303 [email protected]
# (passwd: root)
/home/ubuntu/Global_fit_script/LISA-Massive-Black-Hole
commit fb91a1162bf3c2e4a6ea7652a9651f2b15212572 (HEAD -> global-fit, origin/global-fit)
Author: Tyson Littenberg <[email protected]>
Date: Fri Apr 29 17:00:00 2022 -0500
/home/ubuntu/Global_fit_script/ldasoft
commit 963645ab9ba49dcb72e5cb7d58b1ccd0b1e50571 (HEAD -> master, origin/master, origin/HEAD)
Author: Tyson Littenberg <[email protected]>
Date: Tue May 23 09:43:30 2023 -0500
FROM iphysresearch/base_gpus:0.1
LABEL MAINTAINER="hewang<[email protected]>"
ENV DEBIAN_FRONTEND=noninteractive
COPY . /home/
# Install GSL
RUN cd /home \
&& wget https://mirror.ibcp.fr/pub/gnu/gsl/gsl-latest.tar.gz \
&& tar -zxvf gsl-latest.tar.gz \
&& cd gsl-2.7.1 \
&& mkdir -p /home/global_fit/gsl \
&& ./configure --prefix=/home/global_fit/gsl \
&& make && make install \
#
# Install gslcblas
#
&& apt-get update \
&& apt-get install libgsl-dev -y \
#
# Install openmp
#
&& apt install libomp-dev -y \
#
# Install mpi
# (the first below is interactive...)
&& apt install mpich -y \
&& apt-get update \
&& apt install openmpi-bin -y \
#
# Install hdf5
#
&& apt-get install libhdf5-serial-dev -y \
#
# Clone & compile LISA-Massive-Black-Hole
#
# && git clone [email protected]:eXtremeGravityInstitute/LISA-Massive-Black-Hole.git \
# && git clone https://github.com/eXtremeGravityInstitute/LISA-Massive-Black-Hole.git \
&& apt-get install build-essential cmake -y \
&& cd /home/LISA-Massive-Black-Hole \
&& git config --global --add safe.directory /home/LISA-Massive-Black-Hole \
&& git checkout global-fit \
&& mkdir -p /home/global_fit/MBH \
&& bash install.sh /home/global_fit/MBH \
&& apt install clang gnuplot-nox -y \
#
# Clone & compile ldasoft
# https://stackoverflow.com/questions/15559359/insert-line-after-match-using-sed
#
# && git clone [email protected]:tlittenberg/ldasoft.git \
# && git clone https://github.com/tlittenberg/ldasoft.git \
&& cd /home/ldasoft \
&& mkdir -p /home/global_fit/globalfit \
&& sed -i '/fi/a export C_INCLUDE_PATH=${MBH_PATH}/include/' install.sh \
&& sed -i '/fi/a MBH_PATH=/home/global_fit/MBH' install.sh \
&& sed -i '/cmake .. /a -DCMAKE_PREFIX_PATH="${MBH_PATH}" \\' install.sh \
&& bash install.sh /home/global_fit/globalfit \
#
# HDF5 ln
#
&& ln -s /usr/include/hdf5/serial/* /usr/include \
&& ln -sf /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.* /usr/lib/x86_64-linux-gnu \
&& ln -sf /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_fortran.* /usr/lib/x86_64-linux-gnu \
&& ln -sf /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_hl.* /usr/lib/x86_64-linux-gnu \
&& ln -sf /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5hl_fortran.* /usr/lib/x86_64-linux-gnu \
# Env
&& echo 'export LD_LIBRARY_PATH=/home/global_fit/gsl/lib' >> ~/.bashrc \
&& echo 'export CFLAGS="-I/home/global_fit/gsl/include"' >> ~/.bashrc \
&& echo 'export LDFLAGS="-L/home/global_fit/gsl/lib"' >> ~/.bashrc \
&& echo 'export LDASOFT_PREFIX=/home/global_fit/globalfit' >> ~/.bashrc \
&& echo 'export PATH=/home/global_fit/MBH/bin:${PATH}' >> ~/.bashrc \
#
#
&& cd / \
&& echo "#!/bin/bash\n\
sed -i \"s/Port 22/Port \$SSH_PORT/g\" /etc/ssh/sshd_config\n\
service ssh start\n\
/bin/bash" >./startup.sh \
&& chmod 777 ./startup.sh \
#
# add welcome tips
#
&& CONDA_VERSION=`/root/miniconda3/condabin/conda -V` \
&& CONDA_VERSION=${CONDA_VERSION#* } \
&& echo "\
printf '\\\n'\n\
printf '\\\033[0;34m'\n\
printf 'Welcome to GPU server\\\n'\n\
printf 'Please change the default root password in time\\\n'\n\
printf '\\\n'\n\
printf ' CUDA:\\\t\\\tv$CUDA_VERSION\\\n'\n\
printf ' CUDNN:\\\t\\\tv$CUDNN_VERSION\\\n'\n\
printf ' Conda:\\\t\\\tMiniconda v$CONDA_VERSION use \`conda activate py39\` to activate conda env\\\n'\n\
printf ' SSH port:\\\t$SSH_PORT for this container\\\n'\n\
printf '\\\033[0m'\n\
printf '\\\n'\n\
" >>/etc/update-motd.d/10-help-text \
#
# cleanup
#
&& rm -rf /var/lib/apt/lists/* /tmp/*
#
# set startup script
#
ENTRYPOINT ./startup.sh
Content type
Image
Digest
sha256:f55c6b320…
Size
3.5 GB
Last updated
over 3 years ago
docker pull iphysresearch/global_fit:0.1