Files
DOCKER_wordpress/README.md

216 lines
8.0 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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: 16h
- len: 1h30
- begin: 16h30
- mes: "launch worpdress"
- end: 18h
- len: 1h30
- total: 3h
- tarif: 90€
- 09/09/23
- begin: 16h30
- mes: "trying to copy wp site"
- end: 17h30
- len: 1h
- total: 1h
- tarif: 30€
- 10/09/23
- begin: 10h
- mes: "trying to fix makefile and .env volume variable"
- end: 12h
- len: 2h
- total: 2h
- tarif: 60€
- 11/09/23
- begin: 10h
- mes: "fixed volume variable"
- end: 13h30
- len: 3h30
- total: 3h30
- tarif: 105€
- 12/09/23
- begin: 9h30
- mes: "copy site"
- end: h
- len: h
- total: h
- tarif: €
#### total : 90 + 30 = 120€
---
# 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 '<none>'](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 <container-name> 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)