-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* use manylinux_2_28 * use muslinux_1_2 ref: https://github.com/pypa/manylinux?tab=readme-ov-file#docker-images
- Loading branch information
Showing
9 changed files
with
469 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
FROM quay.io/pypa/musllinux_1_2_x86_64:latest AS env | ||
# CMake 3.31.2 and SWIG 4.3.0 already installed | ||
|
||
# Install system build dependencies | ||
ENV PATH=/usr/local/bin:$PATH | ||
RUN apk add --no-cache git build-base linux-headers xfce4-dev-tools | ||
ENTRYPOINT ["/bin/sh", "-c"] | ||
CMD ["/bin/sh"] | ||
|
||
## Python | ||
#RUN apk add --no-cache python3-dev py3-pip py3-wheel py3-virtualenv \ | ||
# py3-numpy py3-pandas py3-matplotlib | ||
#RUN rm -f /usr/lib/python3.*/EXTERNALLY-MANAGED \ | ||
#&& python3 -m pip install absl-py mypy mypy-protobuf | ||
|
||
################ | ||
## OR-TOOLS ## | ||
################ | ||
FROM env AS devel | ||
ENV GIT_URL https://github.com/google/or-tools | ||
|
||
ARG GIT_BRANCH | ||
ENV GIT_BRANCH ${GIT_BRANCH:-main} | ||
ARG GIT_SHA1 | ||
ENV GIT_SHA1 ${GIT_SHA1:-unknown} | ||
|
||
# Download sources | ||
# use GIT_SHA1 to modify the command | ||
# i.e. avoid docker reusing the cache when new commit is pushed | ||
WORKDIR /root | ||
RUN git clone -b "${GIT_BRANCH}" --single-branch "$GIT_URL" /project \ | ||
&& cd /project \ | ||
&& git reset --hard "${GIT_SHA1}" | ||
WORKDIR /project | ||
|
||
COPY build-musllinux.sh . | ||
RUN chmod a+x "build-musllinux.sh" | ||
|
||
FROM devel AS build | ||
ENV PLATFORM x86_64 | ||
ARG PYTHON_VERSION | ||
ENV PYTHON_VERSION ${PYTHON_VERSION:-3} | ||
RUN ./build-musllinux.sh build | ||
|
||
FROM build as test | ||
RUN ./build-musllinux.sh test | ||
|
||
## Build project | ||
#FROM devel AS build | ||
#RUN cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DBUILD_DEPS=ON -DBUILD_PYTHON=ON -DVENV_USE_SYSTEM_SITE_PACKAGES=ON \ | ||
# -DBUILD_CXX_SAMPLES=OFF -DBUILD_CXX_EXAMPLES=OFF | ||
#RUN cmake --build build -v -j8 | ||
## Rename wheel package ortools-version+musl-.... | ||
#RUN cp build/python/dist/ortools-*.whl . | ||
#RUN NAME=$(ls *.whl | sed -e "s/\(ortools-[0-9\.]\+\)/\1+musl/") && mv *.whl "${NAME}" | ||
#RUN rm build/python/dist/ortools-*.whl | ||
#RUN mv *.whl build/python/dist/ | ||
# | ||
#FROM build AS test | ||
#RUN cmake --build build --target test |
13 changes: 7 additions & 6 deletions
13
...ocker/python/arm64v8/manylinux.Dockerfile → .../docker/python/arm64/manylinux.Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.