summaryrefslogtreecommitdiffstats
path: root/certServiceClient
diff options
context:
space:
mode:
authorBogumil Zebek <bogumil.zebek@nokia.com>2020-02-20 12:23:07 +0000
committerGerrit Code Review <gerrit@onap.org>2020-02-20 12:23:07 +0000
commit18acead623826c43da43da6d0e55e81e1f2953a1 (patch)
tree0a56e2be3dd6e4a4878989252f9ac5ae37dfc3df /certServiceClient
parent639c40968f329fc6526a35c9fca2817e9cf0faa7 (diff)
parentff9a464df4c96d9573c19516376c5d8ae60cf258 (diff)
Merge "Create fat jar"
Diffstat (limited to 'certServiceClient')
-rw-r--r--certServiceClient/Dockerfile2
-rw-r--r--certServiceClient/pom.xml20
2 files changed, 21 insertions, 1 deletions
diff --git a/certServiceClient/Dockerfile b/certServiceClient/Dockerfile
index 8b2d1700..9da47295 100644
--- a/certServiceClient/Dockerfile
+++ b/certServiceClient/Dockerfile
@@ -10,4 +10,4 @@ USER certServiceClient:certServiceClient
COPY target/aaf-certservice-client-${VERSION}.jar ./opt/onap/aaf/certservice/aaf-certservice-client.jar
-ENTRYPOINT ["echo","================================ THIS IS CERT-SERVICE-CLIENT CONTAINER RUNNING ================================"]
+ENTRYPOINT ["java","-jar","./opt/onap/aaf/certservice/aaf-certservice-client.jar"]
diff --git a/certServiceClient/pom.xml b/certServiceClient/pom.xml
index 7ba9b5ed..f32501bf 100644
--- a/certServiceClient/pom.xml
+++ b/certServiceClient/pom.xml
@@ -87,6 +87,26 @@
</images>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <version>3.2.2</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+ <transformers>
+ <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
+ <mainClass>org.onap.aaf.certservice.client.CertServiceClientApp</mainClass>
+ </transformer>
+ </transformers>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</profile>