From f6a8a8322d09d5f6012167d298dea6f0471cb82c Mon Sep 17 00:00:00 2001 From: Andrew Gauld Date: Fri, 27 Mar 2020 15:30:36 +0000 Subject: Update images to run as non-root Images updated and the new versions are: adapter.acumos:1.0.2 mod.distributorapi:1.0.1 mod.onboardingapi:2.12.1 mod.designtool-web:1.0.2 mod.genprocessor-job:1.0.1 mod.genprocessor-http:1.0.1 mod.runtime-web:1.0.2 Note: image names all start with "onap/org.onap.dcaegen2.platform." designtool-web was already running as a non-root user. The others have been changed to create user "dcaemod" and run as that user. The listen port numbers on mod.distributorapi, mod.onboardingapi, and mod.genprocessor-http are changed from 80 to 8080. URLs in designtool-web, distributorapi, and genprocessor-job are adjusted to reflect the new port numbers. Change-Id: I510122952666c21cb92f3f64552e99d50af7c355 Issue-ID: DCAEGEN2-2170 Signed-off-by: Andrew Gauld --- mod/genprocessor/pom.xml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'mod/genprocessor/pom.xml') diff --git a/mod/genprocessor/pom.xml b/mod/genprocessor/pom.xml index 6afc9de..ccc1ce3 100644 --- a/mod/genprocessor/pom.xml +++ b/mod/genprocessor/pom.xml @@ -26,7 +26,7 @@ limitations under the License. org.onap.dcaegen2.platform.mod genprocessor - 1.0.0 + 1.0.1-SNAPSHOT dcaegen2-platform-mod-genprocessor UTF-8 @@ -139,6 +139,10 @@ limitations under the License. + + groupadd -g 1000 dcaemod && useradd --shell /bin/bash -u 1000 -g 1000 -m dcaemod + + dcaemod nginx @@ -161,12 +165,16 @@ limitations under the License. artifact-with-dependencies + + groupadd -g 1000 dcaemod && useradd --shell /bin/bash -u 1000 -g 1000 -m dcaemod && mkdir -p /work && chown dcaemod:dcaemod /work + /maven /work - http://onboarding-api/onboarding + http://onboarding-api:8080/onboarding 10 + dcaemod java -- cgit 1.2.3-korg