Compare commits

...

8 Commits

Author SHA1 Message Date
c2f2cbd10f MODIF ADMIN : footnotes, suppression lien x, accès ressources éditor, menu burger scrollable 2026-01-12 19:09:36 +01:00
fc57279f57 vbo: actions_permissions 2024-10-24 21:04:30 +02:00
04a29e7d13 src update 2024-10-23 22:28:39 +02:00
64540554a9 updated src 2023-12-01 12:41:45 +01:00
76123f2fe6 readme 2023-12-01 11:07:19 +01:00
7290f7d1ad docker nginx error.log bug fix 2023-12-01 10:21:47 +01:00
cfd3e03d2b docker nginx error.log bug fix 2023-12-01 10:21:29 +01:00
9f3eab1a88 readme 2023-11-30 21:56:57 +01:00
7 changed files with 17 additions and 10 deletions

View File

@@ -24,6 +24,9 @@ build:
buildnc: buildnc:
docker-compose build --no-cache --build-arg USER_UID=$(USER_UID) --build-arg USER_UNAME=$(USER_UNAME) --build-arg USER_GID=$(USER_GID) --build-arg USER_GNAME=$(USER_GNAME) docker-compose build --no-cache --build-arg USER_UID=$(USER_UID) --build-arg USER_UNAME=$(USER_UNAME) --build-arg USER_GID=$(USER_GID) --build-arg USER_GNAME=$(USER_GNAME)
buildnc_mysql:
docker-compose build --no-cache --build-arg USER_UID=$(USER_UID) --build-arg USER_UNAME=$(USER_UNAME) --build-arg USER_GID=$(USER_GID) --build-arg USER_GNAME=$(USER_GNAME) mysql
downbuildup: down build up downbuildup: down build up
up: up:

View File

@@ -20,11 +20,17 @@ https://wiki.archlinux.org/index.php/Docker#Installation
this will clone this repos (main docker environement) and the erable.arch.fr drupal 9 source code (without sites/default folder nor mysq ddbs) this will clone this repos (main docker environement) and the erable.arch.fr drupal 9 source code (without sites/default folder nor mysq ddbs)
``` ```
git clone --recursive -o figli https://figureslibres.io/gogs/bachir/docker-erable.git git clone --recursive -o figli https://figureslibres.io/gitea/bachir/docker-erable.git
``` ```
submodules : submodules :
- https://figureslibres.io/gogs/bachir/drupal-erable - https://figureslibres.io/gitea/bachir/drupal-erable
## touch log file
```
touch log/nginx/error.log
touch log/nginx/erable/error.log
```
### setup /sites/default/settings.php ### setup /sites/default/settings.php
@@ -38,9 +44,6 @@ cp -r ressources/drupal/services.yml src/web/sites/default/
### get the sites/default/files folder ### get the sites/default/files folder
rsync the files from you know where (if you don't, you don't) to src/sites/default/files/ rsync the files from you know where (if you don't, you don't) to src/sites/default/files/
### xdebug
copy ```ressources/xdebug.ini.exemple``` to ```ressources/xdebug.ini``` and edit the ```xdebug.remote_host``` ip to your host locale ip (e.g. : 192.168.0.23) (or once the docker is started to the host ip from the container point of vu e.g. 172.21.0.1)
## Mysql ## Mysql
Copy your-sql-dump.sql files into ```./ressources/erable.sql``` Copy your-sql-dump.sql files into ```./ressources/erable.sql```
They will be automaticly imported into the mysql containers dbs (only) on the first docker-compose up They will be automaticly imported into the mysql containers dbs (only) on the first docker-compose up
@@ -153,7 +156,7 @@ make up
Be aware that a first up, since the db is empty, it will be populated with your files ressources/db_d7.sql and ressources/db_d9.sql. It may take some time depending of your db size. Be aware that a first up, since the db is empty, it will be populated with your files ressources/db_d7.sql and ressources/db_d9.sql. It may take some time depending of your db size.
## Drupal Composer install ## Drupal Composer install
Only at first up, finish to install drupal 9 composer dependencies Only at first up, finish to install drupal composer dependencies
```sh ```sh
make exec_php make exec_php
composer install composer install
@@ -162,7 +165,7 @@ make composer_install
``` ```
## Visualize ## Visualize
You can now visit http://dev.d7.erable.archi.fr and http://dev.d9.erable.archi.fr on your browser You can now visit http://dev.erable.fr on your browser
After the first run After the first run
## Coding ## Coding
@@ -291,4 +294,5 @@ exec_mysql:
dump_db: dump_db:
docker exec erable-mysql-1 sh -c 'exec mysqldump -uroot -perable erable' > ./ressources/erable-$(DATE_NOW)-local.sql docker exec erable-mysql-1 sh -c 'exec mysqldump -uroot -perable erable' > ./ressources/erable-$(DATE_NOW)-local.sql
``` ```

0
log/nginx/.gitkeep Normal file
View File

View File

View File

@@ -5,7 +5,7 @@ xdebug.mode=debug
;Should use host.docker.internal but not working on linux ;Should use host.docker.internal but not working on linux
; xdebug.remote_host=172.20.0.1 ; xdebug.remote_host=172.20.0.1
; Replaced by xdebug.client_host. ; Replaced by xdebug.client_host.
xdebug.client_host=host.docker.internal xdebug.client_host=192.168.1.11
;Not working on docker context ;Not working on docker context

2
src

Submodule src updated: 959622891e...310ff06463