Volume path overlap with existing paths inside image
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 52/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- Calme
- Stack technique
- docker, php, sqlite
- Domaine
- database, infrastructure
Piste de recherche
Read the container configuration and the LinkStack application setup to find how /htdocs is mounted and where the SQLite database is configured or seeded. Check the existing volume definitions and startup process first. Done means the database can use its own configurable location, is created at container start, and only /htdocs/storage/app/public needs to persist uploaded files.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
The /htdocs webroot inside the container is currently recommended to be configured as volume. However since it contains files required for the application to function, it causes issues with very common use-cases which override the volume content at mount, leaving an empty directory.
The following use-cases are currently impossible without workarounds (see below):
- Bind volumes with Docker/Podman/Compose
- Kubernetes volumes
A workaround is to copy the original content of the image in the volume with an init container, prior to the main container starting. But this rather hacky and not ideal.
The following changes would be required at minimum:
- Allow defining the location of the SQLite database file: that way it can be configured to be read from its own dedicated (sub-)directory and configured as volume
- I see a non-empty database is already present on the image's FS. If it is somehow seeded and built into the app that's also bad practice and instead it should be created from scratch at container start
- Only mount
/htdocs/storage/app/publicas a volume to persist file uploads: AFAIK the rest of the webroot doesn't need to be persisted
- Langage dominant
- Shell
- Étoiles
- 527
- Forks
- 72
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Aucun modèle de pull request
- Aucun guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de LinkStackOrg/linkstack-docker
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
LinkStackOrg/linkstack-docker#170 · 14 commentaires · 10 réactions ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
LinkStackOrg/linkstack-docker#168 ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
LinkStackOrg/linkstack-docker#166 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 57/100
LinkStackOrg/linkstack-docker#161 · 1 commentaire ·
-
github package out of dateOuverte
Difficulté 3/5 1-2 jours Accessibilité débutants 48/100
LinkStackOrg/linkstack-docker#160 · 3 commentaires ·
Toutes les issues de LinkStackOrg/linkstack-docker
Issues similaires
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour
-
area:terraform priority:low source:reader type:enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
stephrobert/blog-roadmap#104 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
ReproNim/containers#172 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
fairagro/m4.2_infrastructure#54 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour