From: Jorge Hernandez Date: Sun, 17 Mar 2019 05:09:56 +0000 (-0500) Subject: Manually add NSS libraries to images. X-Git-Tag: 3.0.2-ONAP~15 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=951b2903c19c8499cffe9d39ecde0bf0a44c774b;p=policy%2Fapi.git Manually add NSS libraries to images. Alpine OpenJDK was updated 2 days ago (3/14), this upgrade seems to break java applications that depend on libnss*.so OS libraries, which seem are no longer installed with the jdk Added other nice to have basic utilities for debugging to base image. Change-Id: Ia836c15b17836d46cd61d312f514bd6eb9a8c956 Issue-ID: POLICY-1604 Signed-off-by: Jorge Hernandez --- diff --git a/packages/policy-api-docker/src/main/docker/Dockerfile b/packages/policy-api-docker/src/main/docker/Dockerfile index ab419963..d14ebd11 100644 --- a/packages/policy-api-docker/src/main/docker/Dockerfile +++ b/packages/policy-api-docker/src/main/docker/Dockerfile @@ -14,8 +14,8 @@ ENV POLICY_HOME=/opt/app/policy ENV POLICY_API_HOME=${POLICY_HOME}/api RUN \ - apk add --no-cache --update busybox-extras bash zip unzip curl wget \ - openssh maven openjdk8 jq httpie py-pip + apk add --no-cache --update busybox-extras bash nss procps coreutils findutils grep \ + zip unzip curl wget openssh maven openjdk8 jq httpie py-pip RUN addgroup -S policy && \ adduser -S --shell /bin/bash -G policy policy