Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

Commit f204fc5

Browse files
Clinton Blackburnclintonb
Clinton Blackburn
authored andcommitted
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
1 parent 2b7aaed commit f204fc5

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

docker-compose.yml

-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ services:
4141
- "3306:3306"
4242
volumes:
4343
- ./.dev/volumes/mysql:/var/lib/mysql
44-
- ./.dev/sql:/docker-entrypoint-initdb.d
4544

4645
# edX services
4746
credentials:

provision.sh

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Ensure the containers are started
44
docker-compose up -d
55

6+
# Create the databases and users
7+
docker exec -i edx.devstack.mysql mysql -uroot < provision.sql
8+
69
# Create superusers that can access the services without the need for single sign-on
710
# NOTE: If the users already exist, errors will be raised (in the Django shell), but execution of this provisioning
811
# script will continue.
File renamed without changes.

0 commit comments

Comments
 (0)