From c7728a83a5fea32e6e9481cac034f2207696da52 Mon Sep 17 00:00:00 2001 From: James Robinson Date: Tue, 24 Sep 2024 12:33:24 +0100 Subject: [PATCH 1/3] :bug: Ensure that /app/wheels exists --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 0956658..99bd8d5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,6 +34,7 @@ RUN /root/.local/bin/hatch run pip freeze | grep -v "^-e" > requirements.txt && sed -i "s/psycopg=/psycopg[c]=/g" requirements.txt && \ python -m pip wheel --no-cache-dir --no-binary :all: --wheel-dir /app/repairable -r requirements.txt && \ python -m pip install auditwheel && \ + mkdir -p /app/wheels && \ for WHEEL in /app/repairable/*.whl; do \ auditwheel repair --wheel-dir /app/wheels --plat manylinux_2_34_aarch64 "${WHEEL}" 2> /dev/null || mv "${WHEEL}" /app/wheels/; \ done; From 155ffd3f82f02b4bae6a190cbe0e672c9b7fc935 Mon Sep 17 00:00:00 2001 From: James Robinson Date: Tue, 24 Sep 2024 12:36:41 +0100 Subject: [PATCH 2/3] :bug: Add python-ldap libraries --- .github/workflows/test_code.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_code.yaml b/.github/workflows/test_code.yaml index 3795915..36b96b1 100644 --- a/.github/workflows/test_code.yaml +++ b/.github/workflows/test_code.yaml @@ -8,7 +8,7 @@ on: # yamllint disable-line rule:truthy pull_request: jobs: - test_bash: + test_code: runs-on: ubuntu-latest steps: - name: Checkout code @@ -22,6 +22,12 @@ jobs: - name: Install hatch run: pip install hatch + - name: Install requirements + run: | + sudo apt-get install \ + libldap2-dev \ + libsasl2-dev + - name: Test Python run: hatch run test:all From 7b352dfbb5c0d62f0f604ce28481b7a71a70003c Mon Sep 17 00:00:00 2001 From: James Robinson Date: Tue, 24 Sep 2024 14:03:00 +0100 Subject: [PATCH 3/3] :wrench: Set non-interactive apt frontend --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 99bd8d5..feb5658 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,7 @@ ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 ## Install build prerequisites +ARG DEBIAN_FRONTEND=noninteractive RUN apt-get update && \ apt-get install -y \ dumb-init \