Add a Dockerfile and publish a Docker image of the starter project on Docker Hub
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- docker, docker-compose, github-actions, php
- Área
- devops, infrastructure
Línea de trabajo
First resolve the listed decisions about the Docker Hub namespace, PHP versions, image type, and database; the work is also gated on the project requiring PHP 8.2. Read the README and project setup requirements, then add the Dockerfile, .dockerignore, docker-compose.yml, and .github/workflows/docker.yml described in the issue. Verify that docker compose up serves the home page and php qt install:demo runs, then confirm the release workflow publishes version and latest tags without baking in secrets.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
Let users run a new Quantum project with Docker, and publish an image of it on Docker Hub with every release. The repository has no Docker files today. This is planned for 3.2.0, which raises the minimum PHP version to 8.2, so the image starts from PHP 8.2.
Why
Starting a Quantum project needs PHP 8.2 or newer (the minimum of 3.2.0), Composer and several extensions (pdo, curl, json, simplexml, fileinfo, openssl, bcmath, plus dom and zip for some features). An image gives a working setup in one command, on any machine, without installing PHP.
Scope
Files to add to this repository:
Dockerfile: PHP 8.2 on Apache, the extensions above, Composer, the document root set topublic/,mod_rewriteon, and write access tologs/,cache/andruntime/. The.envis read at run time, and no secret is stored in the image..dockerignore.docker-compose.yml: the app, a database, and Redis as an option..github/workflows/docker.yml: build and push the image to Docker Hub when a release tag is published, for amd64 and arm64.- A short section in
README.mdon how to run it.
Two kinds of image are possible: a runtime image where the project is mounted or created with composer create-project quantum/project, and a ready image that already contains a created project and starts a working app. The first one comes first; the second is a thin layer on top of it.
To decide before the work starts
- the Docker Hub namespace and repository, and who owns them
- the PHP versions to publish, from 8.2 up
- which kind of image comes first
- which database the compose file starts with
The access token and the account name are stored as the repository secrets DOCKERHUB_TOKEN and DOCKERHUB_USERNAME by the maintainer.
Order
The work starts after the project requires PHP 8.2 (3.2.0), because the image must run the version the project supports.
Out of scope
- Changes to the framework repository.
- Tags and releases: they are cut by the maintainer, and the workflow only reacts to a published tag.
Acceptance criteria
docker compose upstarts the project, and the home page answers- the image runs
php qtcommands, includinginstall:demo - no secret is baked into the image
- a published release tag pushes the image to Docker Hub with the version tag and
latest - the README explains how to run it
- Lenguaje dominante
- PHP
- Estrellas
- 49
- Forks
- 20
- Merge medio
- 16 min
- PR fusionados (30 d)
- 9
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 quantum-php/project
-
demo good first issue templates
Dificultad 5/5 Más de una semana Aptitud para principiantes 45/100
quantum-php/project#195 ·
Todos los issues de quantum-php/project
Issues similares
-
bug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
quantum-php/framework#692 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 70/100
ajeetraina/awesome-docker-sbx#559 ·
-
dependencies enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
novalo-dev/Prestashop-MCP-Server#329 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
Los mantenedores suelen responder en 1 día
-
bug origin:interactive status:available
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Ultimate-Multisite/ultimate-multisite#2131 ·
Los mantenedores suelen responder en 1 día