[Feature Request]: Handling of all things Docker (php, mysql, etc.) similar to how Tinkerwell handles it.
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
Línea de trabajo
No se nombran archivos, pruebas ni puntos de entrada. Empieza revisando el comportamiento de la configuración de Docker y cómo Invoker ejecuta actualmente PHP en relación con el archivo .env del proyecto y la red de contenedores; el trabajo estará terminado cuando un contenedor PHP seleccionado pueda ejecutar el proyecto y acceder a servicios como MySQL y Redis sin cambiar la configuración de la aplicación.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Feature Description
Our environment uses various php versions for various projects and having the ability to define which php container to use is not too clear. I can see a "Docker settings" button only in the homescreen in the list of projects. But that is not making it too clear if it will use php from inside the container or not, it does not seem like it is doing that.
Since nginx, php, mysql, redis, etc. is all containerized (we use laradock as a standard for our team), not being able to follow through within the containers network makes the values set in the .env file useless for Invoker because it is sitting outside the docker container network and is running php from the system instead... which has no visibility for any of the .env values set for hosts on these services.
As a result, sql queries cannot execute properly, even though there are no exceptions in the app when accessed via a browser with configured hosts, trying to load a model, will return:
Illuminate\Database\QueryException : SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution (SQL: select count(*) as aggregate from '[model]')
This is the php from outside docker trying to connect to the configured mysql which uses a hostname available for use inside docker itself. Which is why it cannot see it. Changing the .env will make it work for Invoker, but then it will break for the app when accessed from the browser... which is why I ended up making this feature request.
Being able to use php from a docker container would help immensely with using Invoker with our current setup.
Thanks for listening and providing great tools guys!
Is this feature valuable for other users as well and why?
This can be valuable for everyone who has docker for their databases and/or php, etc. and doesn't have it all installed locally. Which is something we decided to do so we didn't have to install all versions of postgres 14.x~17.x, mysql 5.7.x/8.x and php from 7.4 to 8.4 in our local machines (we have so many projects with different php versions, this was deemed a convenience).
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 76
- Forks
- 1
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de beyondcode/invoker-community
-
Dificultad 4/5 3-5 días Aptitud para principiantes 20/100
beyondcode/invoker-community#400 · 1 comentario ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
beyondcode/invoker-community#399 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
beyondcode/invoker-community#398 ·
-
Invoker issueAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
beyondcode/invoker-community#396 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
beyondcode/invoker-community#395 · 1 reacción ·
Todos los issues de beyondcode/invoker-community
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
restatedev/sdk-typescript#813 ·
-
[18.0] werkzeug: AttributeErrorAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
odoo/odoo#297927 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Merit-Systems/x402scan#1312 ·
-
type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Azure/apiops-cli#331 ·
Los mantenedores suelen responder en 3 días