Pin rbe-debian8-tf container tp a newer base image
authorA. Unique TensorFlower <gardener@tensorflow.org>
Fri, 20 Apr 2018 21:25:57 +0000 (14:25 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Fri, 20 Apr 2018 21:28:22 +0000 (14:28 -0700)
- Also improve how numpy is installed (not compiling from source) for containers based on other distros than Ubuntu14.04

PiperOrigin-RevId: 193722848

tensorflow/tools/ci_build/Dockerfile.rbe.cpu
tensorflow/tools/ci_build/install/install_pip_packages.sh

index 6f0798b..3bc52b9 100644 (file)
@@ -1,4 +1,4 @@
-FROM launcher.gcr.io/google/rbe-debian8:r322167
+FROM launcher.gcr.io/google/rbe-debian8:r327695
 LABEL maintainer="Yu Yi <yiyu@google.com>"
 
 # Copy install scripts
index 9644277..5aaf544 100755 (executable)
@@ -65,8 +65,13 @@ rm -rf /usr/lib/python3/dist-packages/six*
 # numpy needs to be installed from source to fix segfaults. See:
 # https://github.com/tensorflow/tensorflow/issues/6968
 # This workaround isn't needed for Ubuntu 16.04 or later.
-pip2 install --no-binary=:all: --upgrade numpy==1.12.0
-pip3 install --no-binary=:all: --upgrade numpy==1.12.0
+if $(cat /etc/*-release | grep -q 14.04); then
+  pip2 install --no-binary=:all: --upgrade numpy==1.12.0
+  pip3 install --no-binary=:all: --upgrade numpy==1.12.0
+else
+  pip2 install --upgrade numpy==1.12.0
+  pip3 install --upgrade numpy==1.12.0
+fi
 
 pip2 install scipy==0.18.1
 pip3 install scipy==0.18.1