From 8692e8b79a8798bbb770d1995fda3581f22feb3c Mon Sep 17 00:00:00 2001 From: Fiete Ostkamp Date: Wed, 10 Sep 2025 10:28:13 +0200 Subject: [PATCH] Remove chef package from sdc-onboard-db-init image - 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 --- .../sdc-onboard-db-init-docker/artifacts/Dockerfile | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/openecomp-be/dist/sdc-onboard-db-init-docker/artifacts/Dockerfile b/openecomp-be/dist/sdc-onboard-db-init-docker/artifacts/Dockerfile index f700ee7829..7a4f9fc867 100644 --- a/openecomp-be/dist/sdc-onboard-db-init-docker/artifacts/Dockerfile +++ b/openecomp-be/dist/sdc-onboard-db-init-docker/artifacts/Dockerfile @@ -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" ] - -- 2.16.6