提交 64b7561c 编写于 作者: Y Yu Yang

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.
上级 8295eb91
FROM ubuntu:14.04 FROM ubuntu:14.04
MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com> MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com>
COPY build.sh /root/ COPY build.sh /root/
ENV GIT_CHECKOUT=develop
ENV WITH_GPU=OFF ENV WITH_GPU=OFF
ENV IS_DEVEL=OFF ENV IS_DEVEL=OFF
ENV WITH_DEMO=OFF ENV WITH_DEMO=OFF
......
FROM ubuntu:14.04 FROM ubuntu:14.04
MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com> MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com>
COPY build.sh /root/ COPY build.sh /root/
ENV GIT_CHECKOUT=develop
ENV WITH_GPU=OFF ENV WITH_GPU=OFF
ENV IS_DEVEL=ON ENV IS_DEVEL=ON
ENV WITH_DEMO=ON ENV WITH_DEMO=ON
......
FROM ubuntu:14.04 FROM ubuntu:14.04
MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com> MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com>
COPY build.sh /root/ COPY build.sh /root/
ENV GIT_CHECKOUT=develop
ENV WITH_GPU=OFF ENV WITH_GPU=OFF
ENV IS_DEVEL=ON ENV IS_DEVEL=ON
ENV WITH_DEMO=OFF ENV WITH_DEMO=OFF
......
FROM ubuntu:14.04 FROM ubuntu:14.04
MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com> MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com>
COPY build.sh /root/ COPY build.sh /root/
ENV GIT_CHECKOUT=develop
ENV WITH_GPU=OFF ENV WITH_GPU=OFF
ENV IS_DEVEL=OFF ENV IS_DEVEL=OFF
ENV WITH_DEMO=OFF ENV WITH_DEMO=OFF
......
FROM ubuntu:14.04 FROM ubuntu:14.04
MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com> MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com>
COPY build.sh /root/ COPY build.sh /root/
ENV GIT_CHECKOUT=develop
ENV WITH_GPU=OFF ENV WITH_GPU=OFF
ENV IS_DEVEL=ON ENV IS_DEVEL=ON
ENV WITH_DEMO=ON ENV WITH_DEMO=ON
......
FROM ubuntu:14.04 FROM ubuntu:14.04
MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com> MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com>
COPY build.sh /root/ COPY build.sh /root/
ENV GIT_CHECKOUT=develop
ENV WITH_GPU=OFF ENV WITH_GPU=OFF
ENV IS_DEVEL=ON ENV IS_DEVEL=ON
ENV WITH_DEMO=OFF ENV WITH_DEMO=OFF
......
FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04 FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04
MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com> MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com>
COPY build.sh /root/ COPY build.sh /root/
ENV GIT_CHECKOUT=develop
ENV WITH_GPU=ON ENV WITH_GPU=ON
ENV IS_DEVEL=OFF ENV IS_DEVEL=OFF
ENV WITH_DEMO=OFF ENV WITH_DEMO=OFF
......
FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04 FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04
MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com> MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com>
COPY build.sh /root/ COPY build.sh /root/
ENV GIT_CHECKOUT=develop
ENV WITH_GPU=ON ENV WITH_GPU=ON
ENV IS_DEVEL=ON ENV IS_DEVEL=ON
ENV WITH_DEMO=ON ENV WITH_DEMO=ON
......
FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04 FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04
MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com> MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com>
COPY build.sh /root/ COPY build.sh /root/
ENV GIT_CHECKOUT=develop
ENV WITH_GPU=ON ENV WITH_GPU=ON
ENV IS_DEVEL=ON ENV IS_DEVEL=ON
ENV WITH_DEMO=OFF ENV WITH_DEMO=OFF
......
FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04 FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04
MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com> MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com>
COPY build.sh /root/ COPY build.sh /root/
ENV GIT_CHECKOUT=develop
ENV WITH_GPU=ON ENV WITH_GPU=ON
ENV IS_DEVEL=OFF ENV IS_DEVEL=OFF
ENV WITH_DEMO=OFF ENV WITH_DEMO=OFF
......
FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04 FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04
MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com> MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com>
COPY build.sh /root/ COPY build.sh /root/
ENV GIT_CHECKOUT=develop
ENV WITH_GPU=ON ENV WITH_GPU=ON
ENV IS_DEVEL=ON ENV IS_DEVEL=ON
ENV WITH_DEMO=ON ENV WITH_DEMO=ON
......
FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04 FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04
MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com> MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com>
COPY build.sh /root/ COPY build.sh /root/
ENV GIT_CHECKOUT=develop
ENV WITH_GPU=ON ENV WITH_GPU=ON
ENV IS_DEVEL=ON ENV IS_DEVEL=ON
ENV WITH_DEMO=OFF ENV WITH_DEMO=OFF
......
FROM PADDLE_BASE_IMAGE FROM PADDLE_BASE_IMAGE
MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com> MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com>
COPY build.sh /root/ COPY build.sh /root/
ENV GIT_CHECKOUT=develop
ENV WITH_GPU=PADDLE_WITH_GPU ENV WITH_GPU=PADDLE_WITH_GPU
ENV IS_DEVEL=PADDLE_IS_DEVEL ENV IS_DEVEL=PADDLE_IS_DEVEL
ENV WITH_DEMO=PADDLE_WITH_DEMO ENV WITH_DEMO=PADDLE_WITH_DEMO
......
...@@ -23,6 +23,7 @@ fi ...@@ -23,6 +23,7 @@ fi
cd ~ cd ~
git clone https://github.com/baidu/Paddle.git paddle git clone https://github.com/baidu/Paddle.git paddle
cd paddle cd paddle
git checkout ${GIT_CHECKOUT}
mkdir build mkdir build
cd build cd build
cmake .. -DWITH_DOC=OFF -DWITH_GPU=${WITH_GPU} -DWITH_SWIG_PY=ON\ cmake .. -DWITH_DOC=OFF -DWITH_GPU=${WITH_GPU} -DWITH_SWIG_PY=ON\
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册