devcontainers / devcontainers/cli

Docker compose profile specification

Offen
#669 5 Kommentare 6 Reaktionen 1 zugewiesene Person Beansprucht von @chrmarti Auf GitHub ansehen
bug
Vorherrschende Sprache
TypeScript
Sterne
3k
Forks
457
Ø Merge
13 Std. 17 Min.
Gemergte PRs (30 T.)
6

Beschreibung

Currently we have an application that can use either mariadb or postgresql. To achieve this, we leveraged docker-compose's profiles & environment variable COMPOSE_PROFILE to pass on the desired profile.

But [devcontainer script ](https://github.com/devcontainers/cli/blob/5a5a9b209d673a4b9e5389f6d64ac124cce3ec62/src/spec-node/dockerCompose.ts#L570) is passing --profile * to the docker-compose command by default without taking into account the desired profile specified in COMPOSE_PROFILE.

Can the script be modified to look for COMPOSE_PROFILE variable first before setting --profile *?

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.