aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/dcaegen2-collectors-datafile/dfc-management/dfc-start.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/dcaegen2-collectors-datafile/dfc-management/dfc-start.sh')
-rwxr-xr-xscripts/dcaegen2-collectors-datafile/dfc-management/dfc-start.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/dcaegen2-collectors-datafile/dfc-management/dfc-start.sh b/scripts/dcaegen2-collectors-datafile/dfc-management/dfc-start.sh
index 38b78f2d..b7a595c1 100755
--- a/scripts/dcaegen2-collectors-datafile/dfc-management/dfc-start.sh
+++ b/scripts/dcaegen2-collectors-datafile/dfc-management/dfc-start.sh
@@ -26,6 +26,16 @@ DOCKER_SIM_NWNAME="dfcnet"
echo "Creating docker network $DOCKER_SIM_NWNAME, if needed"
docker network ls | grep $DOCKER_SIM_NWNAME >/dev/null || docker network create $DOCKER_SIM_NWNAME
+if [ $HTTP_TYPE = "HTTPS" ]
+ then
+ docker run \
+ --name oom-certservice-post-processor \
+ --env-file $SIMGROUP_ROOT/../certservice/merger/merge-certs.env \
+ --mount type=bind,src=$SIMGROUP_ROOT/tls,dst=/opt/app/datafile/etc/cert \
+ --mount type=bind,src=$SIMGROUP_ROOT/../certservice/generated-certs/dfc-p12,dst=/opt/app/datafile/etc/ \
+ nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-post-processor:latest
+fi
+
docker-compose up -d
DFC_APP="$(docker ps -q --filter='name=dfc_app0')"