Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
CI: unify centos7_base.sh and centos7_core.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
leezu committed Apr 17, 2020
1 parent f882de0 commit c234074
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 69 deletions.
4 changes: 2 additions & 2 deletions ci/docker/Dockerfile.publish.centos7_cpu
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ FROM centos:7

WORKDIR /work/deps

COPY install/centos7_base.sh /work/
RUN /work/centos7_base.sh
COPY install/centos7_core.sh /work/
RUN /work/centos7_core.sh
COPY install/centos7_ccache.sh /work/
RUN /work/centos7_ccache.sh
COPY install/centos7_python.sh /work/
Expand Down
4 changes: 2 additions & 2 deletions ci/docker/Dockerfile.publish.centos7_gpu_cu100
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ FROM nvidia/cuda:10.0-cudnn7-devel-centos7

WORKDIR /work/deps

COPY install/centos7_base.sh /work/
RUN /work/centos7_base.sh
COPY install/centos7_core.sh /work/
RUN /work/centos7_core.sh
COPY install/centos7_ccache.sh /work/
RUN /work/centos7_ccache.sh
COPY install/centos7_python.sh /work/
Expand Down
4 changes: 2 additions & 2 deletions ci/docker/Dockerfile.publish.centos7_gpu_cu101
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ FROM nvidia/cuda:10.1-cudnn7-devel-centos7

WORKDIR /work/deps

COPY install/centos7_base.sh /work/
RUN /work/centos7_base.sh
COPY install/centos7_core.sh /work/
RUN /work/centos7_core.sh
COPY install/centos7_ccache.sh /work/
RUN /work/centos7_ccache.sh
COPY install/centos7_python.sh /work/
Expand Down
4 changes: 2 additions & 2 deletions ci/docker/Dockerfile.publish.centos7_gpu_cu102
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ FROM nvidia/cuda:10.2-cudnn7-devel-centos7

WORKDIR /work/deps

COPY install/centos7_base.sh /work/
RUN /work/centos7_base.sh
COPY install/centos7_core.sh /work/
RUN /work/centos7_core.sh
COPY install/centos7_ccache.sh /work/
RUN /work/centos7_ccache.sh
COPY install/centos7_python.sh /work/
Expand Down
4 changes: 2 additions & 2 deletions ci/docker/Dockerfile.publish.centos7_gpu_cu92
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ FROM nvidia/cuda:9.2-cudnn7-devel-centos7

WORKDIR /work/deps

COPY install/centos7_base.sh /work/
RUN /work/centos7_base.sh
COPY install/centos7_core.sh /work/
RUN /work/centos7_core.sh
COPY install/centos7_ccache.sh /work/
RUN /work/centos7_ccache.sh
COPY install/centos7_python.sh /work/
Expand Down
4 changes: 2 additions & 2 deletions ci/docker/Dockerfile.publish.test.centos7_cpu
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ FROM centos:7

WORKDIR /work/deps

COPY install/centos7_base.sh /work/
RUN /work/centos7_base.sh
COPY install/centos7_core.sh /work/
RUN /work/centos7_core.sh

COPY install/centos7_scala.sh /work/
RUN /work/centos7_scala.sh
Expand Down
4 changes: 2 additions & 2 deletions ci/docker/Dockerfile.publish.test.centos7_gpu
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ FROM nvidia/cuda:9.2-cudnn7-devel-centos7

WORKDIR /work/deps

COPY install/centos7_base.sh /work/
RUN /work/centos7_base.sh
COPY install/centos7_core.sh /work/
RUN /work/centos7_core.sh

COPY install/centos7_scala.sh /work/
RUN /work/centos7_scala.sh
Expand Down
55 changes: 0 additions & 55 deletions ci/docker/install/centos7_base.sh

This file was deleted.

2 changes: 2 additions & 0 deletions ci/docker/install/centos7_core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ yum -y install protobuf-devel
yum -y install zeromq-devel
yum -y install openssl-devel
yum -y install gcc-c++-4.8.*
yum -y install gcc-gfortran
yum -y install make
yum -y install wget
yum -y install unzip
Expand All @@ -43,6 +44,7 @@ yum -y install automake
yum -y install autoconf
yum -y install libtool
yum -y install patchelf
yum -y install pandoc

# gcc7
yum -y install centos-release-scl
Expand Down

0 comments on commit c234074

Please sign in to comment.