aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be
diff options
context:
space:
mode:
authorbenzelleroehr <ben.zelleroehr@telekom.de>2024-10-24 13:01:57 +0200
committerBen Zellerohr <ben.zelleroehr@telekom.de>2024-10-31 07:41:19 +0000
commit44486275065ccb7ef4661c30bcfd491ffc0c21f6 (patch)
treedc2376447d0cc4ece26b3667251d067d07551fc9 /openecomp-be
parent94669d880eca8f50eb45592f1b2b9d246e171216 (diff)
catalog-be docker build is failing due to ruby dependency conflictHEADmaster
- update chef to 14.15.6 - update berkshelf to 7.0.10 - update dependencies for chef and berkshelf - pin cheerio to version 1.0.0-rc.12 Issue-ID: SDC-4691 Change-Id: I414688b9a3555fc8986b30c54faa5dea492ac7a8 Signed-off-by: benzelleroehr <ben.zelleroehr@telekom.de>
Diffstat (limited to 'openecomp-be')
-rw-r--r--openecomp-be/dist/sdc-onboard-backend-docker/artifacts/Dockerfile14
-rw-r--r--openecomp-be/dist/sdc-onboard-db-init-docker/artifacts/Dockerfile32
2 files changed, 27 insertions, 19 deletions
diff --git a/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/Dockerfile b/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/Dockerfile
index 9fb9c4ee53..5eb711fa78 100644
--- a/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/Dockerfile
+++ b/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/Dockerfile
@@ -12,11 +12,15 @@ RUN set -ex && \
ruby \
ruby-dev \
libffi-dev \
- libxml2-dev \
- libressl-dev && \
- gem install --no-update-sources public_suffix:4.0.7 multipart-post:2.2.0 etc:1.3.0 bundler:2.3.26 chef:13.8.5 berkshelf:6.3.1 io-console:0.4.6 webrick --no-document && \
- gem cleanup && \
- apk update
+ libxml2-dev && \
+ gem install --no-update-sources \
+ public_suffix:5.1.1 multipart-post:2.4.1 etc:1.4.3 bundler:2.4.22 chef:14.15.6 \
+ faraday:2.8.1 minitar:0.12.1 berkshelf:7.0.10 \
+ io-console:0.7.2 \
+ webrick \
+ json \
+ --no-document && \
+ gem cleanup
ENV JETTY_HOME=$JETTY_FOLDER
ENV JETTY_BASE=$JETTY_FOLDER
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 81594ca3da..4f73e9e3fd 100644
--- a/openecomp-be/dist/sdc-onboard-db-init-docker/artifacts/Dockerfile
+++ b/openecomp-be/dist/sdc-onboard-db-init-docker/artifacts/Dockerfile
@@ -1,5 +1,6 @@
-FROM onap/policy-jdk-debian:2.0.2
+FROM onap/policy-jdk-alpine:2.4.4
+USER root
RUN addgroup sdc
RUN adduser --gecos "sdc sdc,1,1,1" --disabled-password --ingroup sdc --shell /bin/sh sdc
USER sdc
@@ -8,25 +9,28 @@ RUN mkdir ~/.cassandra/ && \
echo 'version=3.4.4' >> ~/.cassandra/cqlshrc
USER root
-RUN apt-get update --allow-releaseinfo-change && \
- apt-get purge python* -y && \
- apt-get install -y python3-pip && \
+RUN apk update && \
python3 -m pip install --upgrade pip && \
pip3 install cqlsh==6.1.0 && \
mkdir ~/.cassandra/ && \
echo '[cql]' > ~/.cassandra/cqlshrc && \
echo 'version=3.4.4' >> ~/.cassandra/cqlshrc && \
set -ex && \
- apt-get install -y \
- make \
- gcc \
- ruby \
- ruby-dev \
- libffi-dev \
- libxml2-dev && \
- gem install --no-update-sources public_suffix:4.0.7 multipart-post:2.2.0 etc:1.3.0 bundler:2.3.26 chef:13.8.5 berkshelf:6.3.1 io-console:0.4.6 webrick --no-document && \
- apt-get update -y && apt-get remove bash -y --allow-remove-essential && \
- apt-get install -y binutils && apt-get clean && gem cleanup
+ apk add --no-cache \
+ wget \
+ build-base \
+ ruby \
+ ruby-dev \
+ libffi-dev \
+ libxml2-dev && \
+ gem install --no-update-sources \
+ public_suffix:5.1.1 multipart-post:2.4.1 etc:1.4.3 bundler:2.4.22 chef:14.15.6 \
+ faraday:2.8.1 minitar:0.12.1 berkshelf:7.0.10 \
+ io-console:0.7.2 \
+ webrick \
+ json \
+ --no-document && \
+ gem cleanup
USER sdc