Add NOAVX Docker image scripts. (#129)
* Add noavx to docker * Not to use directory to split Docker image.avx_docs
parent
4bc4a44ed9
commit
baaaa0b09d
@ -0,0 +1,11 @@
|
||||
FROM ubuntu:14.04
|
||||
MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com>
|
||||
COPY build.sh /root/
|
||||
ENV WITH_GPU=OFF
|
||||
ENV IS_DEVEL=OFF
|
||||
ENV WITH_DEMO=OFF
|
||||
ENV PIP_INSTALL_ARGS ""
|
||||
ENV PIP_GENERAL_ARGS ""
|
||||
ENV USE_UBUNTU_MIRROR OFF
|
||||
ENV WITH_AVX=OFF
|
||||
RUN cd /root/ && bash build.sh
|
@ -0,0 +1,11 @@
|
||||
FROM ubuntu:14.04
|
||||
MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com>
|
||||
COPY build.sh /root/
|
||||
ENV WITH_GPU=OFF
|
||||
ENV IS_DEVEL=ON
|
||||
ENV WITH_DEMO=ON
|
||||
ENV PIP_INSTALL_ARGS ""
|
||||
ENV PIP_GENERAL_ARGS ""
|
||||
ENV USE_UBUNTU_MIRROR OFF
|
||||
ENV WITH_AVX=OFF
|
||||
RUN cd /root/ && bash build.sh
|
@ -0,0 +1,11 @@
|
||||
FROM ubuntu:14.04
|
||||
MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com>
|
||||
COPY build.sh /root/
|
||||
ENV WITH_GPU=OFF
|
||||
ENV IS_DEVEL=ON
|
||||
ENV WITH_DEMO=OFF
|
||||
ENV PIP_INSTALL_ARGS ""
|
||||
ENV PIP_GENERAL_ARGS ""
|
||||
ENV USE_UBUNTU_MIRROR OFF
|
||||
ENV WITH_AVX=OFF
|
||||
RUN cd /root/ && bash build.sh
|
@ -0,0 +1,11 @@
|
||||
FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04
|
||||
MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com>
|
||||
COPY build.sh /root/
|
||||
ENV WITH_GPU=ON
|
||||
ENV IS_DEVEL=OFF
|
||||
ENV WITH_DEMO=OFF
|
||||
ENV PIP_INSTALL_ARGS ""
|
||||
ENV PIP_GENERAL_ARGS ""
|
||||
ENV USE_UBUNTU_MIRROR OFF
|
||||
ENV WITH_AVX=OFF
|
||||
RUN cd /root/ && bash build.sh
|
@ -0,0 +1,11 @@
|
||||
FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04
|
||||
MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com>
|
||||
COPY build.sh /root/
|
||||
ENV WITH_GPU=ON
|
||||
ENV IS_DEVEL=ON
|
||||
ENV WITH_DEMO=ON
|
||||
ENV PIP_INSTALL_ARGS ""
|
||||
ENV PIP_GENERAL_ARGS ""
|
||||
ENV USE_UBUNTU_MIRROR OFF
|
||||
ENV WITH_AVX=OFF
|
||||
RUN cd /root/ && bash build.sh
|
@ -0,0 +1,11 @@
|
||||
FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04
|
||||
MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com>
|
||||
COPY build.sh /root/
|
||||
ENV WITH_GPU=ON
|
||||
ENV IS_DEVEL=ON
|
||||
ENV WITH_DEMO=OFF
|
||||
ENV PIP_INSTALL_ARGS ""
|
||||
ENV PIP_GENERAL_ARGS ""
|
||||
ENV USE_UBUNTU_MIRROR OFF
|
||||
ENV WITH_AVX=OFF
|
||||
RUN cd /root/ && bash build.sh
|
@ -1,48 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
function abort(){
|
||||
echo "An error occurred. Exiting..." 1>&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
trap 'abort' 0
|
||||
set -e
|
||||
if [ ${USE_UBUNTU_MIRROR} == "ON" ]; then
|
||||
sed -i 's#http://archive\.ubuntu\.com/ubuntu/#mirror://mirrors\.ubuntu\.com/mirrors\.txt#g'\
|
||||
/etc/apt/sources.list
|
||||
fi
|
||||
apt-get update
|
||||
apt-get install -y cmake libprotobuf-dev protobuf-compiler git \
|
||||
libgoogle-glog-dev libgflags-dev libatlas-dev libatlas3-base g++ m4 python-pip\
|
||||
python-protobuf python-numpy python-dev swig
|
||||
|
||||
if [ ${WITH_GPU} == 'ON' ]; then
|
||||
ln -s /usr/lib/x86_64-linux-gnu/libcudnn.so /usr/lib/libcudnn.so
|
||||
fi
|
||||
|
||||
cd ~
|
||||
git clone https://github.com/baidu/Paddle.git paddle
|
||||
cd paddle
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. -DWITH_DOC=OFF -DWITH_GPU=${WITH_GPU} -DWITH_SWIG_PY=ON\
|
||||
-DCUDNN_ROOT=/usr/ -DWITH_STYLE_CHECK=OFF
|
||||
make -j `nproc`
|
||||
# because durning make install, there are several warning, so set +e, do not cause abort
|
||||
make install
|
||||
echo 'export LD_LIBRARY_PATH=/usr/lib64:${LD_LIBRARY_PATH}' >> /etc/profile
|
||||
pip ${PIP_GENERAL_ARGS} install ${PIP_INSTALL_ARGS} /usr/local/opt/paddle/share/wheels/*.whl
|
||||
paddle version # print version after build
|
||||
|
||||
if [ ${WITH_DEMO} == "ON" ]; then
|
||||
apt-get install -y wget unzip perl python-matplotlib tar xz-utils bzip2 gzip coreutils\
|
||||
sed grep graphviz libjpeg-dev zlib1g-dev
|
||||
pip ${PIP_GENERAL_ARGS} install ${PIP_INSTALL_ARGS} BeautifulSoup docopt \
|
||||
PyYAML pillow
|
||||
fi
|
||||
if [ ${IS_DEVEL} == "OFF" ]; then # clean build packages.
|
||||
cd ~
|
||||
rm -rf paddle
|
||||
fi
|
||||
apt-get clean -y
|
||||
trap : 0
|
@ -1,48 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
function abort(){
|
||||
echo "An error occurred. Exiting..." 1>&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
trap 'abort' 0
|
||||
set -e
|
||||
if [ ${USE_UBUNTU_MIRROR} == "ON" ]; then
|
||||
sed -i 's#http://archive\.ubuntu\.com/ubuntu/#mirror://mirrors\.ubuntu\.com/mirrors\.txt#g'\
|
||||
/etc/apt/sources.list
|
||||
fi
|
||||
apt-get update
|
||||
apt-get install -y cmake libprotobuf-dev protobuf-compiler git \
|
||||
libgoogle-glog-dev libgflags-dev libatlas-dev libatlas3-base g++ m4 python-pip\
|
||||
python-protobuf python-numpy python-dev swig
|
||||
|
||||
if [ ${WITH_GPU} == 'ON' ]; then
|
||||
ln -s /usr/lib/x86_64-linux-gnu/libcudnn.so /usr/lib/libcudnn.so
|
||||
fi
|
||||
|
||||
cd ~
|
||||
git clone https://github.com/baidu/Paddle.git paddle
|
||||
cd paddle
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. -DWITH_DOC=OFF -DWITH_GPU=${WITH_GPU} -DWITH_SWIG_PY=ON\
|
||||
-DCUDNN_ROOT=/usr/ -DWITH_STYLE_CHECK=OFF
|
||||
make -j `nproc`
|
||||
# because durning make install, there are several warning, so set +e, do not cause abort
|
||||
make install
|
||||
echo 'export LD_LIBRARY_PATH=/usr/lib64:${LD_LIBRARY_PATH}' >> /etc/profile
|
||||
pip ${PIP_GENERAL_ARGS} install ${PIP_INSTALL_ARGS} /usr/local/opt/paddle/share/wheels/*.whl
|
||||
paddle version # print version after build
|
||||
|
||||
if [ ${WITH_DEMO} == "ON" ]; then
|
||||
apt-get install -y wget unzip perl python-matplotlib tar xz-utils bzip2 gzip coreutils\
|
||||
sed grep graphviz libjpeg-dev zlib1g-dev
|
||||
pip ${PIP_GENERAL_ARGS} install ${PIP_INSTALL_ARGS} BeautifulSoup docopt \
|
||||
PyYAML pillow
|
||||
fi
|
||||
if [ ${IS_DEVEL} == "OFF" ]; then # clean build packages.
|
||||
cd ~
|
||||
rm -rf paddle
|
||||
fi
|
||||
apt-get clean -y
|
||||
trap : 0
|
@ -1,48 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
function abort(){
|
||||
echo "An error occurred. Exiting..." 1>&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
trap 'abort' 0
|
||||
set -e
|
||||
if [ ${USE_UBUNTU_MIRROR} == "ON" ]; then
|
||||
sed -i 's#http://archive\.ubuntu\.com/ubuntu/#mirror://mirrors\.ubuntu\.com/mirrors\.txt#g'\
|
||||
/etc/apt/sources.list
|
||||
fi
|
||||
apt-get update
|
||||
apt-get install -y cmake libprotobuf-dev protobuf-compiler git \
|
||||
libgoogle-glog-dev libgflags-dev libatlas-dev libatlas3-base g++ m4 python-pip\
|
||||
python-protobuf python-numpy python-dev swig
|
||||
|
||||
if [ ${WITH_GPU} == 'ON' ]; then
|
||||
ln -s /usr/lib/x86_64-linux-gnu/libcudnn.so /usr/lib/libcudnn.so
|
||||
fi
|
||||
|
||||
cd ~
|
||||
git clone https://github.com/baidu/Paddle.git paddle
|
||||
cd paddle
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. -DWITH_DOC=OFF -DWITH_GPU=${WITH_GPU} -DWITH_SWIG_PY=ON\
|
||||
-DCUDNN_ROOT=/usr/ -DWITH_STYLE_CHECK=OFF
|
||||
make -j `nproc`
|
||||
# because durning make install, there are several warning, so set +e, do not cause abort
|
||||
make install
|
||||
echo 'export LD_LIBRARY_PATH=/usr/lib64:${LD_LIBRARY_PATH}' >> /etc/profile
|
||||
pip ${PIP_GENERAL_ARGS} install ${PIP_INSTALL_ARGS} /usr/local/opt/paddle/share/wheels/*.whl
|
||||
paddle version # print version after build
|
||||
|
||||
if [ ${WITH_DEMO} == "ON" ]; then
|
||||
apt-get install -y wget unzip perl python-matplotlib tar xz-utils bzip2 gzip coreutils\
|
||||
sed grep graphviz libjpeg-dev zlib1g-dev
|
||||
pip ${PIP_GENERAL_ARGS} install ${PIP_INSTALL_ARGS} BeautifulSoup docopt \
|
||||
PyYAML pillow
|
||||
fi
|
||||
if [ ${IS_DEVEL} == "OFF" ]; then # clean build packages.
|
||||
cd ~
|
||||
rm -rf paddle
|
||||
fi
|
||||
apt-get clean -y
|
||||
trap : 0
|
@ -1,48 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
function abort(){
|
||||
echo "An error occurred. Exiting..." 1>&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
trap 'abort' 0
|
||||
set -e
|
||||
if [ ${USE_UBUNTU_MIRROR} == "ON" ]; then
|
||||
sed -i 's#http://archive\.ubuntu\.com/ubuntu/#mirror://mirrors\.ubuntu\.com/mirrors\.txt#g'\
|
||||
/etc/apt/sources.list
|
||||
fi
|
||||
apt-get update
|
||||
apt-get install -y cmake libprotobuf-dev protobuf-compiler git \
|
||||
libgoogle-glog-dev libgflags-dev libatlas-dev libatlas3-base g++ m4 python-pip\
|
||||
python-protobuf python-numpy python-dev swig
|
||||
|
||||
if [ ${WITH_GPU} == 'ON' ]; then
|
||||
ln -s /usr/lib/x86_64-linux-gnu/libcudnn.so /usr/lib/libcudnn.so
|
||||
fi
|
||||
|
||||
cd ~
|
||||
git clone https://github.com/baidu/Paddle.git paddle
|
||||
cd paddle
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. -DWITH_DOC=OFF -DWITH_GPU=${WITH_GPU} -DWITH_SWIG_PY=ON\
|
||||
-DCUDNN_ROOT=/usr/ -DWITH_STYLE_CHECK=OFF
|
||||
make -j `nproc`
|
||||
# because durning make install, there are several warning, so set +e, do not cause abort
|
||||
make install
|
||||
echo 'export LD_LIBRARY_PATH=/usr/lib64:${LD_LIBRARY_PATH}' >> /etc/profile
|
||||
pip ${PIP_GENERAL_ARGS} install ${PIP_INSTALL_ARGS} /usr/local/opt/paddle/share/wheels/*.whl
|
||||
paddle version # print version after build
|
||||
|
||||
if [ ${WITH_DEMO} == "ON" ]; then
|
||||
apt-get install -y wget unzip perl python-matplotlib tar xz-utils bzip2 gzip coreutils\
|
||||
sed grep graphviz libjpeg-dev zlib1g-dev
|
||||
pip ${PIP_GENERAL_ARGS} install ${PIP_INSTALL_ARGS} BeautifulSoup docopt \
|
||||
PyYAML pillow
|
||||
fi
|
||||
if [ ${IS_DEVEL} == "OFF" ]; then # clean build packages.
|
||||
cd ~
|
||||
rm -rf paddle
|
||||
fi
|
||||
apt-get clean -y
|
||||
trap : 0
|
@ -1,48 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
function abort(){
|
||||
echo "An error occurred. Exiting..." 1>&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
trap 'abort' 0
|
||||
set -e
|
||||
if [ ${USE_UBUNTU_MIRROR} == "ON" ]; then
|
||||
sed -i 's#http://archive\.ubuntu\.com/ubuntu/#mirror://mirrors\.ubuntu\.com/mirrors\.txt#g'\
|
||||
/etc/apt/sources.list
|
||||
fi
|
||||
apt-get update
|
||||
apt-get install -y cmake libprotobuf-dev protobuf-compiler git \
|
||||
libgoogle-glog-dev libgflags-dev libatlas-dev libatlas3-base g++ m4 python-pip\
|
||||
python-protobuf python-numpy python-dev swig
|
||||
|
||||
if [ ${WITH_GPU} == 'ON' ]; then
|
||||
ln -s /usr/lib/x86_64-linux-gnu/libcudnn.so /usr/lib/libcudnn.so
|
||||
fi
|
||||
|
||||
cd ~
|
||||
git clone https://github.com/baidu/Paddle.git paddle
|
||||
cd paddle
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. -DWITH_DOC=OFF -DWITH_GPU=${WITH_GPU} -DWITH_SWIG_PY=ON\
|
||||
-DCUDNN_ROOT=/usr/ -DWITH_STYLE_CHECK=OFF
|
||||
make -j `nproc`
|
||||
# because durning make install, there are several warning, so set +e, do not cause abort
|
||||
make install
|
||||
echo 'export LD_LIBRARY_PATH=/usr/lib64:${LD_LIBRARY_PATH}' >> /etc/profile
|
||||
pip ${PIP_GENERAL_ARGS} install ${PIP_INSTALL_ARGS} /usr/local/opt/paddle/share/wheels/*.whl
|
||||
paddle version # print version after build
|
||||
|
||||
if [ ${WITH_DEMO} == "ON" ]; then
|
||||
apt-get install -y wget unzip perl python-matplotlib tar xz-utils bzip2 gzip coreutils\
|
||||
sed grep graphviz libjpeg-dev zlib1g-dev
|
||||
pip ${PIP_GENERAL_ARGS} install ${PIP_INSTALL_ARGS} BeautifulSoup docopt \
|
||||
PyYAML pillow
|
||||
fi
|
||||
if [ ${IS_DEVEL} == "OFF" ]; then # clean build packages.
|
||||
cd ~
|
||||
rm -rf paddle
|
||||
fi
|
||||
apt-get clean -y
|
||||
trap : 0
|
@ -1,48 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
function abort(){
|
||||
echo "An error occurred. Exiting..." 1>&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
trap 'abort' 0
|
||||
set -e
|
||||
if [ ${USE_UBUNTU_MIRROR} == "ON" ]; then
|
||||
sed -i 's#http://archive\.ubuntu\.com/ubuntu/#mirror://mirrors\.ubuntu\.com/mirrors\.txt#g'\
|
||||
/etc/apt/sources.list
|
||||
fi
|
||||
apt-get update
|
||||
apt-get install -y cmake libprotobuf-dev protobuf-compiler git \
|
||||
libgoogle-glog-dev libgflags-dev libatlas-dev libatlas3-base g++ m4 python-pip\
|
||||
python-protobuf python-numpy python-dev swig
|
||||
|
||||
if [ ${WITH_GPU} == 'ON' ]; then
|
||||
ln -s /usr/lib/x86_64-linux-gnu/libcudnn.so /usr/lib/libcudnn.so
|
||||
fi
|
||||
|
||||
cd ~
|
||||
git clone https://github.com/baidu/Paddle.git paddle
|
||||
cd paddle
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. -DWITH_DOC=OFF -DWITH_GPU=${WITH_GPU} -DWITH_SWIG_PY=ON\
|
||||
-DCUDNN_ROOT=/usr/ -DWITH_STYLE_CHECK=OFF
|
||||
make -j `nproc`
|
||||
# because durning make install, there are several warning, so set +e, do not cause abort
|
||||
make install
|
||||
echo 'export LD_LIBRARY_PATH=/usr/lib64:${LD_LIBRARY_PATH}' >> /etc/profile
|
||||
pip ${PIP_GENERAL_ARGS} install ${PIP_INSTALL_ARGS} /usr/local/opt/paddle/share/wheels/*.whl
|
||||
paddle version # print version after build
|
||||
|
||||
if [ ${WITH_DEMO} == "ON" ]; then
|
||||
apt-get install -y wget unzip perl python-matplotlib tar xz-utils bzip2 gzip coreutils\
|
||||
sed grep graphviz libjpeg-dev zlib1g-dev
|
||||
pip ${PIP_GENERAL_ARGS} install ${PIP_INSTALL_ARGS} BeautifulSoup docopt \
|
||||
PyYAML pillow
|
||||
fi
|
||||
if [ ${IS_DEVEL} == "OFF" ]; then # clean build packages.
|
||||
cd ~
|
||||
rm -rf paddle
|
||||
fi
|
||||
apt-get clean -y
|
||||
trap : 0
|
Loading…
Reference in new issue