aboutsummaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2019-09-12 10:59:15 +0200
committersebdet <sebastien.determe@intl.att.com>2019-09-12 13:01:37 +0200
commitfdfde2175da045760b356548203131480ae9d601 (patch)
treef84d70fae9d558d2646d352a09da7af5b7fe9631 /pom.xml
parent5b410e6f81aaa11c65e6dd2c3b841eed21ee1c38 (diff)
Add scritp for DB
Add scripts to load/save the db + add autogeneration of the test data used by the CSIT Issue-ID: CLAMP-496 Change-Id: I90cc4d1860562c0325038e6b8e900d99b64d201a Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/pom.xml b/pom.xml
index e419c31b2..5d0c767d8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -999,13 +999,16 @@
<hostname>mariadb</hostname>
<volumes>
<bind>
- <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
+ <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d:rw</volume>
<volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
</bind>
</volumes>
<wait>
<log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
<time>600000</time>
+ <exec>
+ <preStop>/docker-entrypoint-initdb.d/dump/backup-data-only.sh</preStop>
+ </exec>
</wait>
<ports>
<port>${docker.mariadb.port.host}:3306</port>