diff --git a/docker/Dockerfile.ci_gpu b/docker/Dockerfile.ci_gpu index 3d0704bb27f9..3d189e3858b0 100644 --- a/docker/Dockerfile.ci_gpu +++ b/docker/Dockerfile.ci_gpu @@ -90,6 +90,10 @@ 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 +# OneFlow deps +COPY install/ubuntu_install_oneflow.sh /install/ubuntu_install_oneflow.sh +RUN bash /install/ubuntu_install_oneflow.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_oneflow.sh b/docker/install/ubuntu_install_oneflow.sh new file mode 100644 index 000000000000..92853e9817f7 --- /dev/null +++ b/docker/install/ubuntu_install_oneflow.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 + +python3 -m pip install -f https://release.oneflow.info oneflow==0.6.0+cu110