1
- # inspired by sn4_baseline
2
- FROM nvidia/cuda:9.0-devel-ubuntu16.04
1
+ FROM nvidia/cuda:9.2-devel-ubuntu16.04
3
2
MAINTAINER avanetten
4
3
5
4
# IF YOU WANT PROGRESS PRINTED TO TERMINAL
@@ -33,7 +32,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
33
32
libcudnn7-dev=$CUDNN_VERSION-1+cuda9.0 && \
34
33
apt-mark hold libcudnn7 && \
35
34
rm -rf /var/lib/apt/lists/*
36
-
35
+
37
36
# install requirements
38
37
RUN apt-get update \
39
38
&& apt-get install -y --no-install-recommends \
@@ -68,24 +67,18 @@ SHELL ["/bin/bash", "-c"]
68
67
ENV PATH /opt/conda/bin:$PATH
69
68
70
69
# install anaconda
71
- # https://repo.continuum.io/miniconda/
72
- RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-4.6.14-Linux-x86_64.sh -O ~/miniconda.sh && \
70
+ RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-4.5.4-Linux-x86_64.sh -O ~/miniconda.sh && \
73
71
/bin/bash ~/miniconda.sh -b -p /opt/conda && \
74
72
rm ~/miniconda.sh && \
75
73
/opt/conda/bin/conda clean -tipsy && \
76
74
ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
77
75
echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \
78
76
echo "conda activate base" >> ~/.bashrc
79
- # ENV TINI_VERSION v0.16.1
80
- ENV TINI_VERSION v0.18.0
81
- ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /usr/bin/tini
82
- RUN chmod +x /usr/bin/tini
83
77
84
- # use conda-forge instead of default channel
85
- RUN conda config --add channels conda-forge
86
- # && \
87
- # conda update conda
88
- # conda config --remove channels defaults && \
78
+ # prepend pytorch and conda-forge before default channel
79
+ RUN conda update conda && \
80
+ conda config --prepend channels conda-forge
81
+
89
82
90
83
# set up conda environment and add to $PATH
91
84
RUN conda create -n simrdwn python=3.6 \
@@ -103,49 +96,54 @@ RUN source activate simrdwn \
103
96
104
97
RUN source activate simrdwn \
105
98
&& conda install -n simrdwn \
106
- libgdal=2.4.1 \
107
- gdal=2.4.1 \
108
- geopandas=0.5.0 \
109
- opencv=4.1.0 \
110
- affine=2.2.2 \
111
- pyproj=1.9.6 \
112
- pyhamcrest=1.9.0 \
113
- cython=0.29.10 \
114
- contextlib2=0.5.5 \
115
- ncurses=6.1 \
116
- jupyter=1.0.0 \
117
- jupyterlab=0.35.6 \
118
- ipykernel=5.1.1 \
119
- matplotlib=3.1.0 \
120
- numpy=1.16.4 \
121
- pandas=0.24.2 \
122
- pillow=6.0.0 \
123
- pip=19.1.1 \
124
- scipy=1.3.0 \
125
- scikit-image=0.15.0 \
126
- scikit-learn=0.21.2 \
127
- shapely=1.6.4 \
128
- rtree=0.8.3 \
129
- testpath=0.4.2 \
130
- tqdm=4.32.1 \
131
- statsmodels=0.10.1 \
99
+ gdal=2.4.2 \
100
+ geopandas=0.6.3 \
101
+ fiona \
102
+ rasterio \
103
+ awscli \
104
+ affine \
105
+ pyproj \
106
+ pyhamcrest \
107
+ cython \
108
+ fiona \
109
+ h5py \
110
+ ncurses \
111
+ jupyter \
112
+ jupyterlab \
113
+ ipykernel \
114
+ libgdal \
115
+ matplotlib \
116
+ ncurses \
117
+ numpy \
118
+ statsmodels \
119
+ pandas \
120
+ pillow \
121
+ pip \
122
+ scipy \
123
+ scikit-image \
124
+ scikit-learn \
125
+ shapely \
126
+ rtree \
127
+ testpath \
128
+ tqdm \
129
+ opencv \
130
+ statsmodels \
131
+ testpath \
132
+ rtree \
132
133
&& conda clean -p \
133
134
&& conda clean -t \
134
135
&& conda clean --yes --all
135
- # %% conda build purge-all \
136
136
137
- # Below is a hack to get around conda issues (2019-07-19)
138
- RUN source activate simrdwn \
139
- && conda install -n simrdwn \
140
- -c conda-forge rasterio=1.0.24 \
141
- && conda clean -p \
142
- && conda clean -t \
143
- && conda clean --yes --all
137
+ # # Below is a hack to get around conda issues (2019-07-19)
138
+ # RUN source activate simrdwn \
139
+ # && conda install -n simrdwn \
140
+ # -c conda-forge rasterio=1.0.24 \
141
+ # && conda clean -p \
142
+ # && conda clean -t \
143
+ # && conda clean --yes --all
144
144
145
145
# tf object detection api
146
146
RUN git clone https://github.com/tensorflow/models.git /tensorflow/models
147
- WORKDIR /tensorflow/models/research/
148
- RUN git checkout r1.13.0
149
147
# WORKDIR /tensorflow/models/research/
150
148
# RUN protoc object_detection/protos/*.proto --python_out=.
151
149
# WORKDIR /tensorflow/models/research/
@@ -192,11 +190,13 @@ ENV PYTHONPATH $PYTHONPATH:/tensorflow/models/:/tensorflow/models/research/slim
192
190
RUN source activate simrdwn && python -m ipykernel.kernelspec
193
191
RUN python -m ipykernel.kernelspec
194
192
193
+ # clone simrdwn
194
+ RUN mkdir -p /opt/
195
+ RUN git clone https://github.com/avanetten/simrdwn.git /opt/simrdwn/
195
196
196
197
# ##################
198
+ WORKDIR "/opt/simrdwn"
197
199
# Set up our notebook config.
198
- WORKDIR /
199
- # TensorBoard
200
200
# open ports for jupyterlab and tensorboard
201
201
EXPOSE 8888 6006
202
202
RUN ["/bin/bash" ]
0 commit comments