summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--certService/Dockerfile6
-rw-r--r--certService/pom.xml10
2 files changed, 9 insertions, 7 deletions
diff --git a/certService/Dockerfile b/certService/Dockerfile
index 5bd6b18e..ff8a4224 100644
--- a/certService/Dockerfile
+++ b/certService/Dockerfile
@@ -1,6 +1,6 @@
FROM docker.io/openjdk:11-jre-slim
-ARG VERSION=1.0.0-SNAPSHOT
+ARG VERSION=${project.version}
RUN groupadd certService && useradd -g certService certService
@@ -8,6 +8,6 @@ RUN chown -R certService:certService /var/log
USER certService:certService
-COPY target/cert-service-${VERSION}.jar ./opt/onap/aaf/certservice/cert-service.jar
+COPY target/aaf-certservice-api-${VERSION}.jar ./opt/onap/aaf/certservice/aaf-certservice-api.jar
-ENTRYPOINT ["java","-jar","./opt/onap/aaf/certservice/cert-service.jar"]
+ENTRYPOINT ["java","-jar","./opt/onap/aaf/certservice/aaf-certservice-api.jar"]
diff --git a/certService/pom.xml b/certService/pom.xml
index 393d3bc4..194e2ae4 100644
--- a/certService/pom.xml
+++ b/certService/pom.xml
@@ -42,6 +42,8 @@
<docker.tag>${project.version}</docker.tag>
<springdoc-openapi-maven-plugin.apiDocsUrl>http://localhost:8080/v3/api-docs
</springdoc-openapi-maven-plugin.apiDocsUrl>
+ <docker-maven-plugin.image-name>onap/${project.artifactId}</docker-maven-plugin.image-name>
+ <springdoc-openapi-maven-plugin.version>0.2</springdoc-openapi-maven-plugin.version>
</properties>
<dependencyManagement>
@@ -190,7 +192,7 @@
<plugin>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-maven-plugin</artifactId>
- <version>0.2</version>
+ <version>${springdoc-openapi-maven-plugin.version}</version>
<executions>
<execution>
<phase>integration-test</phase>
@@ -237,7 +239,7 @@
</goals>
<configuration>
<removeAll>true</removeAll>
- <image>onap/cert-service</image>
+ <image>${docker-maven-plugin.image-name}</image>
</configuration>
</execution>
<execution>
@@ -269,7 +271,7 @@
<goal>push</goal>
</goals>
<configuration>
- <image>onap/cert-service</image>
+ <image>${docker-maven-plugin.image-name}</image>
</configuration>
</execution>
</executions>
@@ -284,7 +286,7 @@
</authConfig>
<images>
<image>
- <name>onap/cert-service</name>
+ <name>${docker-maven-plugin.image-name}</name>
<alias>cert-service</alias>
<build>
<dockerFile>${project.basedir}/Dockerfile</dockerFile >