Commit f204fc5e by Clinton Blackburn Committed by Clinton Blackburn

Moved DB provisioning to the provision script

This alleviates issues that occur when the DB-dependent services start before the MySQL container has time to run the entrypoint script.

ECOM-6563
parent 2b7aaede
......@@ -41,7 +41,6 @@ services:
- "3306:3306"
volumes:
- ./.dev/volumes/mysql:/var/lib/mysql
- ./.dev/sql:/docker-entrypoint-initdb.d
# edX services
credentials:
......
......@@ -3,6 +3,9 @@
# Ensure the containers are started
docker-compose up -d
# Create the databases and users
docker exec -i edx.devstack.mysql mysql -uroot < provision.sql
# Create superusers that can access the services without the need for single sign-on
# NOTE: If the users already exist, errors will be raised (in the Django shell), but execution of this provisioning
# script will continue.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment