From 591810df468a8e2c59569e701f514bff61203940 Mon Sep 17 00:00:00 2001 From: sebdet Date: Thu, 17 Sep 2020 15:07:23 +0200 Subject: Introduce a new docker for be plugins Introduce a new docker image containing the etsi plugin and potentially others + simplify the process to build backend image + cleaning of unused files Issue-ID: SDC-3289 Signed-off-by: sebdet Change-Id: I82c770b391d169bef3bcc5f5af66e2a24dffb1b4 Signed-off-by: sebdet --- catalog-be-plugins/backend-all-plugins/pom.xml | 119 +++++++++++++++++ .../src/main/docker/backend-all-plugins/Dockerfile | 4 + .../backend-all-plugins-files.xml | 43 ++++++ .../etsi-nfv-nsd-csar-plugin/pom.xml | 146 ++++++--------------- catalog-be-plugins/pom.xml | 28 ++-- 5 files changed, 217 insertions(+), 123 deletions(-) create mode 100644 catalog-be-plugins/backend-all-plugins/pom.xml create mode 100644 catalog-be-plugins/backend-all-plugins/src/main/docker/backend-all-plugins/Dockerfile create mode 100644 catalog-be-plugins/backend-all-plugins/src/main/docker/backend-all-plugins/backend-all-plugins-files.xml (limited to 'catalog-be-plugins') diff --git a/catalog-be-plugins/backend-all-plugins/pom.xml b/catalog-be-plugins/backend-all-plugins/pom.xml new file mode 100644 index 0000000000..f75721f299 --- /dev/null +++ b/catalog-be-plugins/backend-all-plugins/pom.xml @@ -0,0 +1,119 @@ + + + + + catalog-be-plugins + org.openecomp.sdc + 1.7.1-SNAPSHOT + + + pom + 4.0.0 + + backend-all-plugins + + + ${project.version}-STAGING-${maven.build.timestamp} + ${project.version}-STAGING-latest + true + true + true + + + + + docker + + true + false + false + false + false + + + + + + + io.fabric8 + docker-maven-plugin + + ${docker.api.version} + nexus3.onap.org:10001 + true + + + docker + docker + + + + + + onap/sdc-backend-all-plugins + sdc-backend-all-plugins + + try + backend-all-plugins/Dockerfile + + ${docker.tag} + + ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest + + + + backend-all-plugins/backend-all-plugins-files.xml + onap-sdc-backend-all-plugins + + + + + + + + clean-images + pre-clean + + remove + + + + generate-images + install + + build + + + + push-images + deploy + + push + + + + + + + \ No newline at end of file diff --git a/catalog-be-plugins/backend-all-plugins/src/main/docker/backend-all-plugins/Dockerfile b/catalog-be-plugins/backend-all-plugins/src/main/docker/backend-all-plugins/Dockerfile new file mode 100644 index 0000000000..ab42a10418 --- /dev/null +++ b/catalog-be-plugins/backend-all-plugins/src/main/docker/backend-all-plugins/Dockerfile @@ -0,0 +1,4 @@ +FROM onap/sdc-backend:latest + +COPY --chown=jetty:jetty onap-sdc-backend-all-plugins/etsi-nfv-nsd-csar-plugin.jar ${JETTY_BASE}/plugins/ +RUN ls -latr ${JETTY_BASE}/plugins/ \ No newline at end of file diff --git a/catalog-be-plugins/backend-all-plugins/src/main/docker/backend-all-plugins/backend-all-plugins-files.xml b/catalog-be-plugins/backend-all-plugins/src/main/docker/backend-all-plugins/backend-all-plugins-files.xml new file mode 100644 index 0000000000..37b615585b --- /dev/null +++ b/catalog-be-plugins/backend-all-plugins/src/main/docker/backend-all-plugins/backend-all-plugins-files.xml @@ -0,0 +1,43 @@ + + + + sdc-backend-all-plugins-files + + + tar.gz + + false + + + + + + etsi-nfv-nsd-csar-plugin.jar + + ${project.parent.basedir}/etsi-nfv-nsd-csar-plugin/target + + + + + diff --git a/catalog-be-plugins/etsi-nfv-nsd-csar-plugin/pom.xml b/catalog-be-plugins/etsi-nfv-nsd-csar-plugin/pom.xml index e7b5760b69..4acad582fe 100644 --- a/catalog-be-plugins/etsi-nfv-nsd-csar-plugin/pom.xml +++ b/catalog-be-plugins/etsi-nfv-nsd-csar-plugin/pom.xml @@ -19,118 +19,46 @@ --> - - catalog-be-plugins - org.openecomp.sdc - 1.7.1-SNAPSHOT - - 4.0.0 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + + catalog-be-plugins + org.openecomp.sdc + 1.7.1-SNAPSHOT + + 4.0.0 - etsi-nfv-nsd-csar-plugin + etsi-nfv-nsd-csar-plugin - - 2.2 - + + 2.2 + - - - - org.openecomp.sdc - catalog-be - ${project.version} - classes - + + + + org.openecomp.sdc + catalog-be + ${project.version} + classes + - - - org.hamcrest - hamcrest - ${hamcrest.version} - test - - - org.hamcrest - hamcrest-library - ${hamcrest.version} - test - - - - - - docker-staging - - ${project.version}-STAGING-${maven.build.timestamp} - ${project.version}-STAGING-latest - - - - docker - - false - - - - - io.fabric8 - docker-maven-plugin - - 1.23 - nexus3.onap.org:10001 - - - docker - docker - - - - - onap/sdc-catalog-be-plugin/etsi-nfv-nsd-csar - catalog-be-plugin-etsi-nfv-nsd-csar - - try - alpine:3.8 - - artifact - /plugins - - - ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest - ${project.version}-${maven.build.timestamp} - - - - - - - - clean-images - pre-clean - - remove - - - - generate-images - package - - build - - - - push-images - deploy - - push - - - - - - - - + + + org.hamcrest + hamcrest + ${hamcrest.version} + test + + + org.hamcrest + hamcrest-library + ${hamcrest.version} + test + + + + etsi-nfv-nsd-csar-plugin + \ No newline at end of file diff --git a/catalog-be-plugins/pom.xml b/catalog-be-plugins/pom.xml index 0d17de138d..8f518652ad 100644 --- a/catalog-be-plugins/pom.xml +++ b/catalog-be-plugins/pom.xml @@ -19,19 +19,19 @@ --> - - sdc-main - org.openecomp.sdc - 1.7.1-SNAPSHOT - - 4.0.0 - catalog-be-plugins - pom - - - etsi-nfv-nsd-csar-plugin - + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + + sdc-main + org.openecomp.sdc + 1.7.1-SNAPSHOT + + 4.0.0 + catalog-be-plugins + pom + + etsi-nfv-nsd-csar-plugin + backend-all-plugins + \ No newline at end of file -- cgit 1.2.3-korg