-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile-gmt
61 lines (50 loc) · 1.43 KB
/
Dockerfile-gmt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM badlandsmodel/badlands:latest
MAINTAINER Tristan Salles
# install things
RUN apt-get update -qq && \
DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
cdftools \
cmake \
build-essential \
libcurl4-gnutls-dev \
libnetcdf-dev \
gawk \
gmt-gshhg-full \
gmt-dcw \
graphicsmagick \
ffmpeg \
xdg-utils \
gdal-bin \
libgdal-dev \
libfftw3-dev \
libpcre3-dev \
liblapack-dev \
libblas-dev \
libglib2.0-dev \
ghostscript
# install GMT
RUN wget https://github.com/GenericMappingTools/gmt/releases/download/6.0.0/gmt-6.0.0-src.tar.xz && \
tar -xvf gmt-6.0.0-src.tar.xz && \
cd gmt-6.0.0/cmake/; cp ConfigUserTemplate.cmake ../ConfigUser.cmake && \
dpkg -L gmt-gshhg-full && \
dpkg -L gmt-dcw
RUN mkdir gmt-6.0.0/build && \
cd gmt-6.0.0/build && \
cmake ..
RUN cd gmt-6.0.0/build && \
cmake --build . && \
cmake --build . --target install
RUN rm -rf gmt-6.0.0-src.tar.xz && \
rm -rf gmt-6.0.0
# setup space for working in
VOLUME /live/share
WORKDIR /live
ENV LD_LIBRARY_PATH=/live/lib/:/live/share
EXPOSE 8888
ENV TINI_VERSION v0.18.0
ENTRYPOINT ["/usr/local/bin/tini", "--"]
EXPOSE 9999
# note we use xvfb which to mimic the X display for lavavu
ENTRYPOINT ["/usr/local/bin/xvfbrun.sh"]
# launch notebook
CMD /usr/local/bin/run-jupyter.sh