Skip to content

Commit

Permalink
feat: ✨ update manylinux for 3.13 support
Browse files Browse the repository at this point in the history
  • Loading branch information
darvid committed Oct 10, 2024
1 parent 1e3cb40 commit 4c4b643
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,20 @@ jobs:
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4.2.1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3.7.1

- name: Set up emulation
if: matrix.platform != 'i686' && matrix.platform != 'x86_64'
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3.2.0
with:
platforms: ${{ matrix.platform }}

- name: Setup cache
if: github.event_name != 'workflow_dispatch' || fromJSON(github.event.inputs.useCache)
uses: actions/cache@v3
uses: actions/cache@v4.1.1
with:
path: .buildx-cache-${{ matrix.policy }}_${{ matrix.platform }}/*
key: buildx-cache-${{ matrix.policy }}-${{ matrix.platform }}-${{ hashFiles('Dockerfile') }}
Expand Down
3 changes: 3 additions & 0 deletions .mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[tools]
python = "3.13.0"
hadolint = "latest"
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG POLICY=manylinux2014
ARG PLATFORM=x86_64
ARG TAG=2024-01-08-eb135ed
ARG TAG=2024-10-07-1887322

ARG DEVTOOLSET_ROOTPATH=/opt/rh/gcc-toolset-12/root
ARG LD_LIBRARY_PATH_ARG=${DEVTOOLSET_ROOTPATH}/usr/lib64:${DEVTOOLSET_ROOTPATH}/usr/lib:${DEVTOOLSET_ROOTPATH}/usr/lib64/dyninst:${DEVTOOLSET_ROOTPATH}/usr/lib/dyninst
Expand All @@ -26,7 +26,7 @@ RUN wget -qO- https://www.colm.net/files/ragel/ragel-${ragel_version}.tar.gz | t
WORKDIR /tmp/ragel-${ragel_version}
RUN ./configure --prefix=/usr && make -j$(nproc) && make install

FROM base_ragel as base_vectorscan
FROM base_ragel AS base_vectorscan
ARG boost_version
ARG hyperscan_git_source
ARG hyperscan_git_tag
Expand All @@ -35,7 +35,7 @@ RUN git clone -b ${hyperscan_git_tag} ${hyperscan_git_source}
RUN wget -qO- http://downloads.sourceforge.net/project/boost/boost/${boost_version}/boost_$(echo "${boost_version}" | tr . _).tar.bz2 | tar xj
RUN mv boost*/boost vectorscan/include

FROM base_vectorscan as build_pcre
FROM base_vectorscan AS build_pcre
ARG pcre_version
ENV CFLAGS="-fPIC"
WORKDIR /tmp/vectorscan
Expand Down Expand Up @@ -72,7 +72,7 @@ RUN make -j$(nproc) && make install

FROM base
LABEL maintainer="David Gidwani <[email protected]>"
LABEL org.opencontainers.image.description Python manylinux with Intel Vectorscan
LABEL org.opencontainers.image.description Python manylinux with Vectorscan
ARG LD_LIBRARY_PATH_ARG
ARG PREPEND_PATH
ENV LD_LIBRARY_PATH=${LD_LIBRARY_PATH_ARG}
Expand Down

0 comments on commit 4c4b643

Please sign in to comment.