blob: 5b0abd513a9b2bd18f72450c331678d9c97c31de [file] [log] [blame]
talasilaf9b06312017-02-16 17:32:52 -05001FROM mariadb:latest
2
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -04003ARG PORTAL_SCRIPT_DIR=${PORTAL_SCRIPT_DIR}
talasilaf9b06312017-02-16 17:32:52 -05004ARG SDK_SCRIPT_DIR=${SDK_SCRIPT_DIR}
5ARG DBC_SCRIPT_DIR=${DBC_SCRIPT_DIR}
Christopher Lott (cl778h)a9627f82017-07-26 11:49:07 -04006
7# constant
talasilaf9b06312017-02-16 17:32:52 -05008#Add config file
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -04009COPY my.cnf /etc/mysql/my.cnf
talasilaf9b06312017-02-16 17:32:52 -050010#ADD cluster.cnf /etc/mysql/conf.d
11
Christopher Lott (cl778h)a9627f82017-07-26 11:49:07 -040012# Scripts are executed in alphabetical order
talasilaf9b06312017-02-16 17:32:52 -050013
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040014# Portal DDL and DML at 1710
15COPY ${PORTAL_SCRIPT_DIR}/EcompPortalDDLMySql_1710_Common.sql /docker-entrypoint-initdb.d/
16COPY ${PORTAL_SCRIPT_DIR}/EcompPortalDDLMySql_1710_OS.sql /docker-entrypoint-initdb.d/
17COPY ${PORTAL_SCRIPT_DIR}/EcompPortalDMLMySql_1710_Common.sql /docker-entrypoint-initdb.d/
18COPY ${PORTAL_SCRIPT_DIR}/EcompPortalDMLMySql_1710_OS.sql /docker-entrypoint-initdb.d/
19COPY Apps_Users_OnBoarding_Script.sql /docker-entrypoint-initdb.d/EcompPortalDMLMySql_1710_z_apps_users.sql
talasilaf9b06312017-02-16 17:32:52 -050020
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040021# SDK App DDL and DML unchanged since 1707
22COPY ${SDK_SCRIPT_DIR}/EcompSdkDDLMySql_1707_Common.sql /docker-entrypoint-initdb.d/
23COPY ${SDK_SCRIPT_DIR}/EcompSdkDDLMySql_1707_OS.sql /docker-entrypoint-initdb.d/
24COPY ${SDK_SCRIPT_DIR}/EcompSdkDMLMySql_1707_Common.sql /docker-entrypoint-initdb.d/
25COPY ${SDK_SCRIPT_DIR}/EcompSdkDMLMySql_1707_OS.sql /docker-entrypoint-initdb.d/
Christopher Lott (cl778h)a9627f82017-07-26 11:49:07 -040026
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040027# DBC App combined DDL/DML, built by script
28COPY ${DBC_SCRIPT_DIR}/dbca-complete-mysql-1707-os.sql /docker-entrypoint-initdb.d/