summaryrefslogtreecommitdiffstats
path: root/ms/gra/gra-docker/src/main/resources
diff options
context:
space:
mode:
Diffstat (limited to 'ms/gra/gra-docker/src/main/resources')
-rw-r--r--ms/gra/gra-docker/src/main/resources/README-custom-certs.md3
-rw-r--r--ms/gra/gra-docker/src/main/resources/application.properties2
-rw-r--r--ms/gra/gra-docker/src/main/resources/data.sql (renamed from ms/gra/gra-docker/src/main/resources/data-demo.sql)0
-rw-r--r--ms/gra/gra-docker/src/main/resources/dblib.properties2
-rw-r--r--ms/gra/gra-docker/src/main/resources/schema.sql (renamed from ms/gra/gra-docker/src/main/resources/schema-demo.sql)0
-rw-r--r--ms/gra/gra-docker/src/main/resources/startGra.sh2
6 files changed, 7 insertions, 2 deletions
diff --git a/ms/gra/gra-docker/src/main/resources/README-custom-certs.md b/ms/gra/gra-docker/src/main/resources/README-custom-certs.md
new file mode 100644
index 0000000..ac414c1
--- /dev/null
+++ b/ms/gra/gra-docker/src/main/resources/README-custom-certs.md
@@ -0,0 +1,3 @@
+Any .pem files in this directory will be copied to /etc/ssl/certs on the
+docker container and installed prior to running apk. This might be needed,
+for example, for docker builds to work properly behind a corporate firewall.
diff --git a/ms/gra/gra-docker/src/main/resources/application.properties b/ms/gra/gra-docker/src/main/resources/application.properties
index 30f5077..32f86a9 100644
--- a/ms/gra/gra-docker/src/main/resources/application.properties
+++ b/ms/gra/gra-docker/src/main/resources/application.properties
@@ -22,6 +22,8 @@ spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.Im
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
spring.jpa.database=mysql
+spring.sql.init.mode=always
+
cadi.properties.path=${SDNC_CONFIG_DIR}/cadi.properties
swagger-ui.host=${SDNNFT_HOST:localhost}
swagger-ui.title=SDN-NFT: GRA microservice
diff --git a/ms/gra/gra-docker/src/main/resources/data-demo.sql b/ms/gra/gra-docker/src/main/resources/data.sql
index 763d0cb..763d0cb 100644
--- a/ms/gra/gra-docker/src/main/resources/data-demo.sql
+++ b/ms/gra/gra-docker/src/main/resources/data.sql
diff --git a/ms/gra/gra-docker/src/main/resources/dblib.properties b/ms/gra/gra-docker/src/main/resources/dblib.properties
index 5c14341..4c3a6b2 100644
--- a/ms/gra/gra-docker/src/main/resources/dblib.properties
+++ b/ms/gra/gra-docker/src/main/resources/dblib.properties
@@ -23,7 +23,7 @@
org.onap.ccsdk.sli.dbtype=jdbc
org.onap.ccsdk.sli.jdbc.hosts=dbhost
-org.onap.ccsdk.sli.jdbc.url=jdbc:mysql://${MYSQL_DB_HOST}:3306/${MYSQL_DATABASE}
+org.onap.ccsdk.sli.jdbc.url=jdbc:mariadb://${MYSQL_DB_HOST}:3306/${MYSQL_DATABASE}
org.onap.ccsdk.sli.jdbc.driver=org.mariadb.jdbc.Driver
org.onap.ccsdk.sli.jdbc.database=${MYSQL_DATABASE}
org.onap.ccsdk.sli.jdbc.user=${MYSQL_USER}
diff --git a/ms/gra/gra-docker/src/main/resources/schema-demo.sql b/ms/gra/gra-docker/src/main/resources/schema.sql
index ddd3217..ddd3217 100644
--- a/ms/gra/gra-docker/src/main/resources/schema-demo.sql
+++ b/ms/gra/gra-docker/src/main/resources/schema.sql
diff --git a/ms/gra/gra-docker/src/main/resources/startGra.sh b/ms/gra/gra-docker/src/main/resources/startGra.sh
index 66dd721..b9cdec2 100644
--- a/ms/gra/gra-docker/src/main/resources/startGra.sh
+++ b/ms/gra/gra-docker/src/main/resources/startGra.sh
@@ -22,7 +22,7 @@
###
export SDNC_HOME=${SDNC_HOME:-/opt/sdnc/gra}
-export SVCLOGIC_DIR=${SVCLOGIC_DIR:-/opt/sdnc/gra/service-logic/graphs}
+export SVCLOGIC_DIR=${SVCLOGIC_DIR:-/opt/sdnc/gra/svclogic/graphs}
export LOG_PATH=${LOG_PATH:-/var/log/sdnc}
export SDNC_CONFIG_DIR=${SDNC_CONFIG_DIR:-/opt/sdnc/gra/config}
export SVCLOGIC_PROPERTIES=${SVCLOGIC_PROPERTIES:-${SDNC_CONFIG_DIR}/svclogic.properties}