diff options
-rwxr-xr-x | deliveries/createMaria.sh | 4 | ||||
-rw-r--r-- | deliveries/os_Dockerfile | 13 | ||||
-rwxr-xr-x | deliveries/os_build_febe.sh | 39 | ||||
-rwxr-xr-x | deliveries/os_settings.sh | 2 | ||||
-rwxr-xr-x | deliveries/run.sh | 5 | ||||
-rw-r--r-- | ecomp-portal-BE-common/pom.xml | 5 | ||||
-rw-r--r-- | ecomp-portal-BE-os/README.md | 2 | ||||
-rw-r--r-- | pom.xml | 19 |
8 files changed, 40 insertions, 49 deletions
diff --git a/deliveries/createMaria.sh b/deliveries/createMaria.sh index 6b70adff..0b3de0b7 100755 --- a/deliveries/createMaria.sh +++ b/deliveries/createMaria.sh @@ -1,7 +1,9 @@ #!/bin/bash +# Stop on errors; show output +set -e -x + source $(dirname $0)/os_settings.sh echo ${SCRIPT_DIR} - docker build -t ecompdb:portal --build-arg SCRIPT_DIR="${SCRIPT_DIR}" --build-arg SDK_SCRIPT_DIR="${SDK_SCRIPT_DIR}" --build-arg DBC_SCRIPT_DIR="${DBC_SCRIPT_DIR}" --build-arg SCRIPT_COMMON_DIR="${SCRIPT_COMMON_DIR}" --build-arg SDK_COMMON_SCRIPT_DIR="${SDK_COMMON_SCRIPT_DIR}" --build-arg DBC_COMMON_SCRIPT_DIR="${DBC_COMMON_SCRIPT_DIR}" -f ./Dockerfile.mariadb . diff --git a/deliveries/os_Dockerfile b/deliveries/os_Dockerfile index 36ecd85f..d4bfeda2 100644 --- a/deliveries/os_Dockerfile +++ b/deliveries/os_Dockerfile @@ -55,17 +55,18 @@ ARG PORTAL_SDK_DIR=${PORTAL_SDK_DIR} ARG PORTAL_DBC_DIR=${PORTAL_DBC_DIR} # Set up variables: ENV TOMCATHOME /opt/apache-tomcat-8.0.37 -ENV SDKHOME /PROJECT/APPS/ECOMPPORTAL/ECOMPPORTALAPP +ENV PORTALHOME /PROJECT/APPS/ECOMPPORTAL/ECOMPPORTALAPP ENV PORTALSDKHOME /PROJECT/APPS/ECOMPPORTAL/ECOMPSDKAPP ENV PORTALDBCHOME /PROJECT/APPS/ECOMPPORTAL/ECOMPDBCAPP # Install Common Software,Git,Apache -RUN mkdir -p $SDKHOME && mkdir -p $PORTALSDKHOME && mkdir -p $PORTALDBCHOME +RUN mkdir -p $PORTALHOME && mkdir -p $PORTALSDKHOME && mkdir -p $PORTALDBCHOME -COPY ${SDK_DIR} ${SDKHOME}/ +COPY ${SDK_DIR} ${PORTALHOME}/ +# step 33 COPY ${PORTAL_SDK_DIR} ${PORTALSDKHOME}/ COPY ${PORTAL_DBC_DIR} ${PORTALDBCHOME}/ -RUN ln -s ${SDKHOME} ${TOMCATHOME}/webapps/ECOMPPORTAL && ln -s ${PORTALSDKHOME} ${TOMCATHOME}/webapps/ECOMPSDKAPP && ln -s ${PORTALDBCHOME} ${TOMCATHOME}/webapps/ECOMPDBCAPP +RUN ln -s ${PORTALHOME} ${TOMCATHOME}/webapps/ECOMPPORTAL && ln -s ${PORTALSDKHOME} ${TOMCATHOME}/webapps/ECOMPSDKAPP && ln -s ${PORTALDBCHOME} ${TOMCATHOME}/webapps/ECOMPDBCAPP # Define working directory. @@ -75,9 +76,9 @@ VOLUME ${TOMCATHOME}/logs ENV PATH $PATH:$JAVA_HOME/bin:${TOMCATHOME}/bin COPY configure-and-run.sh /PROJECT/OpenSource/UbuntuEP/ -#RUN cp -r ${FE_DIR}/dist/public ${SDKHOME}/public +#RUN cp -r ${FE_DIR}/dist/public ${PORTALHOME}/public -COPY ${FE_DIR}/dist/public ${SDKHOME} +COPY ${FE_DIR}/dist/public ${PORTALHOME} # Define default command. #CMD ["bash"] CMD ["/PROJECT/OpenSource/UbuntuEP/configure-and-run.sh"] diff --git a/deliveries/os_build_febe.sh b/deliveries/os_build_febe.sh index 64e166c3..18cfc374 100755 --- a/deliveries/os_build_febe.sh +++ b/deliveries/os_build_febe.sh @@ -1,13 +1,14 @@ #!/bin/bash +# Stop on error; show output +set -e -x source $(dirname $0)/os_settings.sh # Use -B for batch operation to skip download progress output export MVN="${MVN} -gs ${GLOBAL_SETTINGS_FILE} -s ${SETTINGS_FILE} -B" - +#MVN=mvn CURRENTDIR="$(pwd)" - # install ecomp portal rm -rf $CURRENTDIR/$WORKINGDIR mkdir $CURRENTDIR/$WORKINGDIR @@ -24,64 +25,42 @@ cd $CURRENTDIR cd .. cp -r ecomp-portal-FE-common $PROJECTDIR/ecomp-portal-FE-common -cp -r ecomp-portal-FE-os $PROJECTDIR/ecomp-portal-FE-os +cp -r ecomp-portal-FE-os $PROJECTDIR/ecomp-portal-FE-os cp -r ecomp-portal-BE-common $PROJECTDIR/ecomp-portal-BE-common -cp -r ecomp-portal-BE-os $PROJECTDIR/ecomp-portal-BE-os +cp -r ecomp-portal-BE-os $PROJECTDIR/ecomp-portal-BE-os cp -r ecomp-portal-DB-common $PROJECTDIR/ecomp-portal-DB-common -cp -r ecomp-portal-DB-os $PROJECTDIR/ecomp-portal-DB-os - -cp -r ecompsdkos/ecomp-sdk $PROJECTDIR/ecomp-sdk - -#!/bin/bash -shopt -s expand_aliases -source ~/.bashrc - +cp -r ecomp-portal-DB-os $PROJECTDIR/ecomp-portal-DB-os +cp -r ecompsdkos/ecomp-sdk $PROJECTDIR/ecomp-sdk cd $PROJECTDIR/ecomp-portal-BE-common - ${MVN} install - cd $PROJECTDIR/ecomp-portal-BE-os - -${MVN} install - - -# now install sdk app -cd $PROJECTDIR/ecomp-sdk/epsdk-app-os - ${MVN} install cd $PROJECTDIR/ecomp-portal-FE-os/ - ${MVN} install -mv target/epsdk-app-os target/ep-sdk-app +cd $PROJECTDIR/ecomp-sdk/epsdk-app-os +${MVN} install # now install DBC app cd $SOURCEDIR DBCDIR=$SOURCEDIR/ST_DBPA mkdir $DBCDIR - #copy DBC project cd $CURRENTDIR cd .. - cp -r dmaapbc/dcae_dmaapbc_webapp $DBCDIR/dcae_dmaapbc_webapp - cd $DBCDIR/dcae_dmaapbc_webapp - ${MVN} install - cd dbca-os/target - mv dmaap-bc-app-os-1.1.0-SNAPSHOT ep-dbc-app # Build complete database script in the "OS" script area cd ../db-scripts cat dbca-create-mysql-1707-os.sql ../../dbca-common/db-scripts/dbca-ddl-mysql-1707-common.sql dbca-dml-mysql-1707-os.sql > dbca-complete-mysql-1707-os.sql - # install into docker cd $CURRENTDIR diff --git a/deliveries/os_settings.sh b/deliveries/os_settings.sh index 0ad53fdc..68d3db80 100755 --- a/deliveries/os_settings.sh +++ b/deliveries/os_settings.sh @@ -12,5 +12,5 @@ SDK_COMMON_SCRIPT_DIR=PROJECT/Source/ecomp-portal-core/ecomp-sdk/epsdk-app-commo SDK_SCRIPT_DIR=PROJECT/Source/ecomp-portal-core/ecomp-sdk/epsdk-app-os/db-scripts DBC_COMMON_SCRIPT_DIR=PROJECT/Source/ST_DBPA/dcae_dmaapbc_webapp/dbca-common/db-scripts DBC_SCRIPT_DIR=PROJECT/Source/ST_DBPA/dcae_dmaapbc_webapp/dbca-os/db-scripts -PORTAL_SDK_DIR=PROJECT/Source/ecomp-portal-core/ecomp-sdk/epsdk-app-os/target/ep-sdk-app +PORTAL_SDK_DIR=PROJECT/Source/ecomp-portal-core/ecomp-sdk/epsdk-app-os/target/epsdk-app-os PORTAL_DBC_DIR=PROJECT/Source/ST_DBPA/dcae_dmaapbc_webapp/dbca-os/target/ep-dbc-app diff --git a/deliveries/run.sh b/deliveries/run.sh index 92cf1b9c..ff214161 100755 --- a/deliveries/run.sh +++ b/deliveries/run.sh @@ -1,5 +1,6 @@ #!/bin/bash - +# Stop on errors; show output +set -e -x ./os_build_febe.sh ./createMaria.sh -docker images
\ No newline at end of file +docker images diff --git a/ecomp-portal-BE-common/pom.xml b/ecomp-portal-BE-common/pom.xml index 021310d7..7f8da046 100644 --- a/ecomp-portal-BE-common/pom.xml +++ b/ecomp-portal-BE-common/pom.xml @@ -427,11 +427,6 @@ <artifactId>commons-lang</artifactId> <version>2.6</version> </dependency> - <dependency> - <groupId>jfree</groupId> - <artifactId>jfreechart</artifactId> - <version>1.0.13</version> - </dependency> <!-- for generating excel/csv/excelx --> <dependency> <groupId>org.apache.poi</groupId> diff --git a/ecomp-portal-BE-os/README.md b/ecomp-portal-BE-os/README.md index 6464c276..ee765c72 100644 --- a/ecomp-portal-BE-os/README.md +++ b/ecomp-portal-BE-os/README.md @@ -17,6 +17,8 @@ https://www.eclipse.org/m2e-wtp/ Version 1.1.0, July 2017 - [Portal-7] Improvements added as part of the rebasing process - [Portal-6] Updates to License and Trademark in the PORTAL Source Code +- [PORTAL-17] Remove jfree related items + Version 1.0.0, February 2017 - Initial release @@ -3,21 +3,32 @@ <modelVersion>4.0.0</modelVersion> <groupId>org.openecomp.portal</groupId> - <artifactId>ecompportal</artifactId> + <artifactId>ecompportal-parent-project</artifactId> <version>0</version> <packaging>pom</packaging> - <name>ECOMP Portal maven parent project</name> <modules> <!-- Child modules do NOT name this parent. --> <!-- Defined for build convenience only! --> - <!-- BE --> + <!-- This POM names only ONAP projects --> <module>ecomp-portal-BE-common</module> <module>ecomp-portal-BE-os</module> <module>ecomp-portal-BE-common-test</module> <module>ecomp-portal-FE-os</module> - </modules> + <build> + <plugins> + <!-- No deployment step for this project --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-deploy-plugin</artifactId> + <version>2.8</version> + <configuration> + <skip>true</skip> + </configuration> + </plugin> + </plugins> + </build> </project> |