Add make file entries to launch a MySQL container

as use as a testing database.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2017-06-07 02:06:10 -04:00
parent 9840851109
commit 845826ba70
2 changed files with 21 additions and 0 deletions

View File

@@ -142,6 +142,14 @@ docker_services_frontend:
docker_services_worker:
./manage.py celery worker --settings=mayan.settings.testing.docker -B -l INFO -O fair
docker_service_mysql_on:
docker run -d --name mysql -p 3306:3306 -e MYSQL_ALLOW_EMPTY_PASSWORD=True -e MYSQL_DATABASE=mayan_edms mysql
while ! nc -z 127.0.0.1 3306; do sleep 1; done
docker_service_mysql_off:
docker stop mysql
docker rm mysql
# Security
safety_check:

View File

@@ -0,0 +1,13 @@
from __future__ import unicode_literals
from .base import * # NOQA
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'mayan_edms',
'USER': 'root',
'HOST': '127.0.0.1',
'PORT': '3306',
}
}