From 324ee36fe31763e507b422ab0a88e4230045e205 Mon Sep 17 00:00:00 2001 From: "Timoney, Daniel (dt5972)" Date: Wed, 15 Feb 2017 10:37:53 -0500 Subject: Initial commit for OpenECOMP SDN-C OA&M Change-Id: I7ab579fd0d206bf356f36d52dcdf4f71f1fa2680 Signed-off-by: Timoney, Daniel (dt5972) Former-commit-id: 2a9f0edd09581f907e62ec4689b5ac94dd5382ba --- installation/admportal/pom.xml | 197 ++++++++++++++++++++++ installation/admportal/src/main/docker/Dockerfile | 12 ++ 2 files changed, 209 insertions(+) create mode 100644 installation/admportal/pom.xml create mode 100644 installation/admportal/src/main/docker/Dockerfile (limited to 'installation/admportal') diff --git a/installation/admportal/pom.xml b/installation/admportal/pom.xml new file mode 100644 index 00000000..495a7fdb --- /dev/null +++ b/installation/admportal/pom.xml @@ -0,0 +1,197 @@ + + + + + org.openecomp.sdnc.oam + installation + 1.0.0 + + + 4.0.0 + pom + org.openecomp.sdnc.oam + installation-admportal + 1.0.0 + + Installation - admportal + Creates admportal Docker container + + + ecomp/admportal-sdnc-image + + + + + + + + + io.fabric8 + docker-maven-plugin + 0.16.5 + false + + + + + ${image.name} + + try + ${basedir}/target/docker-stage + ${basedir}/target/docker-stage/Dockerfile + + ${project.version} + latest + + + + + + + + generate-images + generate-sources + + build + + + + + push-images + deploy + + build + push + + + + + + + maven-resources-plugin + 2.6 + + + copy-dockerfile + + copy-resources + + validate + + ${basedir}/target/docker-stage + + + src/main/docker + + Dockerfile + + true + + + + + + copy-properties + + copy-resources + + validate + + ${basedir}/target/docker-stage/opt/openecomp/sdnc/data/properties + + + ../src/main/properties + + *.properties + *.properties.sdnctldb01 + + false + + + + + + + + exec-maven-plugin + org.codehaus.mojo + + + Unzip admportal + generate-sources + + exec + + + /usr/bin/unzip + + -d + ${basedir}/target/docker-stage/opt/openecomp/sdnc + ../../admportal/target/*.zip + + + + + + Copy admportal config + generate-sources + + exec + + + /bin/cp + + ../../admportal/config/admportal.json + ${basedir}/target/docker-stage/opt/openecomp/sdnc/data/properties + + + + + + Copy admportal config1 + generate-sources + + exec + + + /bin/cp + + ../../admportal/config/admportal.log4js.json + ${basedir}/target/docker-stage/opt/openecomp/sdnc/data/properties + + + + + + + change shell permissions + process-sources + + exec + + + /usr/bin/find + + ${basedir}/target/docker-stage/opt/openecomp/sdnc + -name + *.sh + -exec + chmod + +x + {} + ; + + + + + + + + + + + + openECOMP + + diff --git a/installation/admportal/src/main/docker/Dockerfile b/installation/admportal/src/main/docker/Dockerfile new file mode 100644 index 00000000..8facc58b --- /dev/null +++ b/installation/admportal/src/main/docker/Dockerfile @@ -0,0 +1,12 @@ +# Base ubuntu with added packages needed for open ecomp +FROM ecomp/ubuntu-sdnc-image:${project.version} +MAINTAINER SDN-C Team (sdnc@lists.openecomp.org) + +# create link for pm2 +#RUN ln -s /opt/openecomp/sdnc/admportal/node_modules/pm2/bin/pm2 /usr/bin/pm2 + +# copy openecomp +COPY opt /opt + +#ENTRYPOINT exec /opt/openecomp/sdnc/admportal/shell/startssl.sh +EXPOSE 8843 -- cgit 1.2.3-korg