Reduce sdc-cassandra-init (sdc-cs) image size 64/140464/1 master
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Thu, 13 Mar 2025 08:09:42 +0000 (09:09 +0100)
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Thu, 13 Mar 2025 08:09:42 +0000 (09:09 +0100)
- reduce sdc-cassandra-init image size (2.4GB -> 1.9GB)

Issue-ID: SDC-4723
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Change-Id: I2f74e64785f6f6f0d7a927dc55f6468dff688241

asdctool/sdc-cassandra-init/Dockerfile

index dd31cc5..11c3e87 100644 (file)
@@ -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 && \
 
 # 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 && \
     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 && \
     mkdir -p ~/.cassandra/ && \
     echo '[cql]' > ~/.cassandra/cqlshrc && \
     echo 'version=3.4.4' >> ~/.cassandra/cqlshrc && \