Skip to content

Commit 64b7561

Browse files
committed
Add checkout name for Dockerfile
* 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.
1 parent 8295eb9 commit 64b7561

14 files changed

+14
-0
lines changed

paddle/scripts/docker/Dockerfile.cpu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM ubuntu:14.04
22
MAINTAINER PaddlePaddle Dev Team <[email protected]>
33
COPY build.sh /root/
4+
ENV GIT_CHECKOUT=develop
45
ENV WITH_GPU=OFF
56
ENV IS_DEVEL=OFF
67
ENV WITH_DEMO=OFF

paddle/scripts/docker/Dockerfile.cpu-demo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM ubuntu:14.04
22
MAINTAINER PaddlePaddle Dev Team <[email protected]>
33
COPY build.sh /root/
4+
ENV GIT_CHECKOUT=develop
45
ENV WITH_GPU=OFF
56
ENV IS_DEVEL=ON
67
ENV WITH_DEMO=ON

paddle/scripts/docker/Dockerfile.cpu-devel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM ubuntu:14.04
22
MAINTAINER PaddlePaddle Dev Team <[email protected]>
33
COPY build.sh /root/
4+
ENV GIT_CHECKOUT=develop
45
ENV WITH_GPU=OFF
56
ENV IS_DEVEL=ON
67
ENV WITH_DEMO=OFF

paddle/scripts/docker/Dockerfile.cpu-noavx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM ubuntu:14.04
22
MAINTAINER PaddlePaddle Dev Team <[email protected]>
33
COPY build.sh /root/
4+
ENV GIT_CHECKOUT=develop
45
ENV WITH_GPU=OFF
56
ENV IS_DEVEL=OFF
67
ENV WITH_DEMO=OFF

paddle/scripts/docker/Dockerfile.cpu-noavx-demo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM ubuntu:14.04
22
MAINTAINER PaddlePaddle Dev Team <[email protected]>
33
COPY build.sh /root/
4+
ENV GIT_CHECKOUT=develop
45
ENV WITH_GPU=OFF
56
ENV IS_DEVEL=ON
67
ENV WITH_DEMO=ON

paddle/scripts/docker/Dockerfile.cpu-noavx-devel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM ubuntu:14.04
22
MAINTAINER PaddlePaddle Dev Team <[email protected]>
33
COPY build.sh /root/
4+
ENV GIT_CHECKOUT=develop
45
ENV WITH_GPU=OFF
56
ENV IS_DEVEL=ON
67
ENV WITH_DEMO=OFF

paddle/scripts/docker/Dockerfile.gpu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04
22
MAINTAINER PaddlePaddle Dev Team <[email protected]>
33
COPY build.sh /root/
4+
ENV GIT_CHECKOUT=develop
45
ENV WITH_GPU=ON
56
ENV IS_DEVEL=OFF
67
ENV WITH_DEMO=OFF

paddle/scripts/docker/Dockerfile.gpu-demo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04
22
MAINTAINER PaddlePaddle Dev Team <[email protected]>
33
COPY build.sh /root/
4+
ENV GIT_CHECKOUT=develop
45
ENV WITH_GPU=ON
56
ENV IS_DEVEL=ON
67
ENV WITH_DEMO=ON

paddle/scripts/docker/Dockerfile.gpu-devel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04
22
MAINTAINER PaddlePaddle Dev Team <[email protected]>
33
COPY build.sh /root/
4+
ENV GIT_CHECKOUT=develop
45
ENV WITH_GPU=ON
56
ENV IS_DEVEL=ON
67
ENV WITH_DEMO=OFF

paddle/scripts/docker/Dockerfile.gpu-noavx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04
22
MAINTAINER PaddlePaddle Dev Team <[email protected]>
33
COPY build.sh /root/
4+
ENV GIT_CHECKOUT=develop
45
ENV WITH_GPU=ON
56
ENV IS_DEVEL=OFF
67
ENV WITH_DEMO=OFF

0 commit comments

Comments
 (0)