@@ -11,7 +11,7 @@ ARG CONAN_CENTER_PROXY_V2_URL=https://center2.conan.io
1111# If you want to use a diffrent remote for Conan, such as a proxy. Set the CONAN_CENTER_PROXY_V2_URL
1212# Not this is only for building the image. The actual conan center proxy URL is set in the remotes.json file.
1313
14- ARG manylinux_image=quay.io/pypa/manylinux2014_x86_64
14+ ARG manylinux_image=quay.io/pypa/manylinux2014
1515# Base image to use, this should be of the manylinux family. More info at: https://github.com/pypa/manylinux
1616
1717ARG UV_CACHE_DIR=/.cache/uv
@@ -33,7 +33,21 @@ RUN --mount=type=cache,target=/path/to/pipx/cache \
3333# ==============================================================================
3434FROM base AS conan_builder
3535RUN --mount=type=cache,target=/var/cache/yum \
36- yum install -y jq
36+ case $(uname -m) in \
37+ x86_64) yum install -y jq ;; \
38+ aarch64) yum install -y wget gawk; \
39+ DOWNLOAD_URL='https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-arm64' && \
40+ EXPECTED_HASH='4dd2d8a0661df0b22f1bb9a1f9830f06b6f3b8f7d91211a1ef5d7c4f06a8b4a5' && \
41+ wget $DOWNLOAD_URL -P /tmp && \
42+ CALCULATED_HASH=$(sha256sum /tmp/jq-linux-arm64 | awk '{print $1}' ) && \
43+ if [ "$CALCULATED_HASH" != "$EXPECTED_HASH" ]; then \
44+ echo "Hash does not match. Expected: $EXPECTED_HASH. Got: $CALCULATED_HASH." && exit 1; \
45+ fi && \
46+ mv /tmp/jq-linux-arm64 /usr/local/bin/jq && \
47+ chmod +x /usr/local/bin/jq ;; \
48+ esac; \
49+ jq --version && \
50+ yum install -y perl-IPC-Cmd perl-Digest-SHA perl-Time-Piece
3751
3852ARG CONAN_USER_HOME
3953ARG CONAN_HOME
@@ -66,7 +80,7 @@ RUN --mount=type=bind,source=pyproject.toml,target=pyproject.toml \
6680 uv run --only-group conan conan install /tmp --build missing && \
6781 uv run --only-group conan conan cache clean "*" -b --source --build --temp && \
6882 uv cache prune && \
69- if [ "$(jq -r '.remotes[0].url' ${CONAN_HOME}/ remotes.json )" != "${CONAN_CENTER_PROXY_V2_URL} " ]; then \
83+ if [ -f "/tmp/ remotes.json" ]; then \
7084 mv -f /tmp/remotes.json ${CONAN_HOME}/remotes.json; \
7185 fi && \
7286 mv -f /tmp/global.conf.original ${CONAN_HOME}/global.conf
0 commit comments