# toc : - 1. MAP - 1.1. v2 2023 - 1.2. todo - 1.3. temps de travail - 2. docker - 2.1. install docker - 2.2. docker ressources - 3. old versions - 3.1. v1 2022 - 3.1.1. todo - 3.1.2. verifications - 3.1.3. improvement suggestions - 3.1.4. questions traitees - 3.1.5. todo --- # 1. MAP ## 1.1. v2 2023 ## 1.2. todo - [ ] ## 1.3. temps de travail 30€/h * 8h = 240€/j - 03/09/23 - begin: 14h30 - mes: "setting up docker" - end: 16h00 - len: 1h30 - begin: 16h30 - mes: "launch worpdress" - end: 18h00 - len: 1h30 - total: 3h00 - money: 90€ - 09/09/23 - begin: 16h30 - mes: "trying to copy wp site" - end: 17h30 - len: 1h00 - total: 1h00 - money: 30€ - 10/09/23 - begin: 10h00 - mes: "trying to fix makefile and .env volume variable" - end: 12h00 - len: 2h00 - total: 2h00 - money: 60€ - 11/09/23 - begin: 10h00 - mes: "fixed volume variable" - end: 13h30 - len: 3h30 - total: 3h30 - money: 105€ - 12/09/23 - begin: 9h30 - mes: "resolve some env var pbm" - end: 12h15 - len: 2h45 - total: 2h45 - money: 82€50 - 14/09/23 - begin: 11h30 - mes: "resolve env pbm with sudo" - end: 12h00 - len: 0h30 - begin: 13h00 - mes: "env pbm with sudo resolved" - end: 13h45 - len: 0h45 - begin: 13h45 - mes: "launch process duplicator" - end: 14h30 - len: 0h45 - begin: 14h45 - mes: "copy site duplicator" - end: 15h30 - len: 0h45 - total: 2h45 - money: 82€50 - 18/09/23 - begin: 10h00 - mes: "rediscover plugin" - end: 12h00 - len: 2h00 - begin: 13h00 - mes: "try to get acf fields" - end: 15h45 - len: 2h45 - total: 4h45 - money: 142€50 - 20/09/23 - begin: 14h00 - mes: "pbm api keys and acf7 form" - end: 15h30 - len: 1h30 - total: 1h30 - money: 45€ - 21/09/23 - begin: 9h45 - mes: "" - end: h - len: h - total: h - money: € #### total : 90 + 30 = 120€ ## 1.4. duplicator wordpress - https://duplicator.com/knowledge-base/classic-install/ - installer.php has two errors : - delete first blank line - close last line comment --- # 2. docker : ## 2.1. install docker - [install docker engine](https://docs.docker.com/engine/install/ubuntu/) - [uninstall docker engine](https://docs.docker.com/engine/install/ubuntu/#uninstall-docker-engine) - [docker engine vs docker desktop](https://docs.docker.com/desktop/faqs/linuxfaqs/#what-is-the-difference-between-docker-desktop-for-linux-and-docker-engine) - [manage docker as non root user](https://docs.docker.com/engine/install/linux-postinstall/) ## 2.2. docker ressources - [docker compose man](https://docs.docker.com/compose/compose-file/#volumes) - [Dockerfile man](https://docs.docker.com/engine/reference/builder/) - [determine the parent image](https://forums.docker.com/t/determine-the-parent-image/48611) - [docker image from scratch](https://codeburst.io/docker-from-scratch-2a84552470c8) - [build context and image context](https://stackoverflow.com/questions/55108649/what-is-app-working-directory-for-a-dockerfile/55109065#55109065) - [run without sudo on linux](https://docs.docker.com/engine/install/linux-postinstall/) - [run docker deamon rootless](https://docs.docker.com/engine/security/rootless/) - [dangling images ''](https://projectatomic.io/blog/2015/07/what-are-docker-none-none-images/) - [go inside docker to debug it](https://docs.docker.com/engine/reference/commandline/container_exec/) - [docker debug image with "docker run -it"](https://blog.devgenius.io/how-to-debug-docker-build-6c2588401188) - `docker exec -ti bash` to run bash inside a running container - [docker CMD vs ENTRYPOINT](https://phoenixnap.com/kb/docker-cmd-vs-entrypoint) - [use env variable with compose](https://docs.docker.com/compose/environment-variables/) - [using DEBIAN_FRONTEND=noninteractive disouraged in dockerfile](https://bobcares.com/blog/debian_frontendnoninteractive-docker/) - [docker network](https://docs.docker.com/network/) - [depends_on](https://docs.docker.com/compose/compose-file/#depends_on) - [compose and env var](https://docs.docker.com/compose/environment-variables/) - [specify path to named volumes](https://docs.docker.com/compose/compose-file/#volumes-top-level-element) - [pass secret to container](https://medium.com/@zdk/simple-and-secure-way-to-pass-secrets-and-credentials-into-docker-containers-c2f66175b0a4) --- # 3. old versions ## 3.1. v1 2022 ### 3.1.1. todo - [/] copy recent site version - [/] create links - [/] make links having map - [/] transform filter list in inputs - [/] zoom in - [/] style input filters - [x] enlever le bandeau de scroll des menus - [/] effacer -> bouton carre, fond violet, ecriture blanche, en capitale, arrondis de 3px sur les coins - [/] ne pas ouvrir sur un nouvel onglet - [/] "effacer" au lieu de "sans filtre" - [/] accents et majuscules : "Effacer", "Pays" et "Categories" - [/] responsive - pays - categories - irl / online - effacer - [/] sur ordi carte hauteur 600px, sur telephone 500px - [/] make two infowindow size - [/] infowindow with date in background color purple, and croice white - [/] check errors on real site - [/] create action to publish all - [/] deal with multiplication of filters - [/] deal with window size - [/] la carte ne s'affiche pas sur les pages - [/] filtres sur chrome - [/] infowindow new design - [/] infowindow enlever scroll border - [/] hide filters before css ready - [x] reduire hauteur du select menu - [/] dans categories, placer "autres" en bas - [/] dans categories, transformer fleches en "autres" - [/] effacer les fenetres, au moins sur le bouton effacer, ou sur mouvement - [/] zoom sur cluster problem - [/] transform names without space - [/] change appearance of filter according to other filters - [/] change title of select options that appears on cursor hover - [ ] deal with error double event irl and online ### 3.1.2. verifications: - api only for this site on fabien's google account - erased tmp css on site headers ### 3.1.3. improvement suggestions: - add a field "more infos" to address - localise on map when form is filled ### 3.1.4. questions traitees: - zoom : toujours zoomer, pour un seul marqueur pas trop, et enlever les villes - resoudre probleme mauvais markers de pays - faire un bouton select (afficher la seletion plutot que le nom du menu) - bound la carte limite pour ne pas voir la zone grise - quelles infos on mets dans les infowindow - adresse en haut (surtout pour les markers avec plusieurs evenements) - filtres: au dessus de la carte - zoom : on reste avec le fonctionnement par defaut - est-ce qu'on peut changer la phrase "ctrl + scroll" pour un truc en francais ? - comment gerer les mauvaises adresses - verifier la maniere dont je les recuperes, tous les posts devraient avoir un pays - comportement des infowindows - centrees, c nickel - markers avec plusieurs evenements a la meme adresse - utiliser uniquement les markers qui servent actuellement pour les clusters - quand c'est un cluster, on zoom, - quand c'est plusieurs evenements au meme endroit, on les affiche ### 3.1.5. todo: - add info-window - add filter options - deal with bad address - redsign + and - for zoom -> color and thickness - how to put the map on other pages - how to send plugin to fabien - [changed plugin directory in wp](https://wordpress.stackexchange.com/questions/120075/how-to-change-location-of-the-plugins-wordpress-themes-folder) - googlemap api key : AIzaSyCvdGV2ssD4ov4a9CuIlQhoJyz5gWWiSvE - [discussion on googlemap wp implementation](https://wordpress.org/support/topic/google-maps-where-to-place-api-key/) - [exemple of googlemap plugin creation](https://www.inkthemes.com/implement-google-map-plugin-for-wordpress/) - [Error: not a valid JSON response](https://wordpress.org/support/topic/publishing-failed-error-message-the-response-is-not-a-valid-json-response-2/) - [permalink broken](https://wordpress.org/support/topic/permalinks-change-breaks-all-links/) - [console.log in php](https://stackify.com/how-to-log-to-console-in-php/) - [plugins_url with symlink pbm](https://wordpress.stackexchange.com/questions/102681/plugins-url-file-wp-plugin-url-with-sym-links) - [make nginx follow symlinks](https://unix.stackexchange.com/questions/157022/make-nginx-follow-symlinks) - [nginx not following symlink maybe due to permissions](https://stackoverflow.com/questions/12624358/nginx-not-following-symlinks) - [symlink pbm with php-fpm](https://joshtronic.com/2019/07/29/symlinks-with-nginx-and-php-fpm/) - [my post on unix stack](https://unix.stackexchange.com/questions/722503/symlink-doent-works-with-nginx-and-php-fpm-and-docker/722511#722511) - [my post on wordpress stack](https://wordpress.stackexchange.com/questions/410735/i-dont-understand-how-symlinks-in-plugin-work) - [maps api in php](http://www.learningaboutelectronics.com/Articles/Google-maps-API-JSON-PHP.php) - [google maps api url parameters](https://developers.google.com/maps/documentation/javascript/url-params) - [google maps api references](https://developers.google.com/maps/documentation/javascript/reference) - [remove marker cluster](https://googlemaps.github.io/js-markerclusterer/classes/MarkerClusterer.html#removeMarker)