ud3tn/test/dockerfiles/ci-python-clang
Maximilian Nitsch e8bfdf710e chore: bump ci-python-clang docker base image
- minimum supported version: python:3.10-trixie
- latest release: python:3.14-trixie

Signed-off-by: Maximilian Nitsch <maximilian.nitsch@d3tn.com>
2026-05-20 17:57:53 +02:00

27 lines
1.2 KiB
Text

# Dockerfile for building a Debian-based container with Python, Clang, valgrind,
# cppcheck, and uD3TN's C and Python dependencies for uD3TN's CI
ARG IMAGE=python:3.9-bookworm
FROM $IMAGE
RUN apt-get update && \
apt-get dist-upgrade -y && \
apt-get install -y clang clang-tidy netcat-openbsd cppcheck valgrind sqlite3 libjansson-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY ./pyd3tn/requirements.txt /req-pyd3tn.txt
COPY ./python-ud3tn-utils/requirements.txt /req-utils.txt
COPY ./test/integration/requirements.txt /req-test.txt
COPY ./tools/analysis/requirements.txt /req-analysis.txt
# NOTE: pyd3tn is explicitly installed in `prepare_for_test.sh`; this might
# otherwise install the wrong version (from PyPI) and lead to clashes!
RUN sed -i '/^pyd3tn==/d' /req-utils.txt
RUN python3 -m venv /ud3tn_venv && \
/ud3tn_venv/bin/python -m pip install --no-cache-dir -U setuptools pip wheel && \
/ud3tn_venv/bin/python -m pip install --no-cache-dir -U -r /req-pyd3tn.txt && \
/ud3tn_venv/bin/python -m pip install --no-cache-dir -U -r /req-utils.txt && \
/ud3tn_venv/bin/python -m pip install --no-cache-dir -U -r /req-test.txt && \
/ud3tn_venv/bin/python -m pip install --no-cache-dir -U -r /req-analysis.txt