forked from OpenDrift/opendrift
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.oil
51 lines (40 loc) · 1.87 KB
/
Dockerfile.oil
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
FROM continuumio/miniconda
MAINTAINER [email protected]
## This is how the container was build
# docker build -f Dockerfile.oil -t vanessa/opendrift-oil .
# https://hub.docker.com/r/vanessa/opendrift-oil/ # container
# https://github.com/opendrift/opendrift/wiki # documentation
ENV DEBIAN_FRONTEND noninteractive
ENV PATH /code/opendrift/opendrift/scripts:$PATH
# Dependencies for opendrift
RUN apt-get update && apt-get install -y build-essential \
apt-utils \
unzip \
vim \
git \
gfortran \
libgeos-dev \
gdal-bin && \
ldconfig
# Updates and Installs
RUN pip install --upgrade pip
RUN /opt/conda/bin/conda update openssl ca-certificates certifi
RUN /opt/conda/bin/conda install --yes hdf4 numpy scipy matplotlib basemap \
netcdf4 configobj pillow gdal pyproj ffmpeg
# We need basemap 1.1.0
RUN /opt/conda/bin/conda install --yes --channel conda-forge basemap basemap-data-hires
RUN mkdir /code && cd /code && \
git clone https://www.github.com/opendrift/opendrift && \
cd opendrift && \
/opt/conda/bin/python setup.py develop
# NOAA's OilLibrary for Oil Simulations
WORKDIR /
RUN git clone https://github.com/NOAA-ORR-ERD/OilLibrary.git && \
/opt/conda/bin/conda install --yes sqlalchemy transaction zope.sqlalchemy pytest && \
/opt/conda/bin/conda install --yes -c anaconda repoze.lru && \
/opt/conda/bin/conda install --yes -c noaa-orr-erd awesome-slugify unit_conversion && \
cd OilLibrary && \
/opt/conda/bin/python setup.py install
WORKDIR /code
# Test
# cd /code/opendrift && ./testall