-
Nick Bearson authoredNick Bearson authored
Dockerfile 994 B
FROM ubuntu:18.04
RUN apt-get -y update \
&& apt-get -y upgrade \
&& apt-get -y install gcc g++ gfortran make cmake autoconf \
&& apt-get -y install libtiff-dev liblapack-dev \
&& apt-get -y install libgmt-dev gmt gmt-dcw gmt-gshhg gmt csh \
&& apt-get -y install curl \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/*
ENV ORBITS_DIR=/usr/local/orbits
RUN curl -O https://topex.ucsd.edu/gmtsar/tar/ORBITS.tar \
&& mkdir -p $ORBITS_DIR \
&& tar xf ORBITS.tar -C $ORBITS_DIR \
&& rm ORBITS.tar
ENV GMTSAR_INSTALL=/usr/local/GMTSAR
# our source code came from:
# git clone --branch 6.0 https://github.com/gmtsar/gmtsar GMTSAR
COPY vendor/GMTSAR GMTSAR
RUN cd GMTSAR \
&& autoconf \
&& ./configure --prefix=$GMTSAR_INSTALL --with-orbits-dir=$ORBITS_DIR \
&& make \
&& make install
# add rsync for our own data-moving purposes
RUN apt-get -y update \
&& apt-get -y install rsync \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/*
ENV PATH=$GMTSAR_INSTALL/bin:$PATH