-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (15 loc) · 781 Bytes
/
Dockerfile
File metadata and controls
19 lines (15 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM mysql:latest
ENV MYSQL_ROOT_PASSWORD=fstr_hrdr_sctr
# these sql scripts are automatically run when starting a new container,
# see the 'Initializing a fresh instance' section here:
# https://hub.docker.com/_/mysql
COPY sql-scripts/setup.sql /docker-entrypoint-initdb.d/1-setup.sql
COPY sql-scripts/ddl.sql /docker-entrypoint-initdb.d/2-ddl.sql
COPY sql-scripts/insert.sql /docker-entrypoint-initdb.d/3-insert.sql
# copy custom MySQL configuration file to enable reading from local
# (CSV) files
COPY docker-setup-files/custom_my.cnf /etc/mysql/my.cnf
# copy the CSV files themselves (which are used to populate the database with
# initial data) to root directory, since that is the 'working directory' when
# the 'initdb' SQL scripts are executed
COPY sql-scripts/*.csv /