[POLICY-86] replace openecomp for policy-docker 79/6079/3
authorGuo Ruijing <ruijing.guo@intel.com>
Fri, 21 Jul 2017 12:13:56 +0000 (12:13 +0000)
committerJorge Hernandez <jh1730@att.com>
Mon, 31 Jul 2017 22:08:52 +0000 (17:08 -0500)
Change-Id: I4db534a29c73a3cb2d70655ee54c856b83655fb2
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Signed-off-by: Jorge Hernandez <jh1730@att.com>
README.md
config/pe/base.conf
config/pe/brmsgw.conf
config/pe/console.conf
policy-pe/docker-install.sh
pom.xml

index f0b3937..3d21d17 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-This source repository contains the files for building the OpenECOMP Policy Engine Docker images.
+This source repository contains the files for building the ONAP Policy Engine Docker images.
 
 To build it using Maven 3, first build 'policy-common-modules', 'policy-engine', 'policy-drools-pdp', and 'policy-drools-applications' repositories, and then run: mvn prepare-package. This will pull the installation zip files needed for building the policy-pe and policy-drools Docker images into the target directory.  It will not actually build the docker images; the following additional steps are needed to accomplish this:
 
index f6f3203..f1c25e1 100644 (file)
@@ -3,7 +3,7 @@ POLICY_HOME=/opt/app/policy
 KEYSTORE_PASSWD=PolicyR0ck$
 
 JDBC_DRIVER=org.mariadb.jdbc.Driver
-JDBC_URL=jdbc:mariadb://mariadb:3306/ecomp_sdk?failOverReadOnly=false&autoReconnect=true
+JDBC_URL=jdbc:mariadb://mariadb:3306/onap_sdk?failOverReadOnly=false&autoReconnect=true
 JDBC_LOG_URL=jdbc:mariadb://mariadb:3306/log?failOverReadOnly=false&autoReconnect=true
 JDBC_USER=policy_user
 JDBC_PASSWORD=policy_user
@@ -20,5 +20,5 @@ jmx_fqdn=
 ENVIRONMENT=TEST
 
 #Micro Service Model Properties
-policy_msEcompName=
+policy_msOnapName=
 policy_msPolicyName=
\ No newline at end of file
index bfb12a1..8b884da 100644 (file)
@@ -26,11 +26,11 @@ UEB_TOPIC=PDPD-CONFIGURATION
 UEB_API_KEY=
 UEB_API_SECRET=
 
-groupID=org.openecomp.policy-engine
+groupID=org.onap.policy-engine
 artifactID=drlPDPGroup
-VFW_GROUP_ID=org.openecomp.policy-engine.drools.vFW
+VFW_GROUP_ID=org.onap.policy-engine.drools.vFW
 VFW_ARTIFACT_ID=policy-vFW-rules
-VDNS_GROUP_ID=org.openecomp.policy-engine.drools.vDNS
+VDNS_GROUP_ID=org.onap.policy-engine.drools.vDNS
 VDNS_ARTIFACT_ID=policy-vDNS-rules
 
 
index 8523307..22259f7 100644 (file)
@@ -112,21 +112,21 @@ FW_PROXY=
 FW_PORT=
 
 #SMTP Server Details for Java Mail
-ecomp_smtp_host=
-ecomp_smtp_port=25
-ecomp_smtp_userName=
-ecomp_smtp_password=
-ecomp_smtp_emailExtension=
-ecomp_application_name=
-
-#-----------------------ECOMP-PORTAL-Properties----------------------
-
-ECOMP_REDIRECT_URL=http://portal.api.simpledemo.openecomp.org:8989/ECOMPPORTAL/login.htm
-ECOMP_REST_URL=
-ECOMP_UEB_URL_LIST=
-ECOMP_PORTAL_INBOX_NAME=
-ECOMP_UEB_APP_KEY=
-ECOMP_UEB_APP_SECRET=
-ECOMP_UEB_APP_MAILBOX_NAME=
-APP_DISPLAY_NAME=OpenECOMP Policy
-ECOMP_SHARED_CONTEXT_REST_URL=http://portal.api.simpledemo.openecomp.org:8989/ECOMPPORTAL/context
+onap_smtp_host=
+onap_smtp_port=25
+onap_smtp_userName=
+onap_smtp_password=
+onap_smtp_emailExtension=
+onap_application_name=
+
+#-----------------------ONAP-PORTAL-Properties----------------------
+
+ONAP_REDIRECT_URL=http://portal.api.simpledemo.openecomp.org:8989/ECOMPPORTAL/login.htm
+ONAP_REST_URL=
+ONAP_UEB_URL_LIST=
+ONAP_PORTAL_INBOX_NAME=
+ONAP_UEB_APP_KEY=
+ONAP_UEB_APP_SECRET=
+ONAP_UEB_APP_MAILBOX_NAME=
+APP_DISPLAY_NAME=ONAP Policy
+ONAP_SHARED_CONTEXT_REST_URL=http://portal.api.simpledemo.openecomp.org:8989/ECOMPPORTAL/context
index fa9472f..edce422 100644 (file)
@@ -120,7 +120,7 @@ function tomcat_component() {
                 "${POLICY_HOME}/servers/${COMPONENT_TYPE}/webapps/host-manager"
        
        if [[ ${COMPONENT_TYPE} == console ]]; then
-               install_ecomp_portal_settings
+               install_onap_portal_settings
        fi
 
        return 0
@@ -188,17 +188,17 @@ function configure_component() {
        list_unexpanded_files ${POLICY_HOME}
 }
 
-function install_ecomp_portal_settings() {
-       echo "Install ecomp portal settings"
+function install_onap_portal_settings() {
+       echo "Install onap portal settings"
 
-       # unpack ecomp war file
-       mkdir -p "${POLICY_HOME}"/servers/console/webapps/ecomp
-       cd "${POLICY_HOME}"/servers/console/webapps/ecomp
-       unzip -q ../ecomp.war
+       # unpack onap war file
+       mkdir -p "${POLICY_HOME}"/servers/console/webapps/onap
+       cd "${POLICY_HOME}"/servers/console/webapps/onap
+       unzip -q ../onap.war
        cd ${INSTALL_DIR}
 
        # copy over the configured settings
-       /bin/cp -fr "${POLICY_HOME}"/install/servers/ecomp/* "${POLICY_HOME}/servers/console/webapps/ecomp"
+       /bin/cp -fr "${POLICY_HOME}"/install/servers/onap/* "${POLICY_HOME}/servers/console/webapps/onap"
 }
 
 function check_r_file() {
diff --git a/pom.xml b/pom.xml
index 8115930..e37a4cb 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -1,6 +1,6 @@
 <!--
   ============LICENSE_START=======================================================
-  ECOMP Policy Engine - Docker files
+  ONAP Policy Engine - Docker files
   ================================================================================
   Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
   ================================================================================
        <modelVersion>4.0.0</modelVersion>
 
 
-       <groupId>org.openecomp.policy.docker</groupId>
+       <groupId>org.onap.policy.docker</groupId>
        <artifactId>docker</artifactId>
        <version>1.1.0-SNAPSHOT</version>
        <packaging>pom</packaging>
        <name>Policy Engine - Docker build</name>
-       <description>OpenECOMP Policy Docker Build</description>
+       <description>ONAP Policy Docker Build</description>
 
        <properties>
                <nexusproxy>https://nexus.onap.org</nexusproxy>
        <repositories>
                <repository>
                        <id>ecomp-releases</id>
-                       <name>OpenECOMP Release Repository</name>
+                       <name>ONAP Release Repository</name>
                        <url>${nexusproxy}/${releases.path}</url>
                </repository>
                <repository>
                        <id>ecomp-staging</id>
-                       <name>OpenECOMP Staging Repository</name>
+                       <name>ONAP Staging Repository</name>
                        <url>${nexusproxy}/${staging.path}</url>
                </repository>
                <repository>
                        <id>ecomp-snapshot</id>
-                       <name>OpenECOMP Snapshot Repository</name>
+                       <name>ONAP Snapshot Repository</name>
                        <url>${nexusproxy}/${snapshots.path}</url>
                </repository>
        </repositories>
        <distributionManagement>
                <repository>
                        <id>ecomp-releases</id>
-                       <name>OpenECOMP Release Repository</name>
+                       <name>ONAP Release Repository</name>
                        <url>${nexusproxy}/${releases.path}</url>
                </repository>
                <snapshotRepository>
                        <id>ecomp-snapshots</id>
-                       <name>OpenECOMP Snapshot Repository</name>
+                       <name>ONAP Snapshot Repository</name>
                        <url>${nexusproxy}/${snapshots.path}</url>
                </snapshotRepository>
        </distributionManagement>
@@ -87,7 +87,7 @@
                                                        <overWriteSnapshots>true</overWriteSnapshots>
                                                        <artifactItems>
                                                                <artifactItem>
-                                                                       <groupId>org.openecomp.policy.engine</groupId>
+                                                                       <groupId>org.onap.policy.engine</groupId>
                                                                        <artifactId>install</artifactId>
                                                                        <version>${project.version}</version>
                                                                        <type>zip</type>
                                                        <overWriteSnapshots>true</overWriteSnapshots>
                                                        <artifactItems>
                                                                <artifactItem>
-                                                                       <groupId>org.openecomp.policy.drools-pdp</groupId>
+                                                                       <groupId>org.onap.policy.drools-pdp</groupId>
                                                                        <artifactId>install-drools</artifactId>
                                                                        <version>${project.version}</version>
                                                                        <type>zip</type>