big refactoring, now mariadb load the sql db on first creation

This commit is contained in:
Bachir Soussi Chiadmi
2018-01-15 15:48:03 +01:00
parent 00e0eea74a
commit 422012550d
270 changed files with 499 additions and 8 deletions
+8 -4
View File
@@ -17,10 +17,14 @@ git clone -o figli https://figureslibres.io/gogs/bachir/docker-materio.git
cd docker-materio
git clone -o figli https://figureslibres.io/gogs/bachir/materio-base-d7.git base_d7
```
or with submodule
# get the sites/default contents
## get the sites/default contents
## setup /sites/default/settings.php
# setup /sites/default/settings.php
# Mysql
copy your-sql-dump.sql into ./ressources/materio_base_d7.sql
it will be automaticly imported into the mysql container db (only the first time)
# reverse proxy
```
@@ -57,7 +61,7 @@ sudo docker exec -it materio_php_1 bash
```
once inside the php container in /var/www/html you can use drush as usual
# mysql
# updateding manualy mysql db
copy your db backup into the mysql container
```
sudo docker cp your-db-file.sql materio_mysql_1:/root/
@@ -66,7 +70,7 @@ log into mysql container
```
sudo docker exec -it materio_php_1 bash
```
once inside the mysql container you can use mysql command to create and load the db with your file
once inside the mysql container you can use mysql command to drop then create and load the db with your file
# sources