Remove chef package from sdc-onboard-db-init image 21/142021/1 1.14.5
authorFiete Ostkamp <fiete.ostkamp@telekom.de>
Wed, 10 Sep 2025 08:28:13 +0000 (10:28 +0200)
committerFiete Ostkamp <fiete.ostkamp@telekom.de>
Wed, 10 Sep 2025 08:28:13 +0000 (10:28 +0200)
- chef is not used anymore
- cuts image size in half (671MB -> 365MB)
- reduces build time of image from 14 minutes (!!!) to 10 seconds

Issue-ID: SDC-4772
Change-Id: I31cb146d1a17c3684930e0a42af9727cfe68f125
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
openecomp-be/dist/sdc-onboard-db-init-docker/artifacts/Dockerfile

index f700ee7..7a4f9fc 100644 (file)
@@ -16,22 +16,7 @@ RUN apk update &&  \
     echo  '[cql]' > ~/.cassandra/cqlshrc  && \
     echo  'version=3.4.4' >> ~/.cassandra/cqlshrc  && \
     set -ex && \
-    apk add --no-cache \
-        wget \
-        build-base \
-        ruby \
-        ruby-dev \
-        libffi-dev \
-        libxml2-dev && \
-    gem install --no-update-sources \
-        multi_json:1.15.0 \
-        rspec-its:1.3.0 hitimes:1.3.1 public_suffix:4.0.7 multipart-post:2.2.0 etc:1.3.0 bundler:2.3.26 chef:13.8.5 \
-        faraday:2.8.1 minitar:0.12.1 berkshelf:6.3.1 \
-        io-console:0.4.6 \
-        webrick \
-        json \
-        --no-document && \
-    gem cleanup
+    apk add --no-cache wget
 
 USER sdc
 
@@ -43,4 +28,3 @@ COPY --chown=sdc:sdc startup.sh /home/sdc/
 RUN chmod 770 /home/sdc/startup.sh
 
 ENTRYPOINT [ "/home/sdc/startup.sh" ]
-