This patch uses the debian bookworm base image for the kas container. By
that, we can also use the distro version of python3-kconfiglib. In
addition, pip3 on bookworm adds more guards to protect the system from
incompatible global python dependencies. By that, we need to explicitly
tell pip3 install that the way we install kas is safe.
Signed-off-by: Felix Moessbauer <
felix.mo...@siemens.com>
---
Note to the maintainer:
As bookworm is not released yet, I'm thinking about delaying this patch till the release.
However, due to the dpkg zstd issue in debian based distributions we get more and more
pressure to have dpkg >= 1.21 which is only shipped from bookworm on.
Opinions?
Felix
Dockerfile | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index 4c5c14a..0ca1adb 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -21,7 +21,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
-FROM debian:bullseye-slim as kas-base
+FROM debian:bookworm-slim as kas-base
ARG TARGETPLATFORM
ARG DEBIAN_FRONTEND=noninteractive
@@ -31,7 +31,7 @@ RUN apt-get update && \
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 && \
apt-get install --no-install-recommends -y \
python3-pip python3-setuptools python3-wheel python3-yaml python3-distro python3-jsonschema \
- python3-newt python3-colorlog \
+ python3-newt python3-colorlog python3-kconfiglib \
gosu lsb-release file vim less procps tree tar bzip2 zstd pigz lz4 unzip tmux libncurses-dev \
git-lfs mercurial iproute2 ssh-client telnet curl rsync gnupg awscli sudo \
socat bash-completion && \
@@ -41,8 +41,12 @@ RUN apt-get update && \
COPY . /kas
RUN chmod -R o-w /kas
-RUN pip3 --proxy=$https_proxy install --no-deps kconfiglib && \
- pip3 --proxy=$https_proxy install --no-deps /kas && kas --version && \
+RUN pip3 --proxy=$https_proxy install \
+ --no-deps \
+ --no-build-isolation \
+ --break-system-packages \
+ /kas && \
+ kas --version && \
rm -rf $(pip3 cache dir)
RUN ln -s /kas/contrib/oe-git-proxy /usr/bin/
--
2.39.2