3737RUN <<EOF
3838pkgs=()
3939pkgs+=(ca-certificates) # Enable TLS verification for HTTPS connections by providing trusted root certificates.
40- pkgs+=(cmake) # Required build tool.
4140pkgs+=(curl) # Dependency for tools requiring downloading data.
4241pkgs+=(dpkg-dev) # Required packaging tool.
42+ pkgs+=(debhelper) # Required packaging tool.
4343pkgs+=(file) # Required packaging tool.
4444pkgs+=(git) # Required build tool.
4545pkgs+=(gpg) # Dependency for tools requiring signing or encrypting/decrypting.
4646pkgs+=(gpg-agent) # Dependency for tools requiring signing or encrypting/decrypting.
4747pkgs+=(jq) # JSON manipulation.
4848pkgs+=(libc6-dev) # Required build tool.
4949pkgs+=(ninja-build) # Required build tool.
50- pkgs+=(pipx ) # Package manager for Python applications .
51- pkgs+=(python3-jinja2 ) # Required build tool .
50+ pkgs+=(python3-venv ) # Python environment management tool .
51+ pkgs+=(python3-pip ) # Package manager for Python applications .
5252pkgs+=(vim) # Text editor.
5353pkgs+=(wget) # Required build tool.
5454apt-get update
6060# Install Python-based tools.
6161ARG CONAN_VERSION
6262ARG GCOVR_VERSION
63- ENV PIPX_HOME=/opt/pipx \
64- PIPX_BIN_DIR=/usr/bin \
65- PIPX_MAN_DIR=/usr/share/man
66- RUN pipx install --pip-args='--no-cache' conan==${CONAN_VERSION} && \
67- pipx install --pip-args='--no-cache' gcovr==${GCOVR_VERSION}
63+ ARG CMAKE_VERSION
64+
65+ ENV VIRTUAL_ENV=/opt/venv
66+ RUN python3 -m venv ${VIRTUAL_ENV}
67+ ENV PATH=${VIRTUAL_ENV}/bin:${PATH}
68+ RUN pip install --no-cache \
69+ conan==${CONAN_VERSION} \
70+ gcovr==${GCOVR_VERSION} \
71+ cmake==${CMAKE_VERSION}
6872
6973# ====================== GCC IMAGE ======================
7074FROM base AS gcc
@@ -83,6 +87,13 @@ ldconfig -v
8387dpkg-divert --divert /usr/bin/gcc.orig --rename /usr/bin/gcc
8488dpkg-divert --divert /usr/bin/g++.orig --rename /usr/bin/g++
8589dpkg-divert --divert /usr/bin/gfortran.orig --rename /usr/bin/gfortran
90+ dpkg-divert --divert /usr/bin/gcc-ar.orig --rename /usr/bin/gcc-ar
91+ dpkg-divert --divert /usr/bin/gcc-nm.orig --rename /usr/bin/gcc-nm
92+ dpkg-divert --divert /usr/bin/gcc-ranlib.orig --rename /usr/bin/gcc-ranlib
93+ dpkg-divert --divert /usr/bin/gcov.orig --rename /usr/bin/gcov
94+ dpkg-divert --divert /usr/bin/gcov-tool.orig --rename /usr/bin/gcov-tool
95+ dpkg-divert --divert /usr/bin/gcov-dump.orig --rename /usr/bin/gcov-dump
96+ dpkg-divert --divert /usr/bin/lto-dump.orig --rename /usr/bin/lto-dump
8697update-alternatives \
8798 --install /usr/bin/cc cc /usr/local/bin/gcc 999
8899update-alternatives \
0 commit comments