-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
94 lines (79 loc) · 3.27 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
94
FROM nvcr.io/nvidia/pytorch:20.09-py3
#nvcr.io/nvidia/cuda:10.2-runtime
#
EXPOSE 8888
EXPOSE 6006
EXPOSE 8003
#ADD . .
ENV http_proxy=http://proxy1.bgc-jena.mpg.de:3128 \
ftp=http://proxy1.bgc-jena.mpg.de:3128 \
https_proxy=http://proxy1.bgc-jena.mpg.de:3128
#RUN conda install anaconda-clean
#RUN anaconda-clean --yes
RUN apt-get -y update \
&& apt-get install -y software-properties-common \
&& apt-get -y update \
&& add-apt-repository universe \
&& add-apt-repository ppa:ubuntugis/ppa
#RUN apt -y install python3.7-dev
#RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
#RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 2
#RUN python3.7 --version
#RUN apt-get -y install python3-pip
RUN apt-get -y install libglib2.0-0
RUN apt-get -y install wget
RUN apt-get -y install pv
RUN apt-get -y install git
RUN apt-get -y install libavcodec-dev libavformat-dev libswscale-dev
RUN apt-get -y install libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev
RUN apt-get -y install libgtk-3-dev
RUN apt-get -y install libpng-dev
RUN apt-get -y install libjpeg-dev
RUN apt-get -y install libopenexr-dev
RUN apt-get -y install libtiff-dev
RUN apt-get -y install libwebp-dev
RUN apt-get -y install libhdf5-serial-dev
RUN apt-get -y install screen
RUN apt-get -y install ffmpeg --fix-missing
RUN conda init bash
RUN conda update -y python
RUN conda install -y python=3.7.7
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install --upgrade setuptools
RUN pip3 install numpy
RUN pip3 install matplotlib tqdm Pillow shapely opencv-python pandas scikit-learn imgaug imantics scipy scikit-image seaborn pandas
RUN pip3 install netCDF4
RUN pip3 install earthnet
#Install GDAL and python binding
RUN apt-get install -y gdal-bin
RUN apt-get install -y libgdal-dev
RUN export CPLUS_INCLUDE_PATH=/usr/include/gdal
RUN export C_INCLUDE_PATH=/usr/include/gdal
RUN ogrinfo --version
#Add here the ogr version
RUN pip3 install GDAL==2.4.2
RUN pip3 install git+https://gitext.gfz-potsdam.de/danschef/geoarray.git
RUN pip3 install git+https://gitext.gfz-potsdam.de/danschef/arosics.git
RUN pip3 install sentinelsat sentinelhub Cartopy
#JupyterLab Set-up
RUN conda install qt
RUN conda install -y jupyter jupyterlab
RUN pip3 install jupytext
RUN pip3 install jupyter_tensorboard
RUN pip3 install --upgrade jupyterlab-git
RUN conda install -y nb_conda_kernels
#RUN jupyter lab build
#Create the conda environment for Tf_template named ENtf115py36
RUN conda create --name ENtf115py36 python=3.6
RUN source activate ENtf115py36 && pip3 install numpy matplotlib scipy sk-video ffmpeg opencv-python scikit-image h5py tensorflow-gpu==1.15 earthnet && conda install -y ipykernel
#Create the conda environment for PyTorch_template named ENpt16py38
RUN conda create --name ENpt16py38 python=3.8.5
SHELL ["conda", "run", "-n", "ENpt16py38", "/bin/bash", "-c"]
RUN pip3 install --upgrade pip
RUN pip3 install --upgrade setuptools
RUN pip3 install numpy==1.19.2
RUN pip3 install torch==1.6.0 torchvision==0.7.0 pytorch-lightning==1.1.0
RUN pip3 install matplotlib==3.3.2 tqdm Pillow shapely opencv-python pandas scikit-learn imgaug imantics scipy scikit-image seaborn pandas
RUN pip3 install earthnet
RUN pip3 install segmentation-models-pytorch
RUN conda install -y ipykernel