diff options
-rw-r--r-- | .gitreview | 15 | ||||
-rw-r--r-- | certService/Dockerfile | 7 | ||||
-rw-r--r-- | certService/README.md | 13 |
3 files changed, 27 insertions, 8 deletions
@@ -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 + + ``` + |