3 ARG DB_SCRIPT_DIR=${DB_SCRIPT_DIR}
7 COPY my.cnf /etc/mysql/my.cnf
9 # mysql user and group already created by mariadb image
14 RUN mkdir /opt/$user && chown -R $user:$group /opt/$user
16 # Scripts are executed in alphabetical order
18 # Portal DDL and DML at v3.3
19 COPY ${DB_SCRIPT_DIR}/PortalDDLMySql_3_3_Common.sql /docker-entrypoint-initdb.d/
20 COPY ${DB_SCRIPT_DIR}/PortalDDLMySql_3_3_OS.sql /docker-entrypoint-initdb.d/
21 COPY ${DB_SCRIPT_DIR}/PortalDMLMySql_3_3_Common.sql /docker-entrypoint-initdb.d/
22 COPY ${DB_SCRIPT_DIR}/PortalDMLMySql_3_3_OS.sql /docker-entrypoint-initdb.d/
23 # Do not copy the onboarding script here; it's mounted as a volume
26 COPY ${DB_SCRIPT_DIR}/EcompSdkDDLMySql_3_3_Common.sql /docker-entrypoint-initdb.d/
27 COPY ${DB_SCRIPT_DIR}/EcompSdkDDLMySql_3_3_OS.sql /docker-entrypoint-initdb.d/
28 COPY ${DB_SCRIPT_DIR}/EcompSdkDMLMySql_3_3_Common.sql /docker-entrypoint-initdb.d/
29 COPY ${DB_SCRIPT_DIR}/EcompSdkDMLMySql_3_3_OS.sql /docker-entrypoint-initdb.d/
31 RUN chown $user:$group /opt /var -R
32 RUN chmod 777 /var/lib/mysql