Skip to content

Commit 7920229

Browse files
author
Amit Patankar
authored
Merge branch 'r1.7' into MarkDaoust-patch-1
2 parents 8a2c840 + 92e6c3e commit 7920229

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

tensorflow/tools/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ RUN pip --no-cache-dir install \
4747
http://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.0.0-cp27-none-linux_x86_64.whl
4848
# --- ~ DO NOT EDIT OR DELETE BETWEEN THE LINES --- #
4949

50-
# RUN ln -s /usr/bin/python3 /usr/bin/python#
50+
# RUN ln -s -f /usr/bin/python3 /usr/bin/python#
5151

5252
# Set up our notebook config.
5353
COPY jupyter_notebook_config.py /root/.jupyter/

tensorflow/tools/docker/Dockerfile.devel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ RUN pip --no-cache-dir install \
3838
&& \
3939
python -m ipykernel.kernelspec
4040

41+
# RUN ln -s -f /usr/bin/python3 /usr/bin/python#
42+
4143
# Set up our notebook config.
4244
COPY jupyter_notebook_config.py /root/.jupyter/
4345

tensorflow/tools/docker/Dockerfile.devel-gpu

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ RUN pip --no-cache-dir install \
4747
&& \
4848
python -m ipykernel.kernelspec
4949

50+
# RUN ln -s -f /usr/bin/python3 /usr/bin/python#
51+
5052
# Set up our notebook config.
5153
COPY jupyter_notebook_config.py /root/.jupyter/
5254

tensorflow/tools/docker/Dockerfile.gpu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ RUN pip --no-cache-dir install \
4747
http://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-0.0.0-cp27-none-linux_x86_64.whl
4848
# --- ~ DO NOT EDIT OR DELETE BETWEEN THE LINES --- #
4949

50-
# RUN ln -s /usr/bin/python3 /usr/bin/python#
50+
# RUN ln -s -f /usr/bin/python3 /usr/bin/python#
5151

5252
# Set up our notebook config.
5353
COPY jupyter_notebook_config.py /root/.jupyter/

tensorflow/tools/docker/parameterized_docker_build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ if [[ "${TF_DOCKER_BUILD_IS_DEVEL}" == "no" ]]; then
284284
if sed -i -e 's/python /python3 /g' "${DOCKERFILE}" && \
285285
sed -i -e 's/python-dev/python3-dev/g' "${DOCKERFILE}" && \
286286
sed -i -e 's/pip /pip3 /g' "${DOCKERFILE}" && \
287-
sed -i -e 's^# RUN ln -s /usr/bin/python3 /usr/bin/python#^RUN ln -s /usr/bin/python3 /usr/bin/python^' "${DOCKERFILE}"
287+
sed -i -e 's^# RUN ln -s -f /usr/bin/python3 /usr/bin/python#^RUN ln -s -f /usr/bin/python3 /usr/bin/python^' "${DOCKERFILE}"
288288
then
289289
echo "Modified Dockerfile for python version "\
290290
"${TF_DOCKER_BUILD_PYTHON_VERSION} at: ${DOCKERFILE}"
@@ -306,7 +306,7 @@ else
306306
sed -i -e 's^/tmp/pip^/tmp/pip3^g' "${DOCKERFILE}" && \
307307
sed -i -e 's/pip /pip3 /g' "${DOCKERFILE}" && \
308308
sed -i -e 's/ENV CI_BUILD_PYTHON python/ENV CI_BUILD_PYTHON python3/g' "${DOCKERFILE}" && \
309-
sed -i -e 's^# RUN ln -s /usr/bin/python3 /usr/bin/python#^RUN ln -s /usr/bin/python3 /usr/bin/python^' "${DOCKERFILE}"
309+
sed -i -e 's^# RUN ln -s -f /usr/bin/python3 /usr/bin/python#^RUN ln -s -f /usr/bin/python3 /usr/bin/python^' "${DOCKERFILE}"
310310
then
311311
echo "Modified Dockerfile further for python version ${TF_DOCKER_BUILD_PYTHON_VERSION} at: ${DOCKERFILE}"
312312
else

0 commit comments

Comments
 (0)