|
|
@@ -124,6 +124,40 @@ Pour plus d'infos: https://gitlab.2iopenservice.com/opentalent/clonedb/blob/mast
|
|
|
|
|
|
#### Elasticsearch
|
|
|
|
|
|
+Pour créer l'index elasticsearch, plusieurs options.
|
|
|
+
|
|
|
+1- Clôner l'index complet depuis la prod. Nécessite un bon débit descendant et de l'espace disque disponible pour 50 à 100 Go.
|
|
|
+
|
|
|
+Se connecter au docker php70:
|
|
|
+
|
|
|
+ docker exec -it php70 bash
|
|
|
+
|
|
|
+Puis lancer:
|
|
|
+
|
|
|
+ npm install elasticdump@3.3.7 -g
|
|
|
+ elasticdump --input http://elasticsearch.2iopenservice.com//search --output http://localhost:9200/search_bck --type=analyzer
|
|
|
+ elasticdump --input http://elasticsearch.2iopenservice.com//search --output http://localhost:9200/search_bck --type=mapping
|
|
|
+ elasticdump --input http://elasticsearch.2iopenservice.com//search --output http://localhost:9200/search_bck --type=data
|
|
|
+
|
|
|
+2- Regénérer un index complet. Nécessite de l'espace disque disponible pour 50 à 100 Go, peut nécessiter plusieurs jours de traitement.
|
|
|
+
|
|
|
+Se connecter au docker php70:
|
|
|
+
|
|
|
+ docker exec -it php70 bash
|
|
|
+
|
|
|
+Puis lancer:
|
|
|
+
|
|
|
+ app/console fos:elastica:populate --process-isolation --no-debug
|
|
|
+
|
|
|
+3- Générer un index partiel.
|
|
|
+
|
|
|
+Se connecter au docker php70:
|
|
|
+
|
|
|
+ docker exec -it php70 bash
|
|
|
+
|
|
|
+Puis lancer:
|
|
|
+
|
|
|
+ php app/console fos:elastica:populate --index search --process-isolation --no-debug --no-reset --type organization
|
|
|
|
|
|
|
|
|
### Finaliser et exécuter
|
|
|
@@ -134,13 +168,15 @@ Se connecter a opentalent-platform
|
|
|
|
|
|
docker exec -it php bash
|
|
|
|
|
|
-Et exécuter:
|
|
|
+Installer les vendor:
|
|
|
|
|
|
composer install
|
|
|
|
|
|
+Puis mettre à jour le schéma de la DB:
|
|
|
|
|
|
+ app/console d:s:u --force
|
|
|
|
|
|
-A ce niveau, la page de documentation d'API Platform devrait être accessible à l'adresse
|
|
|
+À ce niveau, la page de documentation d'API Platform devrait être accessible à l'adresse
|
|
|
<https://local.api.opentalent.fr/doc>
|
|
|
|
|
|
#### Docker adminLegacy
|
|
|
@@ -358,3 +394,4 @@ Si le problème persiste, vérifier que les droits du répertoire .ssh sont iden
|
|
|
-rw------- 1 root root 1678 Mar 18 2020 id_rsa_exploitation
|
|
|
-rw-r--r-- 1 root root 397 May 15 2020 id_rsa_exploitation.pub
|
|
|
-rw-r--r-- 1 root root 888 May 12 14:19 known_hosts
|
|
|
+
|