aboutsummaryrefslogtreecommitdiffstats
path: root/sanitycheck/pnfsimulator-secured/docker-compose-ves.yml
diff options
context:
space:
mode:
authorMichal Banka <michal.banka@nokia.com>2020-06-03 10:51:51 +0200
committerMichal Banka <michal.banka@nokia.com>2020-06-04 13:08:34 +0200
commitb06189e0c1f15237519d3727aeab007fadd952cb (patch)
treeeb9765ace8e647a21cf8ec8eccbebfca53193f58 /sanitycheck/pnfsimulator-secured/docker-compose-ves.yml
parente775c31a8b8efd55796cdf4fa049e72587ea6088 (diff)
Add deployment for fetching certs from CertService
Change-Id: Icb59854a88e83b799781c227e465bfb98ed502b6 Signed-off-by: Michal Banka <michal.banka@nokia.com> Issue-ID: INT-1612
Diffstat (limited to 'sanitycheck/pnfsimulator-secured/docker-compose-ves.yml')
-rw-r--r--sanitycheck/pnfsimulator-secured/docker-compose-ves.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/sanitycheck/pnfsimulator-secured/docker-compose-ves.yml b/sanitycheck/pnfsimulator-secured/docker-compose-ves.yml
new file mode 100644
index 0000000..85e4286
--- /dev/null
+++ b/sanitycheck/pnfsimulator-secured/docker-compose-ves.yml
@@ -0,0 +1,31 @@
+version: '3'
+services:
+ ves:
+ container_name: ves
+ image: nexus3.onap.org:10003/onap/org.onap.dcaegen2.collectors.ves.vescollector:latest
+ ports:
+ - "8082:8080"
+ - "8444:8443"
+ networks:
+ - vesnetwork
+ command: bash -c "
+ rm -f /opt/app/VESCollector/etc/keystore
+ && echo $$(cat /opt/app/VESCollector/etc/trustpasswordfile)
+ && keytool -importkeystore -srckeystore /opt/app/VESCollector/etc/cert.p12 -srcstorepass $$(cat /opt/app/VESCollector/etc/passwordfile) -srcstoretype pkcs12 -destkeystore /opt/app/VESCollector/etc/keystore -deststoretype jks -deststorepass $$(cat /opt/app/VESCollector/etc/passwordfile)
+ && bin/docker-entry.sh
+ "
+ volumes:
+ - ./certservice/client-resources/client-volume/cert.p12:/opt/app/VESCollector/etc/cert.p12
+ - ./certservice/client-resources/client-volume/keystore.pass:/opt/app/VESCollector/etc/passwordfile
+ - ./certservice/client-resources/client-volume/trust.jks:/opt/app/VESCollector/etc/truststore
+ - ./certservice/client-resources/client-volume/truststore.pass:/opt/app/VESCollector/etc/trustpasswordfile
+ onap-dmaap:
+ container_name: dmaap
+ image: dmaap-simulator
+ ports:
+ - "3904:3904"
+ networks:
+ - vesnetwork
+networks:
+ vesnetwork:
+ driver: bridge