-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1618 from TeslaZhao/develop
Add dockerfile for centos
- Loading branch information
Showing
5 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |