From 654c00eaa1865bd29a6d1ca2bb135c45e7e02ae4 Mon Sep 17 00:00:00 2001 From: Marian Neagul Date: Thu, 21 Oct 2021 12:02:58 +0300 Subject: [PATCH 1/2] Switch from the unmaintained dockerfile-maven-version to jib-maven-plugin --- pom.xml | 14 ++++++++ staccato-application/Dockerfile | 11 ------ staccato-application/pom.xml | 61 ++++++++++++--------------------- staccato-collections/pom.xml | 15 +++++++- staccato-commons/pom.xml | 14 +++++++- staccato-community/pom.xml | 15 +++++++- staccato-elasticsearch/pom.xml | 15 +++++++- 7 files changed, 91 insertions(+), 54 deletions(-) delete mode 100644 staccato-application/Dockerfile diff --git a/pom.xml b/pom.xml index 04e418f..6acc079 100644 --- a/pom.xml +++ b/pom.xml @@ -30,6 +30,7 @@ 1.16.0 0.7 1.13 + gcr.io/focus-cargo-315523/staccato:${project.version} @@ -98,6 +99,19 @@ + + + + + + com.google.cloud.tools + jib-maven-plugin + 3.1.4 + + + + + org.springframework.boot diff --git a/staccato-application/Dockerfile b/staccato-application/Dockerfile deleted file mode 100644 index 9420761..0000000 --- a/staccato-application/Dockerfile +++ /dev/null @@ -1,11 +0,0 @@ -FROM amazoncorretto:11.0.7 -MAINTAINER josh@federal.planet.com - -ARG JAR_NAME -ENV JAR_NAME $JAR_NAME - -#COPY target/${JAR_NAME} /${JAR_NAME} -ADD target/${JAR_NAME} /${JAR_NAME} - -ENTRYPOINT ["java", "-jar", "/staccato-1.0.0.jar"] -#ENTRYPOINT java "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005" -jar /$JAR_NAME \ No newline at end of file diff --git a/staccato-application/pom.xml b/staccato-application/pom.xml index 5e423f2..dec24df 100644 --- a/staccato-application/pom.xml +++ b/staccato-application/pom.xml @@ -61,13 +61,13 @@ noggit 0.7 - + org.springframework.boot @@ -115,7 +115,6 @@ - @@ -129,6 +128,21 @@ + + com.google.cloud.tools + jib-maven-plugin + 3.1.4 + + packaged + + gcr.io/focus-cargo-315523/staccato:${project.version} + + + amazoncorretto:11.0.7 + + + + org.apache.maven.plugins @@ -162,37 +176,6 @@ true - - - com.spotify - dockerfile-maven-plugin - ${dockerfile-maven-version} - - - default - - build - push - - - - - - gcr.io/focus-cargo-315523/staccato - ${project.version} - - staccato-${project.version}.jar - - - - - javax.activation - javax.activation-api - 1.2.0 - - - - pl.project13.maven git-commit-id-plugin diff --git a/staccato-collections/pom.xml b/staccato-collections/pom.xml index c1430b9..302ce3e 100644 --- a/staccato-collections/pom.xml +++ b/staccato-collections/pom.xml @@ -24,6 +24,19 @@ 11 + + + + com.google.cloud.tools + jib-maven-plugin + + + true + + + + + @@ -39,4 +52,4 @@ - \ No newline at end of file + diff --git a/staccato-commons/pom.xml b/staccato-commons/pom.xml index 3536926..9707a98 100644 --- a/staccato-commons/pom.xml +++ b/staccato-commons/pom.xml @@ -12,6 +12,18 @@ com.planet.staccato staccato-commons + + + + com.google.cloud.tools + jib-maven-plugin + + + true + + + + org.springframework.boot @@ -51,4 +63,4 @@ - \ No newline at end of file + diff --git a/staccato-community/pom.xml b/staccato-community/pom.xml index 116061c..6cc9c1f 100644 --- a/staccato-community/pom.xml +++ b/staccato-community/pom.xml @@ -27,4 +27,17 @@ ${project.version} - \ No newline at end of file + + + + com.google.cloud.tools + jib-maven-plugin + + + true + + + + + + diff --git a/staccato-elasticsearch/pom.xml b/staccato-elasticsearch/pom.xml index 7552b76..0ccdf5a 100644 --- a/staccato-elasticsearch/pom.xml +++ b/staccato-elasticsearch/pom.xml @@ -16,6 +16,19 @@ 2.5.2 + + + + com.google.cloud.tools + jib-maven-plugin + + + true + + + + + com.planet.staccato @@ -92,4 +105,4 @@ - \ No newline at end of file + From 92afa8c16fff555f05ae3faf841bd076aecc873e Mon Sep 17 00:00:00 2001 From: Marian Neagul Date: Thu, 21 Oct 2021 12:25:58 +0300 Subject: [PATCH 2/2] comment out the global default image --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 6acc079..2ac1cee 100644 --- a/pom.xml +++ b/pom.xml @@ -30,7 +30,7 @@ 1.16.0 0.7 1.13 - gcr.io/focus-cargo-315523/staccato:${project.version} +