Compare commits
7 Commits
32c7eff227
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| fc57279f57 | |||
| 04a29e7d13 | |||
| 64540554a9 | |||
| 76123f2fe6 | |||
| 7290f7d1ad | |||
| cfd3e03d2b | |||
| 9f3eab1a88 |
@@ -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
|
||||
3
Makefile
3
Makefile
@@ -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:
|
||||
|
||||
18
README.md
18
README.md
@@ -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
0
log/nginx/.gitkeep
Normal file
0
log/nginx/erable/.gitkeep
Normal file
0
log/nginx/erable/.gitkeep
Normal file
2
src
2
src
Submodule src updated: 959622891e...289cb7b399
Reference in New Issue
Block a user