Skip to content

Commit

Permalink
CentOS 7 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gibsondan committed Jul 1, 2024
1 parent 83e1803 commit facd869
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Use an official manylinux builder (https://github.com/pypa/manylinux#docker-images)
FROM --platform=linux/amd64 quay.io/pypa/manylinux2014_x86_64:latest

# Fix for CentOS 7 EOL - see https://github.com/pypa/manylinux/issues/1641
RUN sed -i -e 's/mirrorlist/#mirrorlist/g' \
-e 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' \
/etc/yum.repos.d/CentOS-*

# Install deps
RUN yum update && yum install -y git
RUN /opt/python/cp38-cp38/bin/python -m pip install pex
Expand All @@ -9,6 +14,7 @@ RUN /opt/python/cp38-cp38/bin/python -m pip install dagster-cloud-cli
RUN /opt/python/cp39-cp39/bin/python -m pip install dagster-cloud-cli
RUN /opt/python/cp310-cp310/bin/python -m pip install dagster-cloud-cli
RUN /opt/python/cp311-cp311/bin/python -m pip install dagster-cloud-cli
RUN /opt/python/cp312-cp312/bin/python -m pip install dagster-cloud-cli

# Create virtual environment using PEX
COPY generated/gha/dagster-cloud.pex /dagster-cloud.pex
Expand Down

0 comments on commit facd869

Please sign in to comment.