dependencies and ocean modelling code
395
# Pull base image.
FROM tristansalles/usyd-uos-geos-base:latest
MAINTAINER Tristan Salles
## the update is fine but very slow ... keep it separated so it doesn't
## get run again and break the cache. The later parts of this build
## may be sensitive to later versions being picked up in the install phase.
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends cmake
RUN cd /usr/local && \
wget http://personal.inet.fi/private/erikedelmann/makedepf90/makedepf90-2.8.8.tar.gz && \
tar -xf makedepf90-2.8.8.tar.gz && \
cd makedepf90-2.8.8 && \
CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure && \
make && \
make install
RUN mkdir /workspace && \
mkdir /workspace/volume
COPY fvcom.tar /workspace
RUN cd /workspace && \
tar -xf fvcom.tar && \
cd /workspace/FVCOM3.2.2/FVCOM_source/libs/ && \
make all
RUN cd /workspace/FVCOM3.2.2/FVCOM_source && \
make
RUN cp /workspace/FVCOM3.2.2/FVCOM_source/fvcom /usr/local/bin && \
rm -rf /usr/local/*.tar.gz hdf5-1.8.13 netcdf-4.1.3 makedepf90-2.8.8 zlib-1.2.8 && \
mv /workspace/FVCOM3.2.2/Examples /workspace/
RUN echo 'export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH' >> /root/.bashrc
ENV LD_LIBRARY_PATH /usr/local/lib:${LD_LIBRARY_PATH}
# expose notebook port
EXPOSE 8888
# setup space for working in
VOLUME /workspace/volume
COPY quickInstall.ipynb /workspace
COPY quickStart.ipynb /workspace
COPY visualise.ipynb /workspace
# launch notebook
WORKDIR /workspace
EXPOSE 8888
ENTRYPOINT ["/usr/local/bin/tini", "--"]
CMD jupyter notebook --ip=0.0.0.0 --no-browser
Content type
Image
Digest
Size
1.4 GB
Last updated
over 10 years ago
docker pull tristansalles/oceanfv