[Maintainability] Deduplicate compose cluster setup and use the Docker Compose plugin in e2e
I maintainer di solito rispondono entro 1 giorno
Una pull request collegata è già stata integrata.
- #187 di @s2x — integrata
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 66/100
Direzione di ricerca
Start with docker-compose.yml at the listed service and entrypoint lines, then review .github/workflows/ci.yml and bindingtester.yml to match the repository’s Compose CLI usage. Centralize the coordinator value, use it for the cluster files, and remove or justify the duplicate tenant-mode step. Done means the compose config validates and make test and ci-ok pass.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
The coordinator string is repeated in every FDB service
(docker-compose.yml:7-8,25-26,43-44,65-66,87-88,111-112) and in the php
entrypoint (:224). The fdb-config service sets
FDB_CLUSTER_FILE_CONTENTS at :111-112 but its overridden entrypoint writes a
hardcoded string at :123; the php service does not even have the env var. A
coordinator or port change must be made in many places.
The e2e-tests job installs the legacy docker-compose binary
(.github/workflows/ci.yml:127-130) and uses it at :134,140,150,174,189,208,
while bindingtester.yml and the rest of the repository use the docker compose
plugin. Both work on ubuntu-latest today, but the repository maintains two
Compose CLIs for no reason.
CI also has a separate "Configure tenant mode" step
(.github/workflows/ci.yml:184-198) that duplicates what the fdb-config
entrypoint now does. It is harmless (idempotent) but masks a future regression
where the compose stack stops configuring tenant mode.
Found during #139 / PR #153 and #147 / PR #157.
Where to start
- Use a YAML anchor or a single
.envvalue for the coordinator string, and
write$FDB_CLUSTER_FILE_CONTENTSto/var/fdb/fdb.cluster(and
/app/fdb.clusterin thephpservice) instead of duplicating it. - Switch the e2e job to
docker compose, drop the apt install, and keep the
commands otherwise unchanged. - Remove the duplicate tenant-mode step, or keep it with a comment explaining it
is a safety net and add an assertion that the compose stack itself configured
tenant mode.
Definition of done
- The coordinator string has one source of truth; changing it updates every
service. -
e2e-testsusesdocker composeand no longer installsdocker-compose. - The duplicate tenant-mode step is removed or explicitly justified.
-
docker compose config -q,make testandci-okare green.
- Lingua principale
- PHP
- Stelle
- 0
- Fork
- 0
- Merge medio
- 8h 20m
- PR unite (30g)
- 23
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di crazy-goat/fdb-php
-
priority:medium type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
crazy-goat/fdb-php#192 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue priority:low type:chore
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
crazy-goat/fdb-php#188 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue priority:low type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
crazy-goat/fdb-php#184 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue priority:low type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
crazy-goat/fdb-php#182 ·
I maintainer di solito rispondono entro 1 giorno
-
priority:medium type:security
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
crazy-goat/fdb-php#180 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di crazy-goat/fdb-php
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Codeinwp/themeisle-companion#1014 ·
I maintainer di solito rispondono entro 1 giorno
-
sync-en
Difficoltà 2/5 1-3 ore Idoneità per principianti 71/100
I maintainer di solito rispondono entro 1 giorno
-
sync-en
Difficoltà 1/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
repo:cms
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
craftcms/cms#20596 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Перевод устарел
Difficoltà 2/5 1-3 ore Idoneità per principianti 61/100
I maintainer di solito rispondono entro 1 giorno