From 58a114896230cf78fa5e6031d74e3d3f2110c5b1 Mon Sep 17 00:00:00 2001 From: Dan Timoney Date: Fri, 3 Apr 2020 13:33:28 -0400 Subject: Add env needed by installCerts.py to docker-compose.yml Add env variables needed by installCerts.py script to the docker-compose.yml. Change-Id: I3a61f67c2fbaf7e59aa4b35ec8d80040c2c5b85f Issue-ID: SDNC-1131 Signed-off-by: Dan Timoney (cherry picked from commit 0f6ba0437e778d921c77726c15701adad8f728d9 [formerly 964dcf86d84ad9d06b1034dab627ab1b6de014b3]) Former-commit-id: 5ada540efbe7a804ec6b8b56be9a93e06bf2de92 --- installation/sdnc/src/main/scripts/startODL.sh | 3 +++ installation/src/main/yaml/docker-compose.yml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/installation/sdnc/src/main/scripts/startODL.sh b/installation/sdnc/src/main/scripts/startODL.sh index e043bc04..47388512 100755 --- a/installation/sdnc/src/main/scripts/startODL.sh +++ b/installation/sdnc/src/main/scripts/startODL.sh @@ -173,6 +173,9 @@ fi cp /opt/opendaylight/current/certs/* /tmp cp -r /opt/app/osaaf/local/. /tmp +# Create ODL data log directory (it nornally is created after karaf +# is started, but needs to exist before installCerts.py runs) +mkdir -p /opt/opendaylight/data/log nohup python ${SDNC_BIN}/installCerts.py & exec ${ODL_HOME}/bin/karaf server diff --git a/installation/src/main/yaml/docker-compose.yml b/installation/src/main/yaml/docker-compose.yml index 4e0de9b9..773d0616 100644 --- a/installation/src/main/yaml/docker-compose.yml +++ b/installation/src/main/yaml/docker-compose.yml @@ -59,6 +59,10 @@ services: environment: - MYSQL_ROOT_PASSWORD=openECOMP1.0 - SDNC_CONFIG_DIR=/opt/onap/sdnc/data/properties + - SDNC_BIN=/opt/onap/sdnc/bin + - ODL_CERT_DIR=/tmp + - ODL_ADMIN_USERNAME=admin + - ODL_ADMIN_PASSWORD=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U dns: - ${DNS_IP_ADDR-10.0.100.1} logging: -- cgit 1.2.3-korg