提交 c60f57b6 编写于 作者: Y Yu Yang

Fix some problems in Debian build scripts.

* Mount local Paddle instead of git clone from remote.
* Use official chinese ubuntu source instead of 163 mirror.
上级 82fafb7c
#!/bin/bash #!/bin/bash
set -e set -e
apt-get update
apt-get install -y dh-make apt-get install -y dh-make
cd ~ cd ~
mkdir -p ~/dist/gpu mkdir -p ~/dist/gpu
mkdir -p ~/dist/cpu mkdir -p ~/dist/cpu
mkdir -p ~/dist/cpu-noavx mkdir -p ~/dist/cpu-noavx
mkdir -p ~/dist/gpu-noavx mkdir -p ~/dist/gpu-noavx
git clone https://github.com/baidu/Paddle.git paddle
cd paddle cd paddle
mkdir build mkdir build
cd build cd build
......
...@@ -3,6 +3,6 @@ set -e ...@@ -3,6 +3,6 @@ set -e
docker build -t build_paddle_deb . docker build -t build_paddle_deb .
rm -rf dist rm -rf dist
mkdir -p dist mkdir -p dist
docker run -v$PWD/dist:/root/dist --name tmp_build_deb_container build_paddle_deb docker run -v$PWD/dist:/root/dist -v $PWD/../../../..:/root/paddle --name tmp_build_deb_container build_paddle_deb
docker rm tmp_build_deb_container docker rm tmp_build_deb_container
docker rmi build_paddle_deb docker rmi build_paddle_deb
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册