Skip to content

Commit 0747f9d

Browse files
authored
Merge pull request #129 from hydroshare/126-geophysics-installs
Docker Install - 2018 Near Surface Geophysics Workshop
2 parents 11b643e + c8dd20d commit 0747f9d

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

build/singleuser/Dockerfile.wine

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
FROM cuahsi/singleuser
2+
MAINTAINER Tony Castronova <acastronova@cuahsi.org>
3+
4+
# installations for 2018 Near Surface Geophysics
5+
# wine:
6+
USER root
7+
8+
RUN buildDeps='wget' \
9+
&& set -x \
10+
&& cd /tmp \
11+
&& apt update \
12+
&& apt-get install -y apt-transport-https $buildDeps --no-install-recommends \
13+
&& dpkg --add-architecture i386 \
14+
&& wget -nc https://dl.winehq.org/wine-builds/Release.key \
15+
&& apt-key add Release.key \
16+
&& apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/ \
17+
&& apt update \
18+
&& apt-get install -y --no-install-recommends winehq-stable \
19+
&& apt-get purge -y --auto-remove $buildDeps \
20+
&& rm -rf /var/lib/apt/lists/* \
21+
&& rm -rf /tmp/*
22+
23+
# R2:
24+
RUN buildDeps='unrar wget' \
25+
&& set -x \
26+
&& apt-get update \
27+
&& apt-get install -y $buildDeps --no-install-recommends \
28+
&& mkdir /tmp/R2 \
29+
&& cd /tmp/R2 \
30+
&& wget http://www.es.lancs.ac.uk/people/amb/Freeware/R2/R2.rar \
31+
&& unrar e -y R2.rar \
32+
&& chmod +x R2.exe \
33+
&& mv R2.exe /usr/local/bin \
34+
&& apt-get purge -y --auto-remove $buildDeps \
35+
&& rm -rf /var/lib/apt/lists/* \
36+
&& rm -rf /tmp/*
37+
38+
# gmsh:
39+
RUN buildDeps='wget' \
40+
&& set -x \
41+
&& apt-get update \
42+
&& apt-get install -y $buildDeps --no-install-recommends \
43+
&& cd /tmp \
44+
&& wget http://gmsh.info/bin/Linux/gmsh-4.0.1-Linux64.tgz \
45+
&& tar -xzf gmsh-4.0.1-Linux64.tgz \
46+
&& cp -r gmsh-4.0.1-Linux64/share/doc/gmsh /usr/local/share/doc \
47+
&& cp -r gmsh-4.0.1-Linux64/share/man/man1/gmsh.1 /usr/local/share/man \
48+
&& cp -r gmsh-4.0.1-Linux64/bin/* /usr/local/bin \
49+
&& apt-get purge -y --auto-remove $buildDeps \
50+
&& rm -rf /var/lib/apt/lists/* \
51+
&& rm -rf /tmp/*
52+
53+
#pyres
54+
RUN cd /tmp \
55+
&& git clone https://github.com/kbefus/pyres.git \
56+
&& cd /tmp/pyres \
57+
&& /opt/conda/bin/python setup.py install \
58+
&& rm -rf /tmp/*
59+
60+
RUN chown -R jovyan:users /home/jovyan
61+
USER jovyan
62+
63+
ENV WINEPREFIX="/home/jovyan/.wine"
64+
RUN wineboot

0 commit comments

Comments
 (0)