Skip to content

Commit

Permalink
[CI] remove COPY * in dockerfiles (#6515)
Browse files Browse the repository at this point in the history
  • Loading branch information
mli authored Jun 9, 2017
1 parent 25e719f commit 0da55a7
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 deletions tests/ci_build/Dockerfile.caffe_gpu
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM nvidia/cuda:7.5-cudnn5-devel

COPY install/ubuntu_*.sh /install/

COPY install/ubuntu_install_core.sh /install/
RUN /install/ubuntu_install_core.sh
COPY install/ubuntu_install_python.sh /install/
RUN /install/ubuntu_install_python.sh

RUN apt-get install -y libprotobuf-dev libleveldb-dev \
Expand Down
5 changes: 3 additions & 2 deletions tests/ci_build/Dockerfile.cpu
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM ubuntu:14.04

COPY install/ubuntu_*.sh /install/

COPY install/ubuntu_install_core.sh /install/
RUN /install/ubuntu_install_core.sh
COPY install/ubuntu_install_python.sh /install/
RUN /install/ubuntu_install_python.sh
COPY install/ubuntu_install_scala.sh /install/
RUN /install/ubuntu_install_scala.sh
5 changes: 4 additions & 1 deletion tests/ci_build/Dockerfile.doc
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
FROM ubuntu:14.04

COPY install/ubuntu_*.sh /install/

COPY install/ubuntu_install_core.sh /install/
RUN /install/ubuntu_install_core.sh
COPY install/ubuntu_install_python.sh /install/
RUN /install/ubuntu_install_python.sh
COPY install/ubuntu_install_scala.sh /install/
RUN /install/ubuntu_install_scala.sh

RUN wget http://downloads.lightbend.com/scala/2.11.8/scala-2.11.8.deb && \
dpkg -i scala-2.11.8.deb && rm scala-2.11.8.deb

Expand Down
5 changes: 3 additions & 2 deletions tests/ci_build/Dockerfile.gpu
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM nvidia/cuda:7.5-cudnn5-devel

COPY install/ubuntu_*.sh /install/

COPY install/ubuntu_install_core.sh /install/
RUN /install/ubuntu_install_core.sh
COPY install/ubuntu_install_python.sh /install/
RUN /install/ubuntu_install_python.sh
COPY install/ubuntu_install_scala.sh /install/
RUN /install/ubuntu_install_scala.sh
5 changes: 3 additions & 2 deletions tests/ci_build/Dockerfile.mklml_gpu
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ FROM nvidia/cuda:7.5-cudnn5-devel
# the reason we used a gpu base container because we are going to test MKLDNN
# operator implementation against GPU implementation

COPY install/ubuntu_*.sh /install/

COPY install/ubuntu_install_core.sh /install/
RUN /install/ubuntu_install_core.sh
COPY install/ubuntu_install_python.sh /install/
RUN /install/ubuntu_install_python.sh
COPY install/ubuntu_install_scala.sh /install/
RUN /install/ubuntu_install_scala.sh

RUN wget --no-check-certificate -O /tmp/mklml.tgz https://github.com/dmlc/web-data/raw/master/mxnet/mklml-release/mklml_lnx_2017.0.2.20170209.tgz
Expand Down

0 comments on commit 0da55a7

Please sign in to comment.