-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
165 lines (148 loc) · 4.05 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
FROM nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04
LABEL opensciencegrid.name="TensorFlow GPU"
LABEL opensciencegrid.description="TensorFlow image with GPU support"
LABEL opensciencegrid.url="https://www.tensorflow.org/"
LABEL opensciencegrid.category="Tools"
LABEL opensciencegrid.definition_url="https://github.com/opensciencegrid/osgvo-tensorflow-gpu"
RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && \
apt-get update && apt-get install -y --no-install-recommends \
build-essential \
cmake \
curl \
davix-dev \
dcap-dev \
fonts-freefont-ttf \
g++ \
gcc \
gfal2 \
gfortran \
git \
libafterimage-dev \
libavahi-compat-libdnssd-dev \
libcfitsio-dev \
libfftw3-dev \
libfreetype6-dev \
libftgl-dev \
libgfal2-dev \
libgif-dev \
libgl2ps-dev \
libglew-dev \
libglu-dev \
libgraphviz-dev \
libgsl-dev \
libjemalloc-dev \
libjpeg-dev \
libkrb5-dev \
libldap2-dev \
liblz4-dev \
liblzma-dev \
libmysqlclient-dev \
libpcre++-dev \
libpng-dev \
libpq-dev \
libpythia8-dev \
libqt4-dev \
libreadline-dev \
libsqlite3-dev \
libssl-dev \
libtbb-dev \
libtiff-dev \
libx11-dev \
libxext-dev \
libxft-dev \
libxml2-dev \
libxpm-dev \
libz-dev \
libzmq3-dev \
locales \
lsb-release \
lsb-release \
make \
module-init-tools \
openjdk-8-jdk \
openjdk-8-jdk \
pkg-config \
python \
python3 \
python3-markdown \
python3-pip \
python3-requests \
python3-tk \
python3-yaml \
python-dev \
python-markdown \
python-numpy \
python-pip \
python-requests \
python-yaml \
r-base \
r-cran-rcpp \
r-cran-rinside \
rsync \
srm-ifce-dev \
unixodbc-dev \
unzip \
vim \
wget \
&& \
apt-get clean
# silly tf requires a rt component
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get install -y --allow-unauthenticated \
libnvinfer6=6.0.1-1+cuda10.1 \
libnvinfer-dev=6.0.1-1+cuda10.1 \
libnvinfer-plugin6=6.0.1-1+cuda10.1
# bazel is required for some TensorFlow projects
RUN echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" >/etc/apt/sources.list.d/bazel.list && \
curl https://bazel.build/bazel-release.pub.gpg | apt-key add -
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install -y --allow-unauthenticated \
bazel
######################
# only support python3
RUN python3 -m pip install --upgrade pip && \
python3 -m pip install --upgrade setuptools
RUN python3 -m pip --no-cache-dir install \
h5py \
ipykernel \
jupyter \
matplotlib \
numpy \
pandas \
Pillow \
scipy \
sklearn \
&& \
python3 -m ipykernel.kernelspec
# Install TensorFlow GPU version.
RUN python3 -m pip install --upgrade tensorflow==2.3 keras
#############################
# make sure we have a way to bind OpenCL directory
RUN mkdir -p /etc/OpenCL/vendors
# CA certs
RUN mkdir -p /etc/grid-security && \
cd /etc/grid-security && \
wget -nv https://download.pegasus.isi.edu/containers/certificates.tar.gz && \
tar xzf certificates.tar.gz && \
rm -f certificates.tar.gz
# stashcp
RUN python3 -m pip install stashcp
# required directories
RUN for MNTPOINT in \
/cvmfs \
/hadoop \
/hdfs \
/lizard \
/mnt/hadoop \
/mnt/hdfs \
/xenon \
/spt \
/stash2 \
; do \
mkdir -p $MNTPOINT ; \
done
# some extra singularity stuff
COPY .singularity.d /.singularity.d
# build info
RUN echo "Timestamp:" `date --utc` | tee /image-build-info.txt