user2595
  • Joined on 2024-11-26

pyci-tool (0.0.2)

Published 2025-10-11 17:08:20 +00:00 by user2595

Installation

docker pull git.eulernest.eu/user2595/pyci-tool:0.0.2
sha256:5cb05d6951470bca3972b85bc2e546ef2eb4095b9899616ea2071d62fd1d6c2f

Image Layers

ADD file:28df1cb6a6576d40b5226851d0a6a76ffd5d1c94644ee441490b74a90f29f425 in /
CMD ["bash"]
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV LANG=C.UTF-8
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates netbase tzdata ; rm -rf /var/lib/apt/lists/* # buildkit
ENV GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305
ENV PYTHON_VERSION=3.12.6
RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev gcc gnupg libbluetooth-dev libbz2-dev libc6-dev libdb-dev libexpat1-dev libffi-dev libgdbm-dev liblzma-dev libncursesw5-dev libreadline-dev libsqlite3-dev libssl-dev make tk-dev uuid-dev wget xz-utils zlib1g-dev ; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc"; GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$GPG_KEY"; gpg --batch --verify python.tar.xz.asc python.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME" python.tar.xz.asc; mkdir -p /usr/src/python; tar --extract --directory /usr/src/python --strip-components=1 --file python.tar.xz; rm python.tar.xz; cd /usr/src/python; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --enable-loadable-sqlite-extensions --enable-optimizations --enable-option-checking=fatal --enable-shared --with-lto --with-system-expat --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; LDFLAGS="${LDFLAGS:--Wl},--strip-all"; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" "PROFILE_TASK=${PROFILE_TASK:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:--Wl},-rpath='\$\$ORIGIN/../lib'" "PROFILE_TASK=${PROFILE_TASK:-}" python ; make install; cd /; rm -rf /usr/src/python; find /usr/local -depth \( \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \) \) \) -exec rm -rf '{}' + ; ldconfig; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 --version # buildkit
RUN /bin/sh -c set -eux; for src in idle3 pip3 pydoc3 python3 python3-config; do dst="$(echo "$src" | tr -d 3)"; [ -s "/usr/local/bin/$src" ]; [ ! -e "/usr/local/bin/$dst" ]; ln -svT "$src" "/usr/local/bin/$dst"; done # buildkit
CMD ["python3"]
COPY dir:274b6d47dee925dd8a6e5370a5be6c1b453a2553de61af0f86c9abc8fb5aa6b7 in /usr/local
LABEL maintainer=tarik.moussa@kfw.de
LABEL description=CI Base Image: Python 3.12.6 slim + Node.js 20.11.1, black 24.8.0, isort 5.13.2, flake8 7.0.0, mypy 1.10.0, pytest 8.2.0, coverage 7.6.1, pytest-cov 5.0.0, system tools git 2.39.2-1.1, curl 7.88.1-10+deb12u5, bash, ca-certificates
/bin/sh -c apt-get update && apt-get install -y git curl ca-certificates bash && apt-mark hold git curl ca-certificates && apt-get clean && rm -rf /var/lib/apt/lists/*
/bin/sh -c pip install --no-cache-dir black==24.8.0 isort==5.13.2 flake8==7.0.0 mypy==1.10.0 pytest==8.2.0 pytest-cov==5.0.0 coverage==7.6.1
WORKDIR /workspace
ENV DEBIAN_FRONTEND=noninteractive
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
ENV PYTHONUNBUFFERED=1
ENV PATH=/usr/local/lib/node_modules/.bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
/bin/sh -c python3 --version && node --version && npm --version && git --version

Labels

Key Value
description CI Base Image: Python 3.12.6 slim + Node.js 20.11.1, black 24.8.0, isort 5.13.2, flake8 7.0.0, mypy 1.10.0, pytest 8.2.0, coverage 7.6.1, pytest-cov 5.0.0, system tools git 2.39.2-1.1, curl 7.88.1-10+deb12u5, bash, ca-certificates
maintainer tarik.moussa@kfw.de
Details
Container
2025-10-11 17:08:20 +00:00
1
OCI / Docker
linux/arm64
131 MiB
Versions (2) View all
0.0.2 2025-10-11
0.0.1 2025-10-10