Skip to content

Commit

Permalink
Fix some problems in Debian build scripts.
Browse files Browse the repository at this point in the history
* Mount local Paddle instead of git clone from remote.
* Use official chinese ubuntu source instead of 163 mirror.
  • Loading branch information
reyoung committed Nov 15, 2016
1 parent 82fafb7 commit c60f57b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion paddle/scripts/deb/build_scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash
set -e
apt-get update
apt-get install -y dh-make
cd ~
mkdir -p ~/dist/gpu
mkdir -p ~/dist/cpu
mkdir -p ~/dist/cpu-noavx
mkdir -p ~/dist/gpu-noavx
git clone https://github.com/baidu/Paddle.git paddle
cd paddle
mkdir build
cd build
Expand Down
2 changes: 1 addition & 1 deletion paddle/scripts/deb/build_scripts/build_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ set -e
docker build -t build_paddle_deb .
rm -rf 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 rmi build_paddle_deb

0 comments on commit c60f57b

Please sign in to comment.