Skip to content

Commit

Permalink
[CI] Fix global pip cache disable change (apache#8590)
Browse files Browse the repository at this point in the history
* The fix to disable cache needs to run after pip is installed
* This is quick follow up fix after apache#8575
  • Loading branch information
leandron authored and ylc committed Jan 13, 2022
1 parent ec2a091 commit a435857
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 21 deletions.
6 changes: 3 additions & 3 deletions docker/Dockerfile.ci_arm
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ FROM ubuntu:18.04
RUN apt-get update --fix-missing
RUN apt-get install -y ca-certificates gnupg2

# Globally disable pip cache
RUN pip config set global.cache-dir false

COPY install/ubuntu_install_core.sh /install/ubuntu_install_core.sh
RUN bash /install/ubuntu_install_core.sh

Expand All @@ -35,6 +32,9 @@ RUN bash /install/ubuntu_install_llvm.sh
COPY install/ubuntu1804_install_python.sh /install/ubuntu1804_install_python.sh
RUN bash /install/ubuntu1804_install_python.sh

# Globally disable pip cache
RUN pip config set global.cache-dir false

COPY install/ubuntu_install_cmake_source.sh /install/ubuntu_install_cmake_source.sh
RUN bash /install/ubuntu_install_cmake_source.sh

Expand Down
6 changes: 3 additions & 3 deletions docker/Dockerfile.ci_cpu
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ FROM ubuntu:18.04

RUN apt-get update --fix-missing

# Globally disable pip cache
RUN pip config set global.cache-dir false

COPY install/ubuntu_install_core.sh /install/ubuntu_install_core.sh
RUN bash /install/ubuntu_install_core.sh

COPY install/ubuntu1804_install_python.sh /install/ubuntu1804_install_python.sh
RUN bash /install/ubuntu1804_install_python.sh

# Globally disable pip cache
RUN pip config set global.cache-dir false

COPY install/ubuntu_install_python_package.sh /install/ubuntu_install_python_package.sh
RUN bash /install/ubuntu_install_python_package.sh

Expand Down
6 changes: 3 additions & 3 deletions docker/Dockerfile.ci_gpu
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ FROM nvidia/cuda:11.0.3-cudnn8-devel-ubuntu18.04
# Base scripts
RUN apt-get update --fix-missing

# Globally disable pip cache
RUN pip config set global.cache-dir false

COPY install/ubuntu_install_core.sh /install/ubuntu_install_core.sh
RUN bash /install/ubuntu_install_core.sh

COPY install/ubuntu1804_install_python.sh /install/ubuntu1804_install_python.sh
RUN bash /install/ubuntu1804_install_python.sh

# Globally disable pip cache
RUN pip config set global.cache-dir false

COPY install/ubuntu1804_install_llvm.sh /install/ubuntu1804_install_llvm.sh
RUN bash /install/ubuntu1804_install_llvm.sh

Expand Down
6 changes: 3 additions & 3 deletions docker/Dockerfile.ci_i386
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ FROM ioft/i386-ubuntu:16.04

RUN apt-get update --fix-missing && apt-get install -y ca-certificates

# Globally disable pip cache
RUN pip config set global.cache-dir false

COPY install/ubuntu_install_core.sh /install/ubuntu_install_core.sh
RUN bash /install/ubuntu_install_core.sh

Expand All @@ -34,6 +31,9 @@ RUN bash /install/ubuntu_install_llvm.sh
COPY install/ubuntu_install_python.sh /install/ubuntu_install_python.sh
RUN bash /install/ubuntu_install_python.sh

# Globally disable pip cache
RUN pip config set global.cache-dir false

COPY install/ubuntu_install_cmake_source.sh /install/ubuntu_install_cmake_source.sh
RUN bash /install/ubuntu_install_cmake_source.sh

Expand Down
6 changes: 3 additions & 3 deletions docker/Dockerfile.ci_lint
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ FROM ubuntu:18.04

RUN apt-get update --fix-missing

# Globally disable pip cache
RUN pip config set global.cache-dir false

RUN apt-get update && apt-get install -y wget git sudo make

COPY install/ubuntu1804_install_python.sh /install/ubuntu1804_install_python.sh
RUN bash /install/ubuntu1804_install_python.sh

# Globally disable pip cache
RUN pip config set global.cache-dir false

RUN apt-get update && apt-get install -y doxygen graphviz

RUN pip3 install cpplint pylint==2.4.4 mypy==0.902 black==20.8b1
Expand Down
6 changes: 3 additions & 3 deletions docker/Dockerfile.ci_qemu
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ FROM ubuntu:18.04

RUN apt-get update --fix-missing

# Globally disable pip cache
RUN pip config set global.cache-dir false

COPY install/ubuntu_install_core.sh /install/ubuntu_install_core.sh
RUN bash /install/ubuntu_install_core.sh

COPY install/ubuntu1804_install_python_venv.sh /install/ubuntu1804_install_python_venv.sh
RUN bash /install/ubuntu1804_install_python_venv.sh
ENV PATH=/opt/tvm-venv/bin:/opt/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin:$PATH

# Globally disable pip cache
RUN pip config set global.cache-dir false

COPY install/ubuntu_install_python_package.sh /install/ubuntu_install_python_package.sh
RUN bash /install/ubuntu_install_python_package.sh

Expand Down
6 changes: 3 additions & 3 deletions docker/Dockerfile.ci_wasm
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ FROM ubuntu:18.04

RUN apt-get update --fix-missing

# Globally disable pip cache
RUN pip config set global.cache-dir false

COPY install/ubuntu_install_core.sh /install/ubuntu_install_core.sh
RUN bash /install/ubuntu_install_core.sh

COPY install/ubuntu1804_install_python.sh /install/ubuntu1804_install_python.sh
RUN bash /install/ubuntu1804_install_python.sh

# Globally disable pip cache
RUN pip config set global.cache-dir false

COPY install/ubuntu_install_python_package.sh /install/ubuntu_install_python_package.sh
RUN bash /install/ubuntu_install_python_package.sh

Expand Down

0 comments on commit a435857

Please sign in to comment.