summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorawudzins <adam.wudzinski@nokia.com>2020-02-04 14:53:39 +0100
committerawudzins <adam.wudzinski@nokia.com>2020-02-04 15:59:03 +0100
commit40d0466c361c02d96295cab1a6118a204b064539 (patch)
tree425d06ad9a5e5c9e2d215be9b9fb69a2ea0ecb3f
parent50f42bd19fe752717823ba9ef1ffe932c47d05f4 (diff)
Add Docker file
Issue-ID: AAF-995 Signed-off-by: Adam Wudzinski <adam.wudzinski@nokia.com> Change-Id: I6bcd59a7eeb41318edfe1845f4ea7f99d97a4ac8
-rw-r--r--.gitreview15
-rw-r--r--certService/Dockerfile7
-rw-r--r--certService/README.md13
3 files changed, 27 insertions, 8 deletions
diff --git a/.gitreview b/.gitreview
index 468b722d..12e1b427 100644
--- a/.gitreview
+++ b/.gitreview
@@ -1,8 +1,7 @@
-
- [gerrit]
- host=gerrit.onap.org
- port=29418
- project=aaf/certservice
- defaultbranch=master
- asd=asdf
- \ No newline at end of file
+[gerrit]
+host=gerrit.onap.org
+port=29418
+project=aaf/certservice
+defaultbranch=master
+asd=asdf
+
diff --git a/certService/Dockerfile b/certService/Dockerfile
new file mode 100644
index 00000000..b6a657a1
--- /dev/null
+++ b/certService/Dockerfile
@@ -0,0 +1,7 @@
+FROM docker.io/openjdk:11-jre-slim
+
+ARG VERSION=0.0.1-SNAPSHOT
+
+COPY target/cert-service-${VERSION}.jar ./app/cert-service.jar
+
+ENTRYPOINT ["java","-jar","./app/cert-service.jar"]
diff --git a/certService/README.md b/certService/README.md
index 63956e28..72660cdc 100644
--- a/certService/README.md
+++ b/certService/README.md
@@ -18,3 +18,16 @@
mvn clean package
```
+
+### Building Docker image
+ ```
+ docker build -t cert-service .
+
+ ```
+
+### Running Docker container
+ ```
+ docker run -p 8080:8080 --name cert-service cert-service
+
+ ```
+