bach 2 years ago
parent
commit
bcae7fd04d
1 changed files with 49 additions and 21 deletions
  1. 49 21
      README.md

+ 49 - 21
README.md

@@ -1,6 +1,6 @@
 
-# esadhar.fr Docker Environement
-esadhar.fr powered by druapl 7  in docker environement (nginx, php:7-fpm+drush, phpmyadmin, redis)
+# clameurs-lawebserie.fr Docker Environement
+clameurs-lawebserie.fr powered by druapl 7  in docker environement (nginx, php:7-fpm+drush, phpmyadmin, redis)
 
 ## Install docker
 ```sh
@@ -9,37 +9,37 @@ sudo pacman -S docker docker-compose docker-machine
 
 ## Clone this repos
 
-this will clone this repos (main docker environement) and the edlp drupal 8 source code (without sites/default folder)
+this will clone this repos (main docker environement) and the clameurs drupal 7 source code (without sites/default folder)
 
 ```sh
-git clone --recursive -o esadhar.net https://esadhar.net/gogs/bachir/docker-esadhar-fr.git
+git clone --recursive -o origin https://figureslibres.io/gogs/bachir/docker-clameurs
 ```
 
 ### setup /sites/default/settings.php
 
 ```sh
-cp -r ressources/default public_html_d7/sites/
+cp -r ressources/default d7/sites/
 ```
 
 ### get the sites/default/files folder
-get the files from where you have it and rsync it to public_html_d7/sites/default/files/
+get the files from where you have it and rsync it to d7/sites/default/files/
 
 ## Mysql
-Copy your-sql-dump.sql into ./ressources/esadhar_d7.sql
+Copy your-sql-dump.sql into ./ressources/clameurs.sql
 It will be automaticly imported into the mysql container db (only) on the first ```make up```
 
 ## Hosts and reverse proxy
 
 add to your /etc/hosts :
 ```
-127.0.0.1	dev.d7.esadhar.fr
-127.0.0.1	dev.phpmyadmin.d7.esadhar.fr
+127.0.0.1	dev.d7.clameurs.fr
+127.0.0.1	dev.phpmyadmin.d7.clameurs.fr
 ```
 ### apache
-configure your apache vhosts to add a reverse proxy that will redirect the dev.d7.esadhar.fr to our container
+configure your apache vhosts to add a reverse proxy that will redirect the dev.clameurs.fr to our container
 ```apache
 <Virtualhost *:80>
-  ServerName dev.esadhar.fr
+  ServerName dev.clameur.fr
   ProxyPass / http://127.0.0.1:8880/
   ProxyPassReverse / http://127.0.0.1:8880/
   ProxyRequests Off
@@ -51,7 +51,7 @@ configure your apache vhosts to add a reverse proxy that will redirect the dev.d
 ```
 ```apache
 <Virtualhost *:80>
-   ServerName dev.phpmyadmin.esadhar.fr
+   ServerName dev.phpmyadmin.clameurs.fr
    ProxyPass / http://127.0.0.1:8881/
    ProxyPassReverse / http://127.0.0.1:8881/
    ProxyRequests Off
@@ -66,7 +66,7 @@ configure your apache vhosts to add a reverse proxy that will redirect the dev.d
 ```nginx
 server {
   listen 80;
-  server_name dev.d7.esadhar.fr;
+  server_name dev.clameurs.fr;
 
   location / {
     proxy_pass http://127.0.0.1:8880;
@@ -81,7 +81,7 @@ server {
 }
 server {
   listen 80;
-  server_name dev.phpmyadmin.d7.esadhar.fr;
+  server_name dev.phpmyadmin.clameurs.fr;
  
   location / {
     proxy_pass http://127.0.0.1:8881;
@@ -112,7 +112,7 @@ Be aware that a first up, since the db is empty, it will be populated with your
 
 
 ## Visualize
-You can now visit http://dev.d7.esadhar.fr on your browser
+You can now visit http://dev.clameurs.fr on your browser
 
 ## Coding
 ### drush
@@ -122,14 +122,14 @@ make exec_phpd7
 ```
 once inside the php container you can use drush as usual
 
-### gulp
+<!-- ### gulp
 Dev process needs gulp to run in:
 - public_html/sites/all/modules/custom/materio/
 - public_html/sites/all/themes/custom/materio/
   if you have to modifie js or scss source code, you need to do in each of these 2 folder:
 ```sh
 npm install
-gulp
+gulp -->
 ```
 
 ## Makefile
@@ -144,11 +144,30 @@ 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)
 
+buildncnginx:
+		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) nginx
+
+buildncnginx_static:
+		docker-compose -f docker-compose-static.yml 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) nginx_static
+
 up:
 		docker-compose up -d
 
-upbuild:
-		docker-compose up -d --build
+up_static:
+		docker-compose -f docker-compose-static.yml up -d
+
+down_static:
+		docker-compose -f docker-compose-static.yml down
+
+
+restart_nginx:
+		docker-compose restart nginx
+
+restart_nginx_static:
+		docker-compose -f docker-compose-static.yml restart nginx_static
+
+# upbuild:
+# 		docker-compose up -d --build
 
 ps:
 		docker-compose ps
@@ -160,10 +179,19 @@ down:
 		docker-compose down
 
 exec_phpd7:
-		docker exec -it esadharfr_phpd7_1 bash
+		docker exec -it clameurs-phpd7-1 bash
 
 exec_mysqld7:
-		docker exec -it esadharfr_mysqld7_1 bash
+		docker exec -it clameurs-mysqld7-1 bash
+
+exec_nginx:
+		docker exec -it clameurs-nginx-1 bash
+exec_npm:
+		docker exec -it clameurs-npm-1 sh
+
+dump_d7_db:
+	docker exec clameurs-mysqld7-1 sh -c 'exec mysqldump -uroot -pperfart perfart' > ./ressources/perfart_d7-$(DATE_NOW)-local.sql
+
     
 ```