Compare commits

...

7 Commits

Author SHA1 Message Date
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
6 changed files with 16 additions and 9 deletions

View File

@@ -6,4 +6,4 @@ RUN apt-get update \
COPY ./default.conf /etc/nginx/conf.d/default.conf
COPY ./bashrc /root/.bashrc
COPY ./inputrc /root/.inputrc
COPY ./inputrc /root/.inputrc

View File

@@ -24,6 +24,9 @@ build:
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)
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
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)
```
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 :
- 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
@@ -38,9 +44,6 @@ cp -r ressources/drupal/services.yml src/web/sites/default/
### 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/
### 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
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
@@ -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.
## 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
make exec_php
composer install
@@ -162,7 +165,7 @@ make composer_install
```
## 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
## Coding
@@ -291,4 +294,5 @@ exec_mysql:
dump_db:
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

2
src

Submodule src updated: 959622891e...289cb7b399