[DEV-190] Mount folder with instructions on how to initialize

This commit is contained in:
Maxi Redigonda 2022-05-31 13:38:37 -03:00
parent 23b65406a9
commit b1d85fd908
2 changed files with 5 additions and 4 deletions

View File

@ -0,0 +1 @@
mysql -u root -e "CREATE DATABASE IF NOT EXISTS development;"

View File

@ -14,11 +14,11 @@ install:
@docker exec -u root -it opensupports-db bash -c "mysql -u root -e \"CREATE DATABASE IF NOT EXISTS development;\" " || echo "${red}Please execute 'make run' first${reset}"
install-not-interactive:
echo "${yellow}About to run COMPOSER INSTALL${reset}"
# echo "${yellow}About to run COMPOSER INSTALL${reset}"
docker exec opensupports-srv bash -c "cd /var/www/html && composer install" || echo "${red}Please execute 'make run' first${reset}"
echo "${yellow}About to run CREATE DATABASE IF NOT EXISTS${reset}"
docker exec -u root opensupports-db bash -c "/etc/init.d/mysql status; /etc/init.d/mysql start; mysql -u root -e \"CREATE DATABASE IF NOT EXISTS development;\" " || echo "${red}Please execute 'make run' first${reset}"
echo "${yellow}About to FINISH INSTALL-NOT-INTERACTIVE${reset}"
# echo "${yellow}About to run CREATE DATABASE IF NOT EXISTS${reset}"
# docker exec -u root opensupports-db bash -c "/etc/init.d/mysql status; /etc/init.d/mysql start; mysql -u root -e \"CREATE DATABASE IF NOT EXISTS development;\" " || echo "${red}Please execute 'make run' first${reset}"
# echo "${yellow}About to FINISH INSTALL-NOT-INTERACTIVE${reset}"
setup-vendor-permissions:
@docker exec opensupports-srv bash -c "cd /var/www/html && chmod 777 -R vendor/ezyang" || echo "${red}Please execute 'make run' first${reset}"