Skip to content

Commit

Permalink
step by step - 1
Browse files Browse the repository at this point in the history
  • Loading branch information
garciagenrique committed Feb 9, 2024
1 parent 1822032 commit bab39e8
Showing 1 changed file with 41 additions and 42 deletions.
83 changes: 41 additions & 42 deletions vre-singleuser-py311/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,56 +57,55 @@ ENV JUPYTER_ENABLE_LAB=yes

## HARDCODING ENVIRONMENT VARIABLES
## not using venv, instead we use the base conda env and fixing env vars
ENV LD_LIBRARY_PATH="/opt/conda/lib:$LD_LIBRARY_PATH"
ENV PYTHONPATH="/opt/conda/lib/python3.11:/opt/conda/lib/python3.11/site-packages:$PYTHONPATH"
#ENV LD_LIBRARY_PATH="/opt/conda/lib:$LD_LIBRARY_PATH"
#ENV PYTHONPATH="/opt/conda/lib/python3.11:/opt/conda/lib/python3.11/site-packages:$PYTHONPATH"

## While the installation of pst4 and the use of `venv`, it is needed the `ENV_ROOT` env var
## > echo $ENV_ROOT/
## > /opt/venv/
ENV ENV_ROOT="/opt/conda"

#ENV ENV_ROOT="/opt/conda"

COPY requirements.txt .
RUN pip3 install -r requirements.txt

## Install WDF dependancies
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
cmake \
libboost-all-dev \
pybind11-dev python3-pybind11 \
libfftw3-3 libfftw3-dev libfftw3-bin \
libgsl-dev; \
rm -rf /var/lib/apt/lists/*

#install FrameLib
RUN set -ex \
&& git clone https://git.ligo.org/virgo/virgoapp/Fr.git \
&& cd Fr && cmake CMakeLists.txt \
&& make -j "$(nproc)" \
&& make install \
&& cd .. \
&& rm -rf Fr

#install P4TSA
RUN git clone https://github.com/elenacuoco/p4TSA && cd p4TSA && cmake CMakeLists.txt \
&& make -j "$(nproc)" \
&& make install \
&& cd python-wrapper \
&& python setup.py install \
&& cd .. \
&& cd .. \
&& rm -fr p4TSA

RUN /sbin/ldconfig

#install wdpipe
# Second line to be deleted when fixed in the wdfpipe repo
RUN git clone https://gitlab.com/wdfpipe/wdf.git && cd wdf \
&& python setup.py install \
&& cd .. \
&& rm -fr wdf
# ## Install WDF dependancies
# RUN set -eux; \
# apt-get update; \
# apt-get install -y --no-install-recommends \
# cmake \
# libboost-all-dev \
# pybind11-dev python3-pybind11 \
# libfftw3-3 libfftw3-dev libfftw3-bin \
# libgsl-dev; \
# rm -rf /var/lib/apt/lists/*

# #install FrameLib
# RUN set -ex \
# && git clone https://git.ligo.org/virgo/virgoapp/Fr.git \
# && cd Fr && cmake CMakeLists.txt \
# && make -j "$(nproc)" \
# && make install \
# && cd .. \
# && rm -rf Fr

# #install P4TSA
# RUN git clone https://github.com/elenacuoco/p4TSA && cd p4TSA && cmake CMakeLists.txt \
# && make -j "$(nproc)" \
# && make install \
# && cd python-wrapper \
# && python setup.py install \
# && cd .. \
# && cd .. \
# && rm -fr p4TSA

# RUN /sbin/ldconfig

# #install wdpipe
# # Second line to be deleted when fixed in the wdfpipe repo
# RUN git clone https://gitlab.com/wdfpipe/wdf.git && cd wdf \
# && python setup.py install \
# && cd .. \
# && rm -fr wdf

WORKDIR $HOME
USER $NB_UID
Expand Down

0 comments on commit bab39e8

Please sign in to comment.