diff --git a/docker/Dockerfile.ci_cpu b/docker/Dockerfile.ci_cpu index bc6c0f116c1e..b1d8465e889e 100644 --- a/docker/Dockerfile.ci_cpu +++ b/docker/Dockerfile.ci_cpu @@ -122,3 +122,7 @@ RUN bash /install/ubuntu_install_vela.sh # Update PATH ENV PATH /opt/arm/gcc-arm-none-eabi/bin:$PATH + +# PaddlePaddle deps +COPY install/ubuntu_install_paddle.sh /install/ubuntu_install_paddle.sh +RUN bash /install/ubuntu_install_paddle.sh diff --git a/docker/Dockerfile.ci_gpu b/docker/Dockerfile.ci_gpu index a76cf4664f47..1eb13eaf14df 100644 --- a/docker/Dockerfile.ci_gpu +++ b/docker/Dockerfile.ci_gpu @@ -86,6 +86,9 @@ RUN bash /install/ubuntu_install_dgl.sh COPY install/ubuntu_install_vulkan.sh /install/ubuntu_install_vulkan.sh RUN bash /install/ubuntu_install_vulkan.sh +COPY install/ubuntu_install_paddle.sh /install/ubuntu_install_paddle.sh +RUN bash /install/ubuntu_install_paddle.sh + # Rust env (build early; takes a while) COPY install/ubuntu_install_rust.sh /install/ubuntu_install_rust.sh RUN bash /install/ubuntu_install_rust.sh diff --git a/docker/install/ubuntu_install_paddle.sh b/docker/install/ubuntu_install_paddle.sh new file mode 100644 index 000000000000..267d59105c06 --- /dev/null +++ b/docker/install/ubuntu_install_paddle.sh @@ -0,0 +1,23 @@ +#!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +set -e +set -u +set -o pipefail + +pip install paddlepaddle==2.1.2