-
Notifications
You must be signed in to change notification settings - Fork 792
[BUG] COMPOSE_FILE env var is not honored #1728
Copy link
Copy link
Closed
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Description
Expected Behavior
kompose should honor the COMPOSE_FILE env var.
In short, this envvar allows to define which yamls to load by default instead of the default docker-compose.yml if no -f params are given. It is a nice alternative to explicitly set them with -f each time you run a docker compose command.
Actual Behavior
Currently kompose ignores COMPOSE_FILE (and just defaults to docker-compose.yml if -f is not set)
Steps To Reproduce
- Create a
docker-compose.ymland adocker-compose.alternative.ymlconfigs that have visible differences - Run
COMPOSE_FILE=docker-compose.alternative.yml kompose convert -o output.yml - See that the docker-compose.yml was converted
Kompose Version
1.31.1 (46dcb9181)
Docker-Compose file
# docker-compose.yml
version: "3"
services:
test:
image: debian
---
# docker-compose.alternative.yml
version: "3"
services:
test:
image: alpineAnything else?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.