diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-07-27 22:18:37 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-07-27 22:18:37 -0700 |
commit | 7c1c5917da5eff794308dd844a1957db2c609768 (patch) | |
tree | 737c81d80c13f81721034eecaffc3c54f0a5675d | |
parent | 4d076ec152b0b0a4ac47ce664962c3dd04afe7ae (diff) | |
parent | b9d94183348c6f72f79aa1fa69ce36147eda3660 (diff) |
Merge pull request #2797 from Rajpratik71:optimization/pip-no-cache
PiperOrigin-RevId: 323508910
-rw-r--r-- | benchmarks/workloads/tensorflow/Dockerfile | 4 | ||||
-rw-r--r-- | images/default/Dockerfile | 2 | ||||
-rwxr-xr-x | tools/vm/ubuntu1604/40_kokoro.sh | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/benchmarks/workloads/tensorflow/Dockerfile b/benchmarks/workloads/tensorflow/Dockerfile index b5763e8ae..eefe6b3eb 100644 --- a/benchmarks/workloads/tensorflow/Dockerfile +++ b/benchmarks/workloads/tensorflow/Dockerfile @@ -3,8 +3,8 @@ FROM tensorflow/tensorflow:1.13.2 RUN apt-get update \ && apt-get install -y git RUN git clone --depth 1 https://github.com/aymericdamien/TensorFlow-Examples.git -RUN python -m pip install -U pip setuptools -RUN python -m pip install matplotlib +RUN python -m pip install --no-cache-dir -U pip setuptools +RUN python -m pip install --no-cache-dir matplotlib WORKDIR /TensorFlow-Examples/examples diff --git a/images/default/Dockerfile b/images/default/Dockerfile index 2b38e6c58..d058b83cb 100644 --- a/images/default/Dockerfile +++ b/images/default/Dockerfile @@ -2,7 +2,7 @@ FROM fedora:31 # Install bazel. RUN dnf install -y dnf-plugins-core && dnf copr enable -y vbatts/bazel RUN dnf install -y git gcc make golang gcc-c++ glibc-devel python3 which python3-pip python3-devel libffi-devel openssl-devel pkg-config glibc-static libstdc++-static patch diffutils -RUN pip install pycparser +RUN pip install --no-cache-dir pycparser RUN dnf install -y bazel3 # Install gcloud. RUN curl https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-289.0.0-linux-x86_64.tar.gz | \ diff --git a/tools/vm/ubuntu1604/40_kokoro.sh b/tools/vm/ubuntu1604/40_kokoro.sh index 2974f156c..d3b96c9ad 100755 --- a/tools/vm/ubuntu1604/40_kokoro.sh +++ b/tools/vm/ubuntu1604/40_kokoro.sh @@ -41,7 +41,7 @@ while true; do done # junitparser is used to merge junit xml files. -pip install junitparser +pip install --no-cache-dir junitparser # We need a kbuilder user, which may already exist. useradd -c "kbuilder user" -m -s /bin/bash kbuilder || true |