-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #129 from hydroshare/126-geophysics-installs
Docker Install - 2018 Near Surface Geophysics Workshop
- Loading branch information
Showing
1 changed file
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
FROM cuahsi/singleuser | ||
MAINTAINER Tony Castronova <[email protected]> | ||
|
||
# installations for 2018 Near Surface Geophysics | ||
# wine: | ||
USER root | ||
|
||
RUN buildDeps='wget' \ | ||
&& set -x \ | ||
&& cd /tmp \ | ||
&& apt update \ | ||
&& apt-get install -y apt-transport-https $buildDeps --no-install-recommends \ | ||
&& dpkg --add-architecture i386 \ | ||
&& wget -nc https://dl.winehq.org/wine-builds/Release.key \ | ||
&& apt-key add Release.key \ | ||
&& apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/ \ | ||
&& apt update \ | ||
&& apt-get install -y --no-install-recommends winehq-stable \ | ||
&& apt-get purge -y --auto-remove $buildDeps \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& rm -rf /tmp/* | ||
|
||
# R2: | ||
RUN buildDeps='unrar wget' \ | ||
&& set -x \ | ||
&& apt-get update \ | ||
&& apt-get install -y $buildDeps --no-install-recommends \ | ||
&& mkdir /tmp/R2 \ | ||
&& cd /tmp/R2 \ | ||
&& wget http://www.es.lancs.ac.uk/people/amb/Freeware/R2/R2.rar \ | ||
&& unrar e -y R2.rar \ | ||
&& chmod +x R2.exe \ | ||
&& mv R2.exe /usr/local/bin \ | ||
&& apt-get purge -y --auto-remove $buildDeps \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& rm -rf /tmp/* | ||
|
||
# gmsh: | ||
RUN buildDeps='wget' \ | ||
&& set -x \ | ||
&& apt-get update \ | ||
&& apt-get install -y $buildDeps --no-install-recommends \ | ||
&& cd /tmp \ | ||
&& wget http://gmsh.info/bin/Linux/gmsh-4.0.1-Linux64.tgz \ | ||
&& tar -xzf gmsh-4.0.1-Linux64.tgz \ | ||
&& cp -r gmsh-4.0.1-Linux64/share/doc/gmsh /usr/local/share/doc \ | ||
&& cp -r gmsh-4.0.1-Linux64/share/man/man1/gmsh.1 /usr/local/share/man \ | ||
&& cp -r gmsh-4.0.1-Linux64/bin/* /usr/local/bin \ | ||
&& apt-get purge -y --auto-remove $buildDeps \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& rm -rf /tmp/* | ||
|
||
#pyres | ||
RUN cd /tmp \ | ||
&& git clone https://github.com/kbefus/pyres.git \ | ||
&& cd /tmp/pyres \ | ||
&& /opt/conda/bin/python setup.py install \ | ||
&& rm -rf /tmp/* | ||
|
||
RUN chown -R jovyan:users /home/jovyan | ||
USER jovyan | ||
|
||
ENV WINEPREFIX="/home/jovyan/.wine" | ||
RUN wineboot |