-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
93 lines (77 loc) · 2.26 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
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
91
92
93
FROM osgeo/gdal:ubuntu-full-latest
# /usr/bin
# /usr/include
# /usr/lib
# /usr/lib/python3/dist-packages
#
# /usr/local/bin
# /usr/local/include
# /usr/local/lib
MAINTAINER "Quan Pan" <quanpan302@hotmail.com>
# ADD requirements.txt .
# ADD ./tzdata.sh /tzdata.sh
# RUN ["chmod", "+x", "/tzdata.sh"]
# RUN apt-get update -y
# RUN bash /tzdata.sh
ENV LAST_UPDATE=2019-09-19
# 2019-09-23
# sha256:8f963a034301d89293ed63d390af1666fd5b4e8f807598f994b5cd95602996ad
# GDAL 3.1.0dev-650fc42f344a6a4c65f11eefc47c473e9b445a68, released 2019/08/25
# https://github.com/OSGeo/gdal/commit/650fc42f344a6a4c65f11eefc47c473e9b445a68
RUN apt-get update && \
apt-get upgrade -y
# Tools necessary for installing and configuring Ubuntu
RUN apt-get install -y \
apt-utils \
locales \
tzdata
# Timezone
RUN echo "Europe/Amsterdam" | tee /etc/timezone && \
ln -fs /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata
# Locale with UTF-8 support
RUN echo en_US.UTF-8 UTF-8 >> /etc/locale.gen && \
locale-gen && \
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# Install basic tools
RUN apt-get install -y \
software-properties-common \
bash-completion \
curl \
wget \
unzip \
vim \
git \
build-essential \
cmake \
sqlite3
# Configure bash_completion
RUN echo 'defshell -bash' >> /root/.screenrc
RUN echo 'if [ -f /etc/bash_completion ] && ! shopt -oq posix; then' >> /root/.bashrc && \
echo ' . /etc/bash_completion' >> /root/.bashrc && \
echo 'fi' >> /root/.bashrc
# Install basic libraries
RUN apt-get install -y \
texlive-full
# Install python libraries
RUN apt-get install -y \
python3-dev \
python3-pip
# copy for test
# ADD requirements.txt . && \
# pip3 install -r requirements.txt && \
# python3 setup.py install
# git clone reporsitory for prod
RUN git clone --recursive https://github.com/wateraccounting/IHEWAengine.git && \
cd IHEWAengine && \
pip3 install -r requirements.txt && \
python3 setup.py install
# Install package
# Workspace
WORKDIR /
RUN mkdir /notebooks
# CMD gdalinfo --version
CMD jupyter notebook --no-browser --allow-root --ip 0.0.0.0 --port 8888 /notebooks