Browse Source

add frames docker

Olivier Massot 4 years ago
parent
commit
d29d5ca547
6 changed files with 72 additions and 3 deletions
  1. 6 1
      .env.skeleton
  2. 28 2
      README.md
  3. 20 0
      docker-compose.yaml
  4. 15 0
      docker/frames/Dockerfile
  5. 3 0
      docker/nginx-proxy/certs/ssl_keys.sh
  6. BIN
      logo.png

+ 6 - 1
.env.skeleton

@@ -34,6 +34,11 @@ PORTAIL_VIRTUAL_HOST=local.opentalent.fr
 #Typo3
 TYPO3_VIRTUAL_HOST=local.sub.opentalent.fr
 
+#FRAMES
+FRAMES_VIRTUAL_HOST=local.frames.opentalent.fr
+FRAMES_PORT=3004
+FRAMES_REPORT_PORT=3005
+
 #V59
 V59_VIRTUAL_HOST=local.v59.opentalent.fr
 
@@ -63,4 +68,4 @@ METABASE_PORT=3000
 PHPDOC_VIRTUAL_HOST=local.api-doc.opentalent.fr
 
 #Jsdoc
-JSDOC_VIRTUAL_HOST=local.admin-doc.opentalent.fr
+JSDOC_VIRTUAL_HOST=local.admin-doc.opentalent.fr

+ 28 - 2
README.md

@@ -38,6 +38,7 @@ Les repositories suivants doivent être clônés dans les sous-répertoires suiv
 | apps/portail | - | - |
 | 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/clonedb.git> |
 
 
 ### Configurer le projet
@@ -74,6 +75,7 @@ Pour cela, ajouter les lignes suivantes à votre fichier `/etc/hosts`:
     127.0.0.1 local.thumbor.opentalent.fr   # Docker 'thumbor'
     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.blackfire.opentalent.fr   # Docker 'blackfire'
     127.0.0.1 local.metabase.opentalent.fr   # Docker 'metabase'
     127.0.0.1 local.api-doc.opentalent.fr   # Docker 'php-doc'
@@ -329,6 +331,10 @@ Héberge une instance Typo3 version 8.7, qui sert entre autres le portail Openta
 
 Héberge une instance Typo3 version 9.5, qui sert tous les mini-sites des clients.
 
+#### Docker: `typo3`
+
+Héberge l'application Frames. Voir ici: https://gitlab.2iopenservice.com/opentalent/frames
+
 #### Docker: `adminassos`
 
 TODO: à quoi il sert?
@@ -384,7 +390,7 @@ en remplaçant `<my-domain.fr>` par le nom de domaine attendu.
 
 Copier les deux fichiers nouvellement générés dans 
 
-Exécuter le script depuis la racine du projet doker:
+Exécuter le script depuis la racine du projet docker:
 
     sh docker/nginx-proxy/certs/ssl_keys.sh
 
@@ -436,7 +442,7 @@ Accéder au docker php70:
 
     docker exec -it php70 bash
 
-Puis exécuter:
+Puis exècuter:
 
     chmod -R 777 /var/www/html/app/cache/
 
@@ -496,4 +502,24 @@ et le redémarrer:
 
     docker restart
 
+#### Erreur liée à l'index Elasticsearch (events, champs de recherche...)
+
+Pour regénérer l'index elasticsearch:
+
+Accéder au docker php70:
+
+    docker exec -it php70 bash
+
+Lancer, puis interrompre dès qu'il commence à populate les organizations:
+
+    php app/console fos:elastica:populate --index search
+
+Se rendre sur l'interface graphique elasticsearch, et se connecter à https://local.elasticsearch.opentalent.fr/
+
+> Attention à ce que le navigateur ne bloque pas le certificat SSL, essayez d'abord d'ouvrir 
+> https://local.elasticsearch.opentalent.fr/ dans un onglet à part
+
+Supprimer l'alias `search` de l'index qui le porte, et ajouter ce même alias à l'index nouvellement créé
+
+
 

+ 20 - 0
docker-compose.yaml

@@ -180,6 +180,26 @@ services:
     depends_on:
       - nginx_new
 
+  frames:
+    hostname: frames
+    container_name: frames
+    build:
+      context: .
+      dockerfile: docker/admin/Dockerfile
+    volumes:
+      - ./apps/frames:/home/workspace:rw,cached
+    tty: true
+    ports:
+      - 3004:3004
+      - 3005:3005
+    environment:
+      - VIRTUAL_HOST=${FRAMES_VIRTUAL_HOST}
+      - VIRTUAL_PORT=${FRAMES_PORT}
+      - NODE_ENV=docker
+      - HTTPS_METHOD=noredirect
+    depends_on:
+      - nginx_new
+
   portail:
     hostname: portail
     container_name: portail

+ 15 - 0
docker/frames/Dockerfile

@@ -0,0 +1,15 @@
+    # Pull base image.
+FROM node:14.5.0-buster
+
+ENV WORKDIR /home/workspace
+
+RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
+    echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
+
+
+RUN apt-get update && apt-get install -y g++ build-essential yarn
+
+# Define working directory.
+WORKDIR ${WORKDIR}
+
+CMD node

+ 3 - 0
docker/nginx-proxy/certs/ssl_keys.sh

@@ -55,4 +55,7 @@ cp docker/nginx/certs/default.crt docker/nginx/certs/local.api-doc.opentalent.fr
 cp docker/nginx/certs/default.key docker/nginx/certs/local.admin-doc.opentalent.fr.key
 cp docker/nginx/certs/default.crt docker/nginx/certs/local.admin-doc.opentalent.fr.crt
 
+cp docker/nginx/certs/default.key docker/nginx/certs/local.frames.opentalent.fr.key
+cp docker/nginx/certs/default.crt docker/nginx/certs/local.frames.opentalent.fr.crt
+
 #docker-compose build --no-cache nginx-proxy

BIN
logo.png