Skip to content

Commit

Permalink
Add checkout name for Dockerfile
Browse files Browse the repository at this point in the history
* Because in dockerhub, we cannot set the `docker build `running
  directory, we could only use `git clone` command to get the latest
  code if we put `Dockerfile` in subdirectory

* But the `git clone` will checkout the default branch only, so here
  we add a `ENV` in Dockerfile to checkout special branch or tag in
  git repo. We could change it to `V0.9.0` tag when it release.
  • Loading branch information
reyoung committed Nov 10, 2016
1 parent 8295eb9 commit 64b7561
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions paddle/scripts/docker/Dockerfile.cpu
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM ubuntu:14.04
MAINTAINER PaddlePaddle Dev Team <[email protected]>
COPY build.sh /root/
ENV GIT_CHECKOUT=develop
ENV WITH_GPU=OFF
ENV IS_DEVEL=OFF
ENV WITH_DEMO=OFF
Expand Down
1 change: 1 addition & 0 deletions paddle/scripts/docker/Dockerfile.cpu-demo
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM ubuntu:14.04
MAINTAINER PaddlePaddle Dev Team <[email protected]>
COPY build.sh /root/
ENV GIT_CHECKOUT=develop
ENV WITH_GPU=OFF
ENV IS_DEVEL=ON
ENV WITH_DEMO=ON
Expand Down
1 change: 1 addition & 0 deletions paddle/scripts/docker/Dockerfile.cpu-devel
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM ubuntu:14.04
MAINTAINER PaddlePaddle Dev Team <[email protected]>
COPY build.sh /root/
ENV GIT_CHECKOUT=develop
ENV WITH_GPU=OFF
ENV IS_DEVEL=ON
ENV WITH_DEMO=OFF
Expand Down
1 change: 1 addition & 0 deletions paddle/scripts/docker/Dockerfile.cpu-noavx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM ubuntu:14.04
MAINTAINER PaddlePaddle Dev Team <[email protected]>
COPY build.sh /root/
ENV GIT_CHECKOUT=develop
ENV WITH_GPU=OFF
ENV IS_DEVEL=OFF
ENV WITH_DEMO=OFF
Expand Down
1 change: 1 addition & 0 deletions paddle/scripts/docker/Dockerfile.cpu-noavx-demo
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM ubuntu:14.04
MAINTAINER PaddlePaddle Dev Team <[email protected]>
COPY build.sh /root/
ENV GIT_CHECKOUT=develop
ENV WITH_GPU=OFF
ENV IS_DEVEL=ON
ENV WITH_DEMO=ON
Expand Down
1 change: 1 addition & 0 deletions paddle/scripts/docker/Dockerfile.cpu-noavx-devel
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM ubuntu:14.04
MAINTAINER PaddlePaddle Dev Team <[email protected]>
COPY build.sh /root/
ENV GIT_CHECKOUT=develop
ENV WITH_GPU=OFF
ENV IS_DEVEL=ON
ENV WITH_DEMO=OFF
Expand Down
1 change: 1 addition & 0 deletions paddle/scripts/docker/Dockerfile.gpu
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04
MAINTAINER PaddlePaddle Dev Team <[email protected]>
COPY build.sh /root/
ENV GIT_CHECKOUT=develop
ENV WITH_GPU=ON
ENV IS_DEVEL=OFF
ENV WITH_DEMO=OFF
Expand Down
1 change: 1 addition & 0 deletions paddle/scripts/docker/Dockerfile.gpu-demo
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04
MAINTAINER PaddlePaddle Dev Team <[email protected]>
COPY build.sh /root/
ENV GIT_CHECKOUT=develop
ENV WITH_GPU=ON
ENV IS_DEVEL=ON
ENV WITH_DEMO=ON
Expand Down
1 change: 1 addition & 0 deletions paddle/scripts/docker/Dockerfile.gpu-devel
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04
MAINTAINER PaddlePaddle Dev Team <[email protected]>
COPY build.sh /root/
ENV GIT_CHECKOUT=develop
ENV WITH_GPU=ON
ENV IS_DEVEL=ON
ENV WITH_DEMO=OFF
Expand Down
1 change: 1 addition & 0 deletions paddle/scripts/docker/Dockerfile.gpu-noavx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04
MAINTAINER PaddlePaddle Dev Team <[email protected]>
COPY build.sh /root/
ENV GIT_CHECKOUT=develop
ENV WITH_GPU=ON
ENV IS_DEVEL=OFF
ENV WITH_DEMO=OFF
Expand Down
1 change: 1 addition & 0 deletions paddle/scripts/docker/Dockerfile.gpu-noavx-demo
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04
MAINTAINER PaddlePaddle Dev Team <[email protected]>
COPY build.sh /root/
ENV GIT_CHECKOUT=develop
ENV WITH_GPU=ON
ENV IS_DEVEL=ON
ENV WITH_DEMO=ON
Expand Down
1 change: 1 addition & 0 deletions paddle/scripts/docker/Dockerfile.gpu-noavx-devel
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04
MAINTAINER PaddlePaddle Dev Team <[email protected]>
COPY build.sh /root/
ENV GIT_CHECKOUT=develop
ENV WITH_GPU=ON
ENV IS_DEVEL=ON
ENV WITH_DEMO=OFF
Expand Down
1 change: 1 addition & 0 deletions paddle/scripts/docker/Dockerfile.m4
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM PADDLE_BASE_IMAGE
MAINTAINER PaddlePaddle Dev Team <[email protected]>
COPY build.sh /root/
ENV GIT_CHECKOUT=develop
ENV WITH_GPU=PADDLE_WITH_GPU
ENV IS_DEVEL=PADDLE_IS_DEVEL
ENV WITH_DEMO=PADDLE_WITH_DEMO
Expand Down
1 change: 1 addition & 0 deletions paddle/scripts/docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ fi
cd ~
git clone https://github.com/baidu/Paddle.git paddle
cd paddle
git checkout ${GIT_CHECKOUT}
mkdir build
cd build
cmake .. -DWITH_DOC=OFF -DWITH_GPU=${WITH_GPU} -DWITH_SWIG_PY=ON\
Expand Down

0 comments on commit 64b7561

Please sign in to comment.