Skip to content

Commit

Permalink
Merge pull request #1618 from TeslaZhao/develop
Browse files Browse the repository at this point in the history
Add dockerfile for centos
  • Loading branch information
TeslaZhao authored Jan 27, 2022
2 parents 359fcf2 + e7d9eb0 commit e690200
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tools/Dockerfile.cuda10.1-cudnn7.centos
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# A image for building paddle binaries
# Use cuda devel base image for both cpu and gpu environment
# When you modify it, please be aware of cudnn-runtime version
FROM paddlepaddle/paddle_manylinux_devel:cuda10.1-cudnn7-gcc82
MAINTAINER PaddlePaddle Authors <[email protected]>


# Update golang version to 1.17.2
RUN wget -qO- https://paddle-ci.cdn.bcebos.com/go1.17.2.linux-amd64.tar.gz | \
tar -xz -C /usr/local && \
mkdir /root/go && \
mkdir /root/go/bin && \
mkdir /root/go/src && \
echo "GOROOT=/usr/local/go" >> /root/.bashrc && \
echo "GOPATH=/root/go" >> /root/.bashrc && \
echo "PATH=/usr/local/go/bin:/root/go/bin:$PATH" >> /root/.bashrc

EXPOSE 22
18 changes: 18 additions & 0 deletions tools/Dockerfile.cuda10.2-cudnn7.centos
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# A image for building paddle binaries
# Use cuda devel base image for both cpu and gpu environment
# When you modify it, please be aware of cudnn-runtime version
FROM paddlepaddle/paddle_manylinux_devel:cuda10.2-cudnn7-gcc82-trt6
MAINTAINER PaddlePaddle Authors <[email protected]>


# Update golang version to 1.17.2
RUN wget -qO- https://paddle-ci.cdn.bcebos.com/go1.17.2.linux-amd64.tar.gz | \
tar -xz -C /usr/local && \
mkdir /root/go && \
mkdir /root/go/bin && \
mkdir /root/go/src && \
echo "GOROOT=/usr/local/go" >> /root/.bashrc && \
echo "GOPATH=/root/go" >> /root/.bashrc && \
echo "PATH=/usr/local/go/bin:/root/go/bin:$PATH" >> /root/.bashrc

EXPOSE 22
18 changes: 18 additions & 0 deletions tools/Dockerfile.cuda10.2-cudnn8.centos
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# A image for building paddle binaries
# Use cuda devel base image for both cpu and gpu environment
# When you modify it, please be aware of cudnn-runtime version
FROM paddlepaddle/paddle_manylinux_devel:cuda10.2-cudnn8.1-gcc82-trt7
MAINTAINER PaddlePaddle Authors <[email protected]>


# Update golang version to 1.17.2
RUN wget -qO- https://paddle-ci.cdn.bcebos.com/go1.17.2.linux-amd64.tar.gz | \
tar -xz -C /usr/local && \
mkdir /root/go && \
mkdir /root/go/bin && \
mkdir /root/go/src && \
echo "GOROOT=/usr/local/go" >> /root/.bashrc && \
echo "GOPATH=/root/go" >> /root/.bashrc && \
echo "PATH=/usr/local/go/bin:/root/go/bin:$PATH" >> /root/.bashrc

EXPOSE 22
18 changes: 18 additions & 0 deletions tools/Dockerfile.cuda11.2-cudnn8.centos
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# A image for building paddle binaries
# Use cuda devel base image for both cpu and gpu environment
# When you modify it, please be aware of cudnn-runtime version
FROM paddlepaddle/paddle_manylinux_devel:cuda11.2-cudnn8.2.1-trt8.0.3.4-gcc82
MAINTAINER PaddlePaddle Authors <[email protected]>


# Update golang version to 1.17.2
RUN wget -qO- https://paddle-ci.cdn.bcebos.com/go1.17.2.linux-amd64.tar.gz | \
tar -xz -C /usr/local && \
mkdir /root/go && \
mkdir /root/go/bin && \
mkdir /root/go/src && \
echo "GOROOT=/usr/local/go" >> /root/.bashrc && \
echo "GOPATH=/root/go" >> /root/.bashrc && \
echo "PATH=/usr/local/go/bin:/root/go/bin:$PATH" >> /root/.bashrc

EXPOSE 22
14 changes: 14 additions & 0 deletions tools/Dockerfile.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# A image for building paddle binaries
# # Use cuda devel base image for both cpu and gpu environment
# # When you modify it, please be aware of cudnn-runtime version
FROM hub.baidubce.com/paddlepaddle/serving:latest-cuda10.2-cudnn8-devel
MAINTAINER PaddlePaddle Authors <paddle-dev@baidu.com>


# The docker has already installed maven.
RUN apt update && \
apt install -y default-jre && \
apt install -y default-jdk && \
apt install -y maven

EXPOSE 22

0 comments on commit e690200

Please sign in to comment.