@@ -30,22 +30,24 @@ RUN set -ex ;\
3030# Install tools that are shared by all stages.
3131RUN <<EOF
3232 pkgs=()
33- pkgs+=(build-essential) # Required build tools.
34- pkgs+=(ca-certificates) # Enable TLS verification for HTTPS connections by providing trusted root certificates.
35- pkgs+=(cmake) # Required build tool.
36- pkgs+=(curl) # Dependency for tools requiring downloading data.
37- pkgs+=(git) # Required build tool.
38- pkgs+=(gpg) # Dependency for tools requiring signing or encrypting/decrypting.
39- pkgs+=(jq) # Pretty printing.
40- pkgs+=(ninja-build) # Required build tool.
41- pkgs+=(python3-pip) # Dependency to install Conan.
42- pkgs+=(python-is-python3) # Make python point to python3.
33+ pkgs+=(build-essential) # Required build tools.
34+ pkgs+=(ca-certificates) # Enable TLS verification for HTTPS connections by providing trusted root certificates.
35+ pkgs+=(cmake) # Required build tool.
36+ pkgs+=(curl) # Dependency for tools requiring downloading data.
37+ pkgs+=(git) # Required build tool.
38+ pkgs+=(gpg) # Dependency for tools requiring signing or encrypting/decrypting.
39+ pkgs+=(jq) # Pretty printing.
40+ pkgs+=(ninja-build) # Required build tool.
41+ pkgs+=(pipx) # Package manager for Python applications.
4342 apt install -y "${pkgs[@]}"
4443EOF
4544
4645# Install Conan.
4746ARG CONAN_VERSION=2.17.0
48- RUN pip install conan==${CONAN_VERSION} --break-system-packages
47+ RUN PIPX_HOME=/opt/pipx \
48+ PIPX_BIN_DIR=/usr/bin \
49+ PIPX_MAN_DIR=/usr/share/man \
50+ pipx install conan==${CONAN_VERSION}
4951
5052# Create the user to switch to, once all packages have been installed.
5153ARG NONROOT_USER=ci
0 commit comments