mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-06 07:30:40 +00:00
Fix mysql initialization
There may be a race condition, where the mysql container is initialized without creating the root user. To address this, we wait until the right message from the mysql logs. In practice, we should do even better by running the provision.sh scripts directly inside the mysql container. This is for issues #132 and #133
This commit is contained in:
parent
731ff7fb15
commit
c42b747e35
@ -59,6 +59,9 @@ databases: init-mysql provision-databases migrate provision-oauth2 ## Bootstrap
|
||||
|
||||
init-mysql: ## Make sure that mysql is properly initialized
|
||||
docker-compose up -d mysql
|
||||
until docker-compose logs mysql | grep "MySQL init process done. Ready for start up."; do \
|
||||
sleep 1;\
|
||||
done
|
||||
docker-compose stop mysql
|
||||
provision-databases: ## Create necessary databases and users
|
||||
$(DOCKER_COMPOSE_RUN) -v $(PWD)/../env/openedx/scripts:/openedx/scripts lms /openedx/scripts/provision.sh
|
||||
|
Loading…
Reference in New Issue
Block a user