8 ### Building Docker image manually
9 Go to the certServiceClient subfolder and execute following statement (1.0.0-SNAPSHOT is related to a current project.version parameter):
11 docker build --build-arg VERSION=1.0.0-SNAPSHOT -t onap/org.onap.aaf.certservice.aaf-certservice-client .
14 ### Install the package into the local repository
19 ### Building Docker image and install the package into the local repository
21 mvn clean install -P docker
24 ### Running Docker container local
26 docker run --name aaf-certservice-client onap/org.onap.aaf.certservice.aaf-certservice-client
29 ### Running Docker container from nexus
31 docker run --name aaf-certservice-client nexus3.onap.org:10001/onap/org.onap.aaf.certservice.aaf-certservice-client:1.0.0
34 ### Running client as standalone docker container
36 AAFCERT_CLIENT_IMAGE=nexus3.onap.org:10001/onap/org.onap.aaf.certservice.aaf-certservice-client:latest
37 DOCKER_ENV_FILE= <path to envfile>
38 NETWORK_CERT_SERVICE= <docker network of cert service>
40 docker run --env-file $DOCKER_ENV_FILE --network $NETWORK_CERT_SERVICE $AAFCERT_CLIENT_IMAGE
42 Sample Environment file:
50 ORGANIZATION=Linux-Foundation
51 ORGANIZATION_UNIT=ONAP
52 LOCATION=San-Francisco
55 SANS=example.com:example2.com
62 var/log/onap/aaf/certservice-client/certservice-client.log
64 ### Logs in Docker container
66 docker logs aaf-certservice-client
71 1 Invalid client configuration
73 3 Failed key pair generation
74 4 Failed CSR generation
75 5 API return unsuccessful response
76 6 Problem with Http Client connection
77 7 Failed PKCS12 conversion
78 8 Failed Private Key to PEM Encoding