diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2018-02-15 23:03:01 +0100 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2018-02-15 23:03:01 +0100 |
| commit | b6875e16b1683f86226449d577a8c98b04d70915 (patch) | |
| tree | bdbfb8325f382139aab9eaf6ce88a7939b0d25d0 /database/Dockerfile | |
| parent | 2212162c1311ce9b39cb2142f52bffddac3b9559 (diff) | |
chore: Automatically import database schema in Docker image
This change will make the database image automatically import the schema
and test data.
Diffstat (limited to 'database/Dockerfile')
| -rw-r--r-- | database/Dockerfile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/database/Dockerfile b/database/Dockerfile new file mode 100644 index 00000000..0e933b40 --- /dev/null +++ b/database/Dockerfile @@ -0,0 +1,8 @@ +FROM mariadb:10.1 +MAINTAINER Fabian Mastenbroek <f.s.mastenbroek@student.tudelft.nl> + +# Import schema into database +ADD schema.sql /docker-entrypoint-initdb.d + +# Add test data into database +ADD test.sql /docker-entrypoint-initdb.d |
