File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed
doc/getstarted/build_and_install Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,22 @@ to install CUDA driver and let Docker knows about it:
142142 export DEVICES=$( \l s /dev/nvidia* | xargs -I{} echo ' --device {}:{}' )
143143 docker run ${CUDA_SO} ${DEVICES} -it paddledev/paddle:gpu-latest
144144
145+
146+ UBUNTU MIRROR
147+ -------------
148+
149+ Building Paddle Docker image hits some wrong with apt-get update, you
150+ can use other UBUNTU MIRROR instead of the default
151+
152+ .. code-block :: bash
153+
154+ cd ~
155+ git clone https://github.com/PaddlePaddle/Paddle.git
156+ cd Paddle
157+ git submodule update --init --recursive
158+ docker build --build-arg UBUNTU_MIRROR=" http://mirrors.163.com" -t paddle:cpu-avx -f paddle/scripts/docker/Dockerfile .
159+ docker build --build-arg UBUNTU_MIRROR=" http://mirrors.163.com" -t paddle:gpu-avx -f paddle/scripts/docker/Dockerfile.gpu .
160+
145161
146162 Non-AVX Images
147163--------------
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ FROM ubuntu:14.04
22MAINTAINER PaddlePaddle Authors <paddle-dev@baidu.com>
33
44ARG DEBIAN_FRONTEND=noninteractive
5+ ARG UBUNTU_MIRROR
6+ RUN /bin/bash -c 'if [[ -n ${UBUNTU_MIRROR} ]]; then sed -i ' s#http://archive.ubuntu.com#${UBUNTU_MIRROR}#g' /etc/apt/sources.list; fi'
57RUN apt-get update \
68 && apt-get install -y cmake libprotobuf-dev protobuf-compiler git \
79 libgoogle-glog-dev libgflags-dev libgtest-dev \
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04
22MAINTAINER PaddlePaddle Authors <paddle-dev@baidu.com>
33
44ARG DEBIAN_FRONTEND=noninteractive
5+ ARG UBUNTU_MIRROR
6+ RUN /bin/bash -c 'if [[ -n ${UBUNTU_MIRROR} ]]; then sed -i 's#http://archive.ubuntu.com#${UBUNTU_MIRROR}#g' /etc/apt/sources.list; fi'
57RUN apt-get update \
68 && apt-get install -y cmake libprotobuf-dev protobuf-compiler git \
79 libgoogle-glog-dev libgflags-dev libgtest-dev \
You can’t perform that action at this time.
0 commit comments