aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2019-09-03 15:45:55 +0100
committerStephen Finucane <stephen@that.guru>2019-09-08 18:30:38 +0100
commit140453e5df61d4782656fffae0c8940a3e91de6b (patch)
tree4f4d4187c61107680f565504509c4b762202c162
parent8f93f8375b15663888babdf77790ef81f83ab5b6 (diff)
downloadpatchwork-140453e5df61d4782656fffae0c8940a3e91de6b.tar
patchwork-140453e5df61d4782656fffae0c8940a3e91de6b.tar.gz
docker: Simplify MySQL reset
Just use the hardcoded configuration. Signed-off-by: Stephen Finucane <stephen@that.guru>
-rw-r--r--tools/docker/Dockerfile3
-rwxr-xr-xtools/docker/entrypoint.sh2
2 files changed, 1 insertions, 4 deletions
diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile
index 8170071..556085c 100644
--- a/tools/docker/Dockerfile
+++ b/tools/docker/Dockerfile
@@ -8,9 +8,6 @@ RUN [ -n "$UID" ] || { echo "You must define UID in .env" 1>&2; exit 1; }
ENV PROJECT_HOME /home/patchwork/patchwork
-ENV db_user root
-ENV db_pass password
-
ENV DJANGO_SETTINGS_MODULE patchwork.settings.dev
ENV DEBIAN_FRONTEND noninteractive
ENV PYTHONUNBUFFERED 1
diff --git a/tools/docker/entrypoint.sh b/tools/docker/entrypoint.sh
index d2b094b..08fa190 100755
--- a/tools/docker/entrypoint.sh
+++ b/tools/docker/entrypoint.sh
@@ -22,7 +22,7 @@ test_database() {
}
reset_data_mysql() {
- mysql -u$db_user -p$db_pass -h $PW_TEST_DB_HOST << EOF
+ mysql -uroot -ppassword -h $PW_TEST_DB_HOST << EOF
DROP DATABASE IF EXISTS patchwork;
CREATE DATABASE patchwork CHARACTER SET utf8;
GRANT ALL ON patchwork.* TO 'patchwork' IDENTIFIED BY 'password';