blob: 347cc1e0c510f42ecdef119e3ed1e4bed7556820 [file] [log] [blame]
talasilaf9b06312017-02-16 17:32:52 -05001FROM mariadb:latest
2
st782s21a87612018-01-30 17:29:36 -05003ARG DB_SCRIPT_DIR=${DB_SCRIPT_DIR}
Christopher Lott (cl778h)a9627f82017-07-26 11:49:07 -04004
5# constant
talasilaf9b06312017-02-16 17:32:52 -05006#Add config file
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -04007COPY my.cnf /etc/mysql/my.cnf
talasilaf9b06312017-02-16 17:32:52 -05008
Christopher Lott (cl778h)a9627f82017-07-26 11:49:07 -04009# Scripts are executed in alphabetical order
talasilaf9b06312017-02-16 17:32:52 -050010
st782s21a87612018-01-30 17:29:36 -050011# Portal DDL and DML at v2.1
12COPY ${DB_SCRIPT_DIR}/PortalDDLMySql_2_1_Common.sql /docker-entrypoint-initdb.d/
13COPY ${DB_SCRIPT_DIR}/PortalDDLMySql_2_1_OS.sql /docker-entrypoint-initdb.d/
14COPY ${DB_SCRIPT_DIR}/PortalDMLMySql_2_1_Common.sql /docker-entrypoint-initdb.d/
15COPY ${DB_SCRIPT_DIR}/PortalDMLMySql_2_1_OS.sql /docker-entrypoint-initdb.d/
16# Do not copy the onboarding script here; it's mounted as a volume
talasilaf9b06312017-02-16 17:32:52 -050017
st782s21a87612018-01-30 17:29:36 -050018# SDK App DDL and DML
19COPY ${DB_SCRIPT_DIR}/EcompSdkDDLMySql_1710_Common.sql /docker-entrypoint-initdb.d/
20COPY ${DB_SCRIPT_DIR}/EcompSdkDDLMySql_1710_OS.sql /docker-entrypoint-initdb.d/
21COPY ${DB_SCRIPT_DIR}/EcompSdkDMLMySql_1710_Common.sql /docker-entrypoint-initdb.d/
22COPY ${DB_SCRIPT_DIR}/EcompSdkDMLMySql_1710_OS.sql /docker-entrypoint-initdb.d/