Skip to content

Support multiple compose files #275

Closed
@ankon

Description

In my environment I have multiple docker-compose files: one "base", and then some more to enable additional services/options. These additional docker-compose files override/modify the base image settings.

It would be nice if kompose supported this natively: kompose -f base.yml -f mod.yml -f other-mod.yml convert.

Currently it simply ignores all but the last-mentioned file.

Activity

ankon

ankon commented on Nov 8, 2016

@ankon
Author

Currently it simply ignores all but the last-mentioned file.

This probably counts as "input argument validation", i.e. #87 is related.

surajssd

surajssd commented on Nov 11, 2016

@surajssd
Member

@ankon or this could also look like

kompose -f base.yml,mod.yml,other-mod.yml convert
ankon

ankon commented on Nov 11, 2016

@ankon
Author

In principle, yes. But I think it would be good to stay consistent with docker-compose's behavior here. Also note that ',' is a regular character that can appear in file names, so one needs to think about escaping; additionally it breaks at least my shell's tab completion logic :)

added this to the v0.3 release milestone on Nov 28, 2016
cdrage

cdrage commented on Dec 16, 2016

@cdrage
Member

I can work on this once #304 is merged :) Add supported for multiple file import.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Support multiple compose files · Issue #275 · kubernetes/kompose