forked from shingleproject/Shingle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile_Trusty
91 lines (77 loc) · 2.68 KB
/
Dockerfile_Trusty
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
##############################################################################
#
# Copyright (C) 2011-2018 Dr Adam S. Candy and others.
#
# Shingle: An approach and software library for the generation of
# boundary representation from arbitrary geophysical fields
# and initialisation for anisotropic, unstructured meshing.
#
# Web: http://www.shingleproject.org
#
# Contact: Dr Adam S. Candy, contact@shingleproject.org
#
# This file is part of the Shingle project.
#
# Please see the AUTHORS file in the main source directory for a full list
# of contributors.
#
# Shingle is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Shingle is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Shingle. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
# DockerFile for a Shingle development container
# Use a Trusty base image
FROM ubuntu:trusty
# This DockerFile is looked after by
MAINTAINER Adam Candy <contact@shingleproject.org>
# Repository variables from the parent environment
ARG repo="shingleproject/Shingle"
ARG branch="master"
# Install required packages
RUN apt-get update && apt-get install -y \
git \
gcc \
g++ \
build-essential \
python-setuptools \
python-dev \
python-pip \
python-scipy \
python-numpy \
python-scientific \
python-matplotlib \
python-shapely \
python-pyproj \
python-gdal \
gdal-bin \
python-pil \
gmsh \
python-pytest \
wget
# Upgrade pip
RUN pip install -i https://pypi.python.org/simple -U pip distribute setuptools
# Update dap and shapely with recent versions
RUN pip install Pydap==3.2.1
RUN pip install Shapely==1.5.9
# Set build compiler environment
ENV CC=gcc
# Add a user
RUN adduser --disabled-password --gecos "" shingle
USER shingle
WORKDIR /home/shingle
# Make a copy of the project Shingle
RUN git clone --depth=50 --branch="$branch" "https://github.com/${repo}" Shingle
WORKDIR /home/shingle/Shingle
#RUN git pull
ENV PATH /home/shingle/Shingle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN make