Skip to content

Commit 0515efc

Browse files
atalmanRyo-not-rio
authored andcommitted
Add conda to Manylinux Docker images (pytorch#139903)
We would like to switch https://github.com/pytorch/test-infra/blob/main/.github/workflows/linux_job.yml from ``pytorch/conda-builder`` to ``pytorch/manylinux-builder`` and later to ``pytorch/manylinux_2_28-builder`` . Hence adding conda to these images. Test Infra PR that does the switch : pytorch/test-infra#5867 - need to be rebased after this PR is merged Pull Request resolved: pytorch#139903 Approved by: https://github.com/seemethere
1 parent 1c1eb1b commit 0515efc

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.ci/docker/manywheel/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ COPY --from=libpng /usr/local/lib/pkgconfig /usr/local/
144144
FROM common as cpu_final
145145
ARG BASE_CUDA_VERSION=10.1
146146
ARG DEVTOOLSET_VERSION=9
147+
# Install Anaconda
148+
ADD ./common/install_conda_docker.sh install_conda.sh
149+
RUN bash ./install_conda.sh && rm install_conda.sh
150+
ENV PATH /opt/conda/bin:$PATH
147151
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
148152
RUN sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
149153
RUN sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo

.ci/docker/manywheel/Dockerfile_2_28

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ ARG DEVTOOLSET_VERSION=11
120120
# Install Anaconda
121121
ADD ./common/install_conda_docker.sh install_conda.sh
122122
RUN bash ./install_conda.sh && rm install_conda.sh
123+
ENV PATH /opt/conda/bin:$PATH
123124
# Ensure the expected devtoolset is used
124125
ENV PATH=/opt/rh/gcc-toolset-${DEVTOOLSET_VERSION}/root/usr/bin:$PATH
125126
ENV LD_LIBRARY_PATH=/opt/rh/gcc-toolset-${DEVTOOLSET_VERSION}/root/usr/lib64:/opt/rh/gcc-toolset-${DEVTOOLSET_VERSION}/root/usr/lib:$LD_LIBRARY_PATH

0 commit comments

Comments
 (0)