Skip to content

Commit 2b44f48

Browse files
authored
Fix: mariadb connectivity (#371)
1 parent 07c6e32 commit 2b44f48

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/build_release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ concurrency:
2424
env:
2525
DOCKER_TARGET_REPO: xirixiz/dsmr-reader-docker
2626
DOCKERFILE: Dockerfile
27-
DOCKER_TARGET_RELEASE: 2025.01.01
27+
DOCKER_TARGET_RELEASE: 2025.01.02
2828

2929
jobs:
3030
################################################

Dockerfile

+8-4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ FROM python:3.11-alpine3.21 as base
2020
# Build arguments
2121
ARG DSMR_VERSION
2222
ENV DSMR_VERSION=${DSMR_VERSION}
23+
ENV LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:$LD_LIBRARY_PATH
2324

2425
# Algemene omgevingsvariabelen
2526
ENV PS1="$(whoami)@dsmr_reader_docker:$(pwd)\\$ " \
@@ -53,13 +54,16 @@ COPY --from=staging /app /app
5354

5455
RUN apk add --no-cache \
5556
bash curl coreutils ca-certificates shadow jq nginx \
56-
openssl postgresql17-client libjpeg-turbo tzdata s6-overlay \
57+
openssl postgresql17-client tzdata \
58+
s6-overlay netcat-openbsd dpkg \
59+
libffi jpeg libjpeg-turbo libpng zlib mariadb-connector-c-dev \
5760
&& echo "**** install build dependencies and pip packages ****" \
5861
&& apk add --no-cache --virtual .build-deps \
59-
gcc python3-dev musl-dev postgresql17-dev build-base \
60-
libffi-dev jpeg-dev rust cargo mariadb-dev \
62+
gcc python3-dev musl-dev postgresql17-dev build-base rust cargo \
63+
libffi-dev jpeg-dev libjpeg-turbo-dev libpng-dev zlib-dev mariadb-dev \
64+
&& python3 -m pip install --no-cache-dir --upgrade pip \
6165
&& python3 -m pip install --no-cache-dir -r /app/dsmrreader/provisioning/requirements/base.txt \
62-
&& python3 -m pip install --no-cache-dir mysqlclient tzupdate \
66+
&& python3 -m pip install --no-cache-dir tzupdate mysqlclient \
6367
&& echo "**** cleanup ****" \
6468
&& apk del .build-deps \
6569
&& rm -rf /var/cache/apk/* /tmp/* /root/.cache

0 commit comments

Comments
 (0)