aboutsummaryrefslogtreecommitdiff
path: root/tools/docker/db
diff options
context:
space:
mode:
authorStephen Finucane <stephenfinucane@hotmail.com>2016-08-30 00:35:38 +0100
committerStephen Finucane <stephenfinucane@hotmail.com>2016-09-01 19:15:35 +0100
commitc2085586d522fd45aad15899a26207fd6eb5c9c5 (patch)
tree0965fe11e6f64ba650608487faca090832be9a65 /tools/docker/db
parent7f4b27cb2da45b0fa3fe7ae412b9fa760543d36f (diff)
downloadpatchwork-c2085586d522fd45aad15899a26207fd6eb5c9c5.tar
patchwork-c2085586d522fd45aad15899a26207fd6eb5c9c5.tar.gz
docker: Move 'docker' directory to 'tools'
...like the Vagrant scripts (which have been renamed also). Signed-off-by: Stephen Finucane <stephenfinucane@hotmail.com> Acked-by: Daniel Axtens <dja@axtens.net>
Diffstat (limited to 'tools/docker/db')
-rw-r--r--tools/docker/db/.dockerignore1
-rw-r--r--tools/docker/db/.gitignore1
-rw-r--r--tools/docker/db/Dockerfile10
3 files changed, 12 insertions, 0 deletions
diff --git a/tools/docker/db/.dockerignore b/tools/docker/db/.dockerignore
new file mode 100644
index 0000000..1269488
--- /dev/null
+++ b/tools/docker/db/.dockerignore
@@ -0,0 +1 @@
+data
diff --git a/tools/docker/db/.gitignore b/tools/docker/db/.gitignore
new file mode 100644
index 0000000..60baa9c
--- /dev/null
+++ b/tools/docker/db/.gitignore
@@ -0,0 +1 @@
+data/*
diff --git a/tools/docker/db/Dockerfile b/tools/docker/db/Dockerfile
new file mode 100644
index 0000000..5df9b5a
--- /dev/null
+++ b/tools/docker/db/Dockerfile
@@ -0,0 +1,10 @@
+FROM mysql:5.7
+
+ENV MYSQL_ROOT_PASSWORD password
+ENV MYSQL_USER patchwork
+ENV MYSQL_PASSWORD password
+
+# We don't want to use the MYSQL_DATABASE env here because
+# we want to be able to create the database with UTF-8 explictly.
+# We also can't load in the data because it's in XML, yay.
+