Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed yum repo in CI #141

Closed
wants to merge 14 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions buildwheel/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
FROM quay.io/pypa/manylinux2010_x86_64
COPY . /src/pike
RUN yum install -y krb5-devel krb5-workstation python27 && \
source /opt/rh/python27/enable && \
python2.7 -m pip install -U 'pip<21' && \
python2.7 -m pip install build
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
RUN yum install -y krb5-devel krb5-workstation python27
RUN source /opt/rh/python27/enable
RUN export PATH=$PATH:/opt/rh/python27/root/usr/bin
RUN ls /opt/rh/python27/root/usr/bin/python2.7
RUN whereis libpython2.7.so.1.0
RUN export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/rh/python27/root/usr/lib64
RUN echo /opt/rh/python27/root/usr/lib64 >> /etc/ld.so.conf
RUN ldconfig
RUN /opt/rh/python27/root/usr/bin/python2.7 -m pip install --trusted-host pypi.python.org -U 'pip<21'
RUN /opt/rh/python27/root/usr/bin/python2.7 -m pip install --trusted-host pypi.python.org build

CMD /src/pike/buildwheel/wheel27.sh
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ test-command = [

[tool.cibuildwheel.linux]
environment-pass = ["HOST_IPV4", "SAMBA_REALM", "SAMBA_SERVER", "ADMIN_PASSWORD"]
before-all = "yum install -y krb5-devel krb5-workstation"
before-all = """sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*;
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*;
yum install -y krb5-devel krb5-workstation"""

[[tool.cibuildwheel.overrides]]
select = "*-musllinux*"
Expand Down
Loading