Docker: Remove the 'version' tag #546
Labels
No labels
blocked
duplicate
high priority
needs
approval
needs
criteria
needs
estimate
needs
tests
question
step
doing
step
review
step
testing
step
todo
step
uat
type
admin
type
alert
type
bug
type
change
type
defect
type
dependencies
type
development
type
documentation
type
epic
type
idea
type
incident
type
investigation
type
spike
type
story
type
tests
won't fix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
RabbitLabs/vylbot-app#546
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Epic:
Story Points:
Remove the obsolete top-level
versionkey from Docker Compose files. Compose Specification treatsversionas informational only; Compose v2 ignores it and warns that it is obsolete.Current Behaviour
docker-compose.ymlstarts withversion: "3.9". Runningdocker composeagainst it emits a warning that theversionattribute is obsolete and will be ignored.New Behaviour
Tracked Compose files in the repo have no top-level
versionkey.docker composecommands against them no longer warn about an obsoleteversionattribute. Service definitions are otherwise unchanged.Acceptance Criteria
GIVEN the repo's
docker-compose.ymlWHEN I open the file
THEN it has no top-level
versionkeyAND the
services(and other) definitions are otherwise unchangedGIVEN
docker-compose.ymlwithversionremovedWHEN I run
docker compose -f docker-compose.yml configTHEN the command succeeds
AND stderr does not warn that the
versionattribute is obsoleteSubtasks
No subtasks
Notes
docker-compose.prod.yml/docker-compose.stage.yml, which are not tracked in this repo; if those host files also declareversion, update them out of band when deploying.versionis obsolete / ignored by Compose v2.