From d8d4f0f514997bb0bc69bf470d2b8fddc3af40aa Mon Sep 17 00:00:00 2001 From: Fiete Ostkamp Date: Thu, 13 Mar 2025 09:09:42 +0100 Subject: [PATCH] Reduce sdc-cassandra-init (sdc-cs) image size - reduce sdc-cassandra-init image size (2.4GB -> 1.9GB) Issue-ID: SDC-4723 Signed-off-by: Fiete Ostkamp Change-Id: I2f74e64785f6f6f0d7a927dc55f6468dff688241 --- asdctool/sdc-cassandra-init/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asdctool/sdc-cassandra-init/Dockerfile b/asdctool/sdc-cassandra-init/Dockerfile index dd31cc5f4c..11c3e87bc7 100644 --- a/asdctool/sdc-cassandra-init/Dockerfile +++ b/asdctool/sdc-cassandra-init/Dockerfile @@ -1,4 +1,4 @@ -FROM onap/policy-jdk-debian:2.0.2 +FROM eclipse-temurin:11-jre-jammy # Create a new group and user RUN addgroup sdc && \ @@ -18,7 +18,7 @@ RUN apt-get update --allow-releaseinfo-change && \ apt-get purge python* -y && \ apt-get install -y python3-pip && \ python3 -m pip install --upgrade pip && \ - pip3 install cqlsh==6.1.0 && \ + pip3 install --no-cache-dir cqlsh==6.1.0 && \ mkdir -p ~/.cassandra/ && \ echo '[cql]' > ~/.cassandra/cqlshrc && \ echo 'version=3.4.4' >> ~/.cassandra/cqlshrc && \ -- 2.16.6