chore: fix LZ4 builds on arm64 (#162)

build-essential and python3-dev are required to build LZ4 on arm64 since there aren't pre-compiled wheel available for this architecture. 
Also, switch back to using the latest qemu image.

Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
This commit is contained in:
Niccolò Fei
2025-03-11 16:42:03 +01:00
committed by GitHub
parent f60749ae2f
commit 012f3b6677
4 changed files with 6 additions and 4 deletions

View File

@@ -48,8 +48,6 @@ jobs:
uses: docker/setup-qemu-action@v3
with:
platforms: 'arm64'
# TODO: remove once https://github.com/docker/setup-qemu-action/issues/198 is fixed
image: 'tonistiigi/binfmt:qemu-v7.0.0'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

View File

@@ -45,8 +45,6 @@ jobs:
uses: docker/setup-qemu-action@v3
with:
platforms: ${{ matrix.platforms }}
# TODO: remove once https://github.com/docker/setup-qemu-action/issues/198 is fixed
image: 'tonistiigi/binfmt:qemu-v7.0.0'
- name: Docker meta
env:

View File

@@ -41,6 +41,8 @@ RUN set -xe; \
RUN set -xe; \
apt-get update; \
apt-get install -y --no-install-recommends \
# We require build-essential and python3-dev to build lz4 on arm64 since there isn't a pre-compiled wheel available
build-essential python3-dev \
python3-pip \
python3-psycopg2 \
python3-setuptools \
@@ -48,6 +50,7 @@ RUN set -xe; \
pip3 install %%PIP_OPTIONS%% --upgrade pip; \
# TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved
pip3 install %%PIP_OPTIONS%% --no-deps -r requirements.txt; \
apt-get remove -y --purge --autoremove build-essential python3-dev; \
rm -rf /var/lib/apt/lists/*;
# Change the uid of postgres to 26

View File

@@ -43,6 +43,8 @@ RUN set -xe; \
RUN set -xe; \
apt-get update; \
apt-get install -y --no-install-recommends \
# We require build-essential and python3-dev to build lz4 on arm64 since there isn't a pre-compiled wheel available
build-essential python3-dev \
python3-pip \
python3-psycopg2 \
python3-setuptools \
@@ -50,6 +52,7 @@ RUN set -xe; \
pip3 install %%PIP_OPTIONS%% --upgrade pip; \
# TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved
pip3 install %%PIP_OPTIONS%% --no-deps -r requirements.txt; \
apt-get remove -y --purge --autoremove build-essential python3-dev; \
rm -rf /var/lib/apt/lists/*;
# Change the uid of postgres to 26