-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
61 lines (43 loc) · 1.61 KB
/
Dockerfile
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
FROM rocker/rstudio:4.4.1
MAINTAINER [email protected]
ENV TZ America/Los_Angeles
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt update
RUN apt install -y tzdata
# Install minimum requirements
RUN apt-get update -qq && apt-get -y --no-install-recommends install \
autoconf \
automake \
build-essential \
dos2unix \
flip \
libnetcdf-dev \
libxml2-dev \
make \
nano \
pkg-config \
subversion \
unzip \
valgrind \
wget
RUN svn co http://svn.osgeo.org/metacrs/proj/branches/4.8/proj/ --non-interactive --trust-server-cert-failures unknown-ca,cn-mismatch,expired,not-yet-valid,other
RUN cd proj/nad
RUN wget http://download.osgeo.org/proj/proj-datumgrid-1.5.zip
RUN unzip -o -q proj-datumgrid-1.5.zip
#make distclean
RUN cd proj/ && ./configure && make && make install && ldconfig
#Install AzCopy, ver. 7.2 includes .NET Core dependencies; they do not
#need to install them a pre-requisite
#https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-linux
#to uninstall azcopy use https://github.com/MicrosoftDocs/azure-docs/issues/18771
#Add Atlantis source files
COPY trunk_6718/.svn /app/.svn
COPY trunk_6718/atlantis /app/atlantis
#Add model files, should contain hydrofiles
COPY Atlantis_mv1_base_2024_5yrs_V2 /app/model
#source Atlantis
RUN cd /app/atlantis && aclocal && autoheader && autoconf && automake -a && ./configure && make && make install
WORKDIR /app/model
ENTRYPOINT ["sh"]
#this line can be uncommented, it will run Atlantis immediately after the container starts running
CMD ["amps_cal.sh"]