8 ### Install the package into the local repository
13 ### Building Docker image and install the package into the local repository
15 mvn clean install -P docker
18 ### Nexus container image
20 nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-truststore-merger:latest
23 ### Running application as standalone docker container
25 Exemplary config.env file with necessary envs
27 TRUSTSTORES_PATHS=/var/certs/truststore.jks:/var/certs/truststore.pem
28 TRUSTSTORES_PASSWORDS_PATHS=/var/certs/truststoreJks.pass:
30 TRUSTSTORES_PATHS env indicates paths (separated by ":") where truststores files are located.
32 TRUSTSTORES_PASSWORDS_PATHS env indicates paths (separated by ":") where files with passwords to truststores are located.
33 PEM is not protected by password so its value should be empty
35 Execute below command in order to run app as docker container
38 --name oom-truststore-merger \
39 --env-file ./config.env \
40 --mount type=bind,src=<src_path>,dst=/var/certs \
41 onap/org.onap.oom.platform.cert-service.oom-truststore-merger:latest
43 Before run replace <src_path> with absolute path where you located truststores to merge (eg. /certs/resources/)
45 Output from merger (when pointed more than one truststore to merge in TRUSTSTORES_PATHS env) success execution should be:
46 1. Created backup file (with .bak ext) of first truststore pointed in TRUSTSTORES_PATHS env
47 2. First truststore pointed in TRUSTSTORES_PATHS env contains merged certificates from all truststores mentioned in TRUSTSTORES_PATHS env
49 Remove docker container:
51 docker rm oom-truststore-merger
58 var/log/onap/oom/truststore-merger/truststore-merger.log
60 ### Logs in Docker container
62 docker logs oom-merger
67 1 Invalid paths in environment variables
68 2 Invalid merger configuration
69 3 Invalid truststore file-password pair
70 4 Cannot read password from file
71 5 Cannot create backup file
72 6 Cannot initialize keystore instance
73 7 Cannot load truststore file
74 8 Cannot operate on truststore data
75 9 Missing truststore certificates in provided file
76 10 Alias conflict detected
77 11 Cannot save truststore file
78 12 Cannot copy keystore file
79 13 Keystore file does not exist
80 99 Application exited abnormally