|
| 1 | +FROM quay.io/pypa/manylinux_2_28_aarch64:2023-04-16-157f52a |
| 2 | + |
| 3 | +# building openssl needs IPC-Cmd (https://github.com/microsoft/vcpkg/issues/24988) |
| 4 | +RUN dnf -y install curl zip unzip tar ninja-build perl-IPC-Cmd |
| 5 | + |
| 6 | +# require python >= 3.7 (python 3.6 is default on base image) for meson |
| 7 | +RUN ln -s /opt/python/cp38-cp38/bin/python3 /usr/bin/python3 |
| 8 | + |
| 9 | +RUN git clone https://github.com/Microsoft/vcpkg.git /opt/vcpkg && \ |
| 10 | + git -C /opt/vcpkg checkout 580f143d123ce6abb5c135b11d6402c9a54bc9b9 |
| 11 | + |
| 12 | +ENV VCPKG_INSTALLATION_ROOT="/opt/vcpkg" |
| 13 | +ENV PATH="${PATH}:/opt/vcpkg" |
| 14 | + |
| 15 | +ENV VCPKG_DEFAULT_TRIPLET="arm64-linux-dynamic-release" |
| 16 | +# pkgconf fails to build with default debug mode of arm64-linux host |
| 17 | +ENV VCPKG_DEFAULT_HOST_TRIPLET="arm64-linux-release" |
| 18 | + |
| 19 | +# Must be set when building on arm |
| 20 | +ENV VCPKG_FORCE_SYSTEM_BINARIES=1 |
| 21 | + |
| 22 | +# mkdir & touch -> workaround for https://github.com/microsoft/vcpkg/issues/27786 |
| 23 | +RUN bootstrap-vcpkg.sh && \ |
| 24 | + mkdir -p /root/.vcpkg/ $HOME/.vcpkg && \ |
| 25 | + touch /root/.vcpkg/vcpkg.path.txt $HOME/.vcpkg/vcpkg.path.txt && \ |
| 26 | + vcpkg integrate install && \ |
| 27 | + vcpkg integrate bash |
| 28 | + |
| 29 | +COPY ci/custom-triplets/arm64-linux-dynamic-release.cmake opt/vcpkg/custom-triplets/arm64-linux-dynamic-release.cmake |
| 30 | +COPY ci/vcpkg-custom-ports/ opt/vcpkg/custom-ports/ |
| 31 | +COPY ci/vcpkg.json opt/vcpkg/ |
| 32 | + |
| 33 | +ENV LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/opt/vcpkg/installed/arm64-linux-dynamic-release/lib" |
| 34 | +RUN vcpkg install --overlay-triplets=opt/vcpkg/custom-triplets \ |
| 35 | + --overlay-ports=opt/vcpkg/custom-ports \ |
| 36 | + --feature-flags="versions,manifests" \ |
| 37 | + --x-manifest-root=opt/vcpkg \ |
| 38 | + --x-install-root=opt/vcpkg/installed && \ |
| 39 | + vcpkg list |
| 40 | + |
| 41 | +# setting git safe directory is required for properly building wheels when |
| 42 | +# git >= 2.35.3 |
| 43 | +RUN git config --global --add safe.directory "*" |
0 commit comments