From: Bogumil Zebek Date: Wed, 18 Mar 2020 06:09:48 +0000 (+0100) Subject: CertService local starter X-Git-Tag: 1.0.0~41^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=55061dabd9dd0ca53c8a4cb9fe2ff1d80cf9c3a3;p=oom%2Fplatform%2Fcert-service.git CertService local starter Issue-ID: AAF-1107 Signed-off-by: Zebek Bogumil Change-Id: I7742fa622bd8acf4764137d98cad581781487103 --- diff --git a/certService/Makefile b/certService/Makefile new file mode 100644 index 00000000..b1b63b4d --- /dev/null +++ b/certService/Makefile @@ -0,0 +1,31 @@ +all: build start stop +.PHONY: build + +build: + @echo "##### Build Cert Service images locally #####" + mvn clean install -P docker + @echo "##### DONE #####" +start: + @echo "##### Start Cert Service #####" + docker-compose up -d + @echo "## Configure ejbca ##" + docker exec aafcert-ejbca /opt/primekey/scripts/ejbca-configuration.sh + @echo "##### DONE #####" +stop: + @echo "##### Stop Cert Service #####" + docker-compose down + @echo "##### DONE #####" + + + + + + + + + + + + + + diff --git a/certService/README.md b/certService/README.md index e48dad53..9f23504e 100644 --- a/certService/README.md +++ b/certService/README.md @@ -48,6 +48,8 @@ mvn clean install ### Building Docker image and install the package into local repository ``` mvn clean install -P docker +or +make build ``` ### Running Docker container local @@ -62,9 +64,14 @@ docker run -p 8080:8080 --name aaf-certservice-api --mount type=bind,source=/ cacert.pem } -waitForEjbcaStartUp 30 configureEjbca