Browse Source

fusion agenda-frames

Maha Bouchiba 2 years ago
parent
commit
65aa6d1fb6

+ 3 - 3
.env.skeleton

@@ -49,9 +49,9 @@ FRAMES_VIRTUAL_HOST=local.frames.opentalent.fr
 FRAMES_PORT=3004
 FRAMES_REPORT_PORT=3005
 
-#FRAMES_V3
-FRAMES_V3_VIRTUAL_HOST=local.frames_v3.opentalent.fr
-FRAMES_V3_PORT=3000
+#AGENDA
+AGENDA_VIRTUAL_HOST=local.agenda.opentalent.fr
+AGENDA_PORT=3000
 
 #PORTAIL_V2
 PORTAIL_V2_VIRTUAL_HOST=local.portail_v2.opentalent.fr

+ 8 - 9
Makefile.skeleton

@@ -1,8 +1,8 @@
-# Ce Makefile permet de lancer les containers docker et les applications frames
-# et frames_v3 en même temps (véirfier que le port 3019 est libre)
-.PHONY: all launch_containers frames frames_v3 db_watch
+# Ce Makefile permet de lancer les containers docker et les applications frames / agenda
+# et agenda en même temps (véirfier que le port 3019 est libre)
+.PHONY: all launch_containers frames agenda db_watch
 
-launch: launch_containers frames frames_v3 db_watch  
+launch: launch_containers frames agenda db_watch  
 
 launch_containers:
 	docker-compose up -d
@@ -10,11 +10,10 @@ launch_containers:
 frames:
 	docker exec -d frames bash -c "yarn dev"
 
-frames_v3:
-	docker exec -d frames_v3 bash -c "yarn dev"
+agenda:
+	docker exec -d agenda bash -c "yarn dev"
 
 db_watch:
-	cd apps/frames_v3 && json-server db.json --watch --port 3019 
+	cd appsagenda && json-server db.json --watch --port 3019 
 
-# frames_v3 : https://local.frames_v3.opentalent.fr
-# frames : https://local.frames.opentalent.fr/
+# agenda : https://local.agenda.opentalent.fr

+ 2 - 2
README.md

@@ -44,7 +44,7 @@ Les repositories suivants doivent être clônés dans les sous-répertoires suiv
 | apps/metabase               | [Voir le repository](https://gitlab.2iopenservice.com/vincent/metabase)               | git@gitlab.2iopenservice.com:vincent/metabase.git               |
 | apps/python-scripts/clonedb | [Voir le repository](https://gitlab.2iopenservice.com/opentalent/clonedb)             | git@gitlab.2iopenservice.com:opentalent/clonedb.git             |
 | apps/frames                 | [Voir le repository](https://gitlab.2iopenservice.com/opentalent/frames)              | git@gitlab.2iopenservice.com:opentalent/frames.git              |
-| apps/frames_v3              | [Voir le repository](https://gitlab.2iopenservice.com/opentalent/frames_v3)           | git@gitlab.2iopenservice.com:opentalent/frames_v3.git           |
+| apps/frames_v3              | [Voir le repository](https://gitlab.2iopenservice.com/opentalent/agenda)           | git@gitlab.2iopenservice.com:opentalent/frames_v3.git           |
 | apps/ap2i                   | [Voir le repository](https://gitlab.2iopenservice.com/opentalent/ap2i)                | git@gitlab.2iopenservice.com:opentalent/ap2i.git                |
 | apps/ap2i-doc               | [Voir le repository](https://gitlab.2iopenservice.com/vincent/ap2i-doc)               | git@gitlab.2iopenservice.com:vincent/ap2i-doc.git               |
 | apps/app                    | [Voir le repository](https://gitlab.2iopenservice.com/opentalent/app)                 | git@gitlab.2iopenservice.com:opentalent/app.git                 |
@@ -85,7 +85,7 @@ Pour cela, ajouter les lignes suivantes à votre fichier `/etc/hosts`:
     127.0.0.1 local.opentalent.fr   # Docker 'portail'
     127.0.0.1 local.sub.opentalent.fr   # Docker 'typo3'
     127.0.0.1 local.frames.opentalent.fr   # Docker 'frames'
-    127.0.0.1 local.frames_v3.opentalent.fr   # Docker 'frames_v3'
+    127.0.0.1 local.agenda.opentalent.fr   # Docker 'agenda'
     127.0.0.1 local.blackfire.opentalent.fr   # Docker 'blackfire'
     127.0.0.1 local.metabase.opentalent.fr   # Docker 'metabase'
     127.0.0.1 local.ap2i.opentalent.fr   # Docker 'ap2i-doc'

+ 8 - 7
docker-compose.yml

@@ -299,21 +299,22 @@ services:
     depends_on:
       - nginx_new
 
-  frames_v3:
-    hostname: frames_v3
-    container_name: frames_v3
+  agenda:
+    hostname: agenda
+    container_name: agenda
     build:
       context: .
-      dockerfile: docker/frames_v3/Dockerfile
+      dockerfile: docker/agenda/Dockerfile
     volumes:
-      - ./apps/frames_v3:/home/workspace:rw,cached
+      - ./apps/agenda:/home/workspace:rw,cached
+      - ./apps/nuxt_common:/home/workspace/nuxt_common:rw,cached
     tty: true
     ports:
       - "3007:3000"
       - "24679:24679"
     environment:
-      - VIRTUAL_HOST=${FRAMES_V3_VIRTUAL_HOST}
-      - VIRTUAL_PORT=${FRAMES_V3_PORT}
+      - VIRTUAL_HOST=${AGENDA_VIRTUAL_HOST}
+      - VIRTUAL_PORT=${AGENDA_PORT}
       - NODE_ENV=development
       - HTTPS_METHOD=noredirect
     networks:

+ 0 - 0
docker/frames_v3/.gitignore → docker/agenda/.gitignore


+ 0 - 0
docker/frames_v3/Dockerfile → docker/agenda/Dockerfile


+ 2 - 2
docker/nginx-proxy/certs/ssl_keys.sh

@@ -58,8 +58,8 @@ cp docker/nginx-proxy/certs/default.crt docker/nginx-proxy/certs/local.app-doc.o
 cp docker/nginx-proxy/certs/default.key docker/nginx-proxy/certs/local.frames.opentalent.fr.key
 cp docker/nginx-proxy/certs/default.crt docker/nginx-proxy/certs/local.frames.opentalent.fr.crt
 
-cp docker/nginx-proxy/certs/default.key docker/nginx-proxy/certs/local.frames_v3.opentalent.fr.key
-cp docker/nginx-proxy/certs/default.crt docker/nginx-proxy/certs/local.frames_v3.opentalent.fr.crt
+cp docker/nginx-proxy/certs/default.key docker/nginx-proxy/certs/local.agenda.opentalent.fr.key
+cp docker/nginx-proxy/certs/default.crt docker/nginx-proxy/certs/local.agenda.opentalent.fr.crt
 
 cp docker/nginx-proxy/certs/default.key docker/nginx-proxy/certs/local.mercure.opentalent.fr.key
 cp docker/nginx-proxy/certs/default.crt docker/nginx-proxy/certs/local.mercure.opentalent.fr.crt

+ 6 - 1
docker/nginx/site_maestro.conf

@@ -3,7 +3,12 @@ server {
     root /var/www/html/public;
 
     location / {
-        add_header 'Access-Control-Allow-Origin' '*';
+          add_header 'Access-Control-Allow-Origin' '*';
+    location /api/images {
+        alias /var/www/html/public/uploads/news;
+        expires 30d;
+        add_header Cache-Control "public, max-age=2592000";
+    }
 
         # try to serve file directly, fallback to index.php
         try_files $uri /index.php$is_args$args;