3 ### General description
4 More information about the project and all its functionalities you can find under the wiki page:
6 https://wiki.onap.org/display/DW/AAF+Certification+Service
10 * AAF Cert Service Api is a Spring Boot application
12 Use Google code formatter in your IDE.
13 For IntelliJ use [https://plugins.jetbrains.com/plugin/8527-google-java-format]
14 For other IDEs use []https://github.com/google/google-java-format]
16 ### Local project configuration
17 * Create directory on your system /etc/onap/aaf/certservice
18 * Copy sample configuration test/resources/cmpServers.json to that directory
21 MANDATORY SEE 'Local project configuration' section
26 ### Running Locally with Developer Tools
27 MANDATORY SEE 'Local project configuration' section
29 mvn spring-boot:run -Pdev
37 ### Building Docker image manually
38 Go to the certService subfolder and execute following statement (1.0.0-SNAPSHOT is related to a current project.version parameter):
40 docker build --build-arg VERSION=1.0.0-SNAPSHOT -t onap/org.onap.aaf.certservice.aaf-certservice-api .
43 ### Install the package into the local repository
48 ### Building Docker image and install the package into local repository
50 mvn clean install -P docker
53 ### Running Docker container local
55 docker run -p 8080:8080 --name aaf-certservice-api --mount type=bind,source=/<absolute_path>/cmpServers.json,target=/etc/onap/aaf/certservice/cmpServers.json onap/org.onap.aaf.certservice.aaf-certservice-api
58 ### Running Docker container from nexus
60 docker run -p 8080:8080 --name aaf-certservice-api --mount type=bind,source=/<absolute_path>/cmpServers.json,target=/etc/onap/aaf/certservice/cmpServers.json nexus3.onap.org:10001/onap/org.onap.aaf.certservice.aaf-certservice-api:1.0.0
66 http://<localhost>:8080/actuator/health
71 curl localhost:8080/actuator/health
73 Should return {"status":"UP"}
79 var/log/onap/aaf/certservice/
81 ### Logs in Docker container
83 docker exec -it aaf-certservice-api bash
88 cd /var/log/onap/aaf/certservice
91 audit.log error.log debug.log
94 API is described by Swagger ( OpenAPI 3.0 ) on endpoint /docs
95 ( endpoint is defined in properties as springdoc.swagger-ui.path )
97 http://localchost:8080/docs
101 during project building yaml file with openAPI 3.0 documentation is generated in target directory with name api-docs.yaml
102 file OpenAPI.yaml located in certService directory must be update be hand if needed