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/designtool/designtool-web/pom.xml | 3 ++- mod/designtool/designtool-web/sh/start.sh | 11 ++--------- 2 files changed, 4 insertions(+), 10 deletions(-) (limited to 'mod/designtool') diff --git a/mod/designtool/designtool-web/pom.xml b/mod/designtool/designtool-web/pom.xml index 8806964..fc24024 100644 --- a/mod/designtool/designtool-web/pom.xml +++ b/mod/designtool/designtool-web/pom.xml @@ -27,6 +27,7 @@ limitations under the License. 1.0.1-SNAPSHOT designtool-web + 1.0.2-SNAPSHOT war dcaegen2-platform-mod-designtool-web @@ -84,7 +85,7 @@ limitations under the License. org.onap.dcaegen2.platform.mod nifi-war-to-jar - ${project.version} + 1.0.1-SNAPSHOT provided diff --git a/mod/designtool/designtool-web/sh/start.sh b/mod/designtool/designtool-web/sh/start.sh index 8658983..b0393de 100755 --- a/mod/designtool/designtool-web/sh/start.sh +++ b/mod/designtool/designtool-web/sh/start.sh @@ -51,16 +51,9 @@ prop_replace 'nifi.web.proxy.context.path' "${NIFI_WEB_PROXY_CO # replace value conditionally if the property name exists otherwise append if grep -q 'nifi.dcae.jars.index.url' $nifi_props_file then - prop_replace 'nifi.dcae.jars.index.url' "${NIFI_DCAE_JARS_INDEX_URL:-http://genprocessor-http/nifi-jars/}" + prop_replace 'nifi.dcae.jars.index.url' "${NIFI_DCAE_JARS_INDEX_URL:-http://genprocessor-http:8080/nifi-jars/}" else - prop_append 'nifi.dcae.jars.index.url' "${NIFI_DCAE_JARS_INDEX_URL:-http://genprocessor-http/nifi-jars/}" -fi - -if grep -q 'nifi.ui.dcae.distibutor.api.url' $nifi_props_file -then - prop_replace 'nifi.ui.dcae.distibutor.api.url' "${NIFI_DCAE_DISTRIBUTOR_API_URL:-http://distributor-api}" -else - prop_append 'nifi.ui.dcae.distibutor.api.url' "${NIFI_DCAE_DISTRIBUTOR_API_URL:-http://distributor-api}" + prop_append 'nifi.dcae.jars.index.url' "${NIFI_DCAE_JARS_INDEX_URL:-http://genprocessor-http:8080/nifi-jars/}" fi . "${scripts_dir}/update_cluster_state_management.sh" -- cgit 1.2.3-korg