Skip to content

Commit 1833558

Browse files
TusharKanekiDeyTushar Dey
andauthored
Adding of deep_learning_container.py in Tf2 (#328)
Co-authored-by: Tushar Dey <tshdy@amazon.com>
1 parent 923c33c commit 1833558

File tree

8 files changed

+32
-0
lines changed

8 files changed

+32
-0
lines changed

docker/2.0.1/py2/Dockerfile.cpu

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ RUN ${PIP} install --no-cache-dir -U \
121121
&& ${PIP} install --no-cache-dir -U \
122122
horovod==0.18.2
123123

124+
COPY deep_learning_container.py /usr/local/bin/deep_learning_container.py
125+
126+
RUN chmod +x /usr/local/bin/deep_learning_container.py
127+
124128
RUN curl https://aws-dlc-licenses.s3.amazonaws.com/tensorflow-2.0.1/license.txt -o /license.txt
125129

126130
CMD ["bin/bash"]

docker/2.0.1/py2/Dockerfile.gpu

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ RUN cat /etc/ssh/ssh_config | grep -v StrictHostKeyChecking > /etc/ssh/ssh_confi
157157
&& echo " StrictHostKeyChecking no" >> /etc/ssh/ssh_config.new \
158158
&& mv /etc/ssh/ssh_config.new /etc/ssh/ssh_config
159159

160+
COPY deep_learning_container.py /usr/local/bin/deep_learning_container.py
161+
162+
RUN chmod +x /usr/local/bin/deep_learning_container.py
163+
160164
RUN curl https://aws-dlc-licenses.s3.amazonaws.com/tensorflow-2.0.1/license.txt -o /license.txt
161165

162166
CMD ["bin/bash"]

docker/2.0.1/py3/Dockerfile.cpu

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ RUN ${PIP} install --no-cache-dir -U \
119119
$FRAMEWORK_SUPPORT_INSTALLABLE \
120120
&& rm -f $FRAMEWORK_SUPPORT_INSTALLABLE
121121

122+
COPY deep_learning_container.py /usr/local/bin/deep_learning_container.py
123+
124+
RUN chmod +x /usr/local/bin/deep_learning_container.py
125+
122126
RUN curl https://aws-dlc-licenses.s3.amazonaws.com/tensorflow-2.0.1/license.txt -o /license.txt
123127

124128
CMD ["bin/bash"]

docker/2.0.1/py3/Dockerfile.gpu

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ RUN cat /etc/ssh/ssh_config | grep -v StrictHostKeyChecking > /etc/ssh/ssh_confi
167167
&& echo " StrictHostKeyChecking no" >> /etc/ssh/ssh_config.new \
168168
&& mv /etc/ssh/ssh_config.new /etc/ssh/ssh_config
169169

170+
COPY deep_learning_container.py /usr/local/bin/deep_learning_container.py
171+
172+
RUN chmod +x /usr/local/bin/deep_learning_container.py
173+
170174
RUN curl https://aws-dlc-licenses.s3.amazonaws.com/tensorflow-2.0.1/license.txt -o /license.txt
171175

172176
CMD ["bin/bash"]

docker/2.1.0/py2/Dockerfile.cpu

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ RUN ${PIP} install --no-cache-dir -U \
121121
&& ${PIP} install --no-cache-dir -U \
122122
horovod==0.18.2
123123

124+
COPY deep_learning_container.py /usr/local/bin/deep_learning_container.py
125+
126+
RUN chmod +x /usr/local/bin/deep_learning_container.py
127+
124128
RUN curl https://aws-dlc-licenses.s3.amazonaws.com/tensorflow-2.1/license.txt -o /license.txt
125129

126130
CMD ["bin/bash"]

docker/2.1.0/py2/Dockerfile.gpu

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ RUN cat /etc/ssh/ssh_config | grep -v StrictHostKeyChecking > /etc/ssh/ssh_confi
162162
&& echo " StrictHostKeyChecking no" >> /etc/ssh/ssh_config.new \
163163
&& mv /etc/ssh/ssh_config.new /etc/ssh/ssh_config
164164

165+
COPY deep_learning_container.py /usr/local/bin/deep_learning_container.py
166+
167+
RUN chmod +x /usr/local/bin/deep_learning_container.py
168+
165169
RUN curl https://aws-dlc-licenses.s3.amazonaws.com/tensorflow-2.1/license.txt -o /license.txt
166170

167171
CMD ["bin/bash"]

docker/2.1.0/py3/Dockerfile.cpu

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ RUN ${PIP} install --no-cache-dir -U \
122122
$FRAMEWORK_SUPPORT_INSTALLABLE \
123123
&& rm -f $FRAMEWORK_SUPPORT_INSTALLABLE
124124

125+
COPY deep_learning_container.py /usr/local/bin/deep_learning_container.py
126+
127+
RUN chmod +x /usr/local/bin/deep_learning_container.py
128+
125129
RUN curl https://aws-dlc-licenses.s3.amazonaws.com/tensorflow-2.1/license.txt -o /license.txt
126130

127131
CMD ["bin/bash"]

docker/2.1.0/py3/Dockerfile.gpu

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ RUN cat /etc/ssh/ssh_config | grep -v StrictHostKeyChecking > /etc/ssh/ssh_confi
175175
&& echo " StrictHostKeyChecking no" >> /etc/ssh/ssh_config.new \
176176
&& mv /etc/ssh/ssh_config.new /etc/ssh/ssh_config
177177

178+
COPY deep_learning_container.py /usr/local/bin/deep_learning_container.py
179+
180+
RUN chmod +x /usr/local/bin/deep_learning_container.py
181+
178182
RUN curl https://aws-dlc-licenses.s3.amazonaws.com/tensorflow-2.1/license.txt -o /license.txt
179183

180184
CMD ["bin/bash"]

0 commit comments

Comments
 (0)