Skip to content

Commit

Permalink
Added tempo2 and psrchive versions
Browse files Browse the repository at this point in the history
  • Loading branch information
NickSwainston committed Apr 9, 2024
1 parent d0cc761 commit aae5d6d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ RUN git clone git@github.com:OZGrav/meertime_ephemerides_and_templates.git && \
FROM ubuntu:22.04
COPY --from=intermediate /root/meertime_ephemerides_and_templates /tmp/meertime_ephemerides_and_templates

# Dependency versions
ENV PSRCHIVE_VERSION 5179775
ENV TEMPO2_VERSION ce14d72

# Define home, psrhome, OSTYPE and create the directory
ENV HOME /home/psr
ENV PSRHOME $HOME/software
Expand Down Expand Up @@ -251,6 +255,7 @@ ENV C_INCLUDE_PATH $C_INCLUDE_PATH:$TEMPO2/include
ENV LD_LIBRARY_PATH $LD_LIBRARY_PATH:$TEMPO2/lib
# tempo2
RUN cd $TEMPO2_DIR && \
git checkout $TEMPO2_VERSION && \
./bootstrap && \
cp -r T2runtime/ $TEMPO2/ && \
./configure --prefix=$TEMPO2 --with-x --x-libraries=/usr/lib/x86_64-linux-gnu --with-fftw3-dir=/usr/ --with-calceph=$CALCEPH/install/lib \
Expand All @@ -272,6 +277,7 @@ ENV LD_LIBRARY_PATH $LD_LIBRARY_PATH:$PSRCHIVE/lib
ENV PYTHONPATH $PYTHONPATH:$PSRCHIVE/lib/python3.10/site-packages
# psrchive (which requires tempo2 to be built)
RUN cd $PSRCHIVE_DIR && \
git checkout $PSRCHIVE_VERSION && \
./bootstrap && \
./configure --prefix=$PSRCHIVE --with-x --x-libraries=/usr/lib/x86_64-linux-gnu --with-psrxml-dir=$PSRXML/install --enable-shared --enable-static \
F77=gfortran \
Expand Down

0 comments on commit aae5d6d

Please sign in to comment.