more debugs messages on wp installation

This commit is contained in:
asus
2023-09-03 17:37:23 +02:00
parent 80aa4b7f4a
commit a1532e1873
4 changed files with 17 additions and 18 deletions

View File

@@ -6,7 +6,6 @@
- 2. docker
- 2.1. install docker
- 2.2. docker ressources
- 2.3. docker pid 1
- 3. old versions
- 3.1. v1 2022
- 3.1.1. todo
@@ -46,8 +45,6 @@
- [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)
@@ -71,19 +68,6 @@
- [pass secret to container](https://medium.com/@zdk/simple-and-secure-way-to-pass-secrets-and-credentials-into-docker-containers-c2f66175b0a4)
## 2.3. docker pid 1
- nginx by default will create some child process (a master and some workers), then it quits (doc ?)
- when the first process of a docker container exit, the container exit (doc ?)
- so we must tell nginx to not go background : "-g 'daemon off'"
- [pid1 docker problem](https://blog.phusion.nl/2015/01/20/docker-and-the-pid-1-zombie-reaping-problem/)
- [official nginx docker image](https://hub.docker.com/_/nginx/)
- "If you add a custom CMD in the Dockerfile, be sure to include -g daemon off; in the CMD in order for nginx to stay in the foreground, so that Docker can track the process properly (otherwise your container will stop immediately after starting)!"
- [SO discussion on "-g 'daemon off'"](https://stackoverflow.com/questions/18861300/how-to-run-nginx-within-a-docker-container-without-halting)
- "When PID 1 exits, the container will exit" (where is says in the doc ?)
- ["By design, containers started in detached mode exit when the root process used to run the container exits"](https://docs.docker.com/engine/reference/run/#detached--d)
---
# 3. old versions
@@ -187,3 +171,4 @@
- [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)