Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker container fix #145

Merged
merged 2 commits into from
May 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 20 additions & 62 deletions docker/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,54 +4,34 @@ FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -qq && \
apt-get -y --no-install-recommends install \
build-essential \
software-properties-common \
wget \
python3 \
python3-dev \
python \
libpython3.8-dev \
python3-pip \
python3-numpy \
python3-six \
python3-scipy \
python3-astropy \
python3-setuptools \
gfortran \
libglib2.0-dev \
libpng-dev \
bc \
curl \
autoconf \
autotools-dev \
automake \
autogen \
libtool \
pkg-config \
cmake \
csh \
build-essential \
gfortran \
git \
cvs \
latex2html \
libcfitsio-bin \
libcfitsio-dev \
pgplot5 \
hwloc \
python-dev \
libfftw3-3 \
libfftw3-bin \
libfftw3-dev \
libfftw3-single3 \
libglib2.0-dev \
libpng-dev \
libtool \
libx11-dev \
libpnglite-dev \
libhdf5-dev \
libhdf5-serial-dev \
libxml2 \
libxml2-dev \
libltdl-dev \
gsl-bin \
libgsl-dev && \
pgplot5 \
python3-dev \
python3-numpy \
python3-pip \
tcsh \
wget && \
apt-get clean all && \
rm -r /var/lib/apt/lists/*

# Add pgplot environment variables
ENV PGPLOT_DIR=/usr/local/pgplot
ENV PGPLOT_DEV=/Xserve

# Install python dependancies
RUN pip3 install numpy \
scipy \
astropy
Expand Down Expand Up @@ -81,6 +61,7 @@ RUN wget https://www.atnf.csiro.au/research/pulsar/psrcat/downloads/psrcat_pkg.t
ls && \
bash makeit && \
cp psrcat /usr/bin
ENV PSRCAT_FILE /home/soft/psrcat_tar/psrcat.db

# Install tempo
RUN git clone https://github.com/nanograv/tempo.git && \
Expand All @@ -90,30 +71,7 @@ RUN git clone https://github.com/nanograv/tempo.git && \
make && \
make install
ENV TEMPO /home/soft/tempo

# Install tempo2
WORKDIR /home/soft/tempo2
ENV TEMPO2 /home/soft/tempo2
RUN wget https://sourceforge.net/projects/tempo2/files/latest/download && \
tar -xzvf download && \
rm download && \
cp -r tempo2*/T2runtime/ $TEMPO2

# Install pgplot
WORKDIR /usr/local/src
RUN wget ftp://ftp.astro.caltech.edu/pub/pgplot/pgplot5.2.tar.gz && \
tar zxvf pgplot5.2.tar.gz && \
rm pgplot5.2.tar.gz
WORKDIR /usr/local/pgplot
ADD docker/drivers.list /usr/local/pgplot
RUN /usr/local/src/pgplot/makemake /usr/local/src/pgplot linux g77_gcc_aout && \
sed -i 's/FCOMPL=g77/FCOMPL=gfortran/' makefile && \
make && \
make cpg && \
make clean
ENV PGPLOT_DIR=/usr/local/pgplot
ENV PGPLOT_DEV=/Xserve


# Install presto
WORKDIR /code/presto/src
RUN make makewisdom && \
Expand Down
114 changes: 0 additions & 114 deletions docker/drivers.list

This file was deleted.