Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Multiselection of compose files for docker-compose commands #186

Closed
jehof opened this issue Dec 1, 2017 · 6 comments
Closed

Enable Multiselection of compose files for docker-compose commands #186

jehof opened this issue Dec 1, 2017 · 6 comments

Comments

@jehof
Copy link

jehof commented Dec 1, 2017

When using the command docker-compose through the command palette I would like to select more than one compose file. Is this already supported? If not handle this as a feature request.

I´m using the basic setup from Visual Studio 2017 which uses a normal compose file (docker-compose.yml) and an additional compose file (docker-compose.override.yml).

@chrisdias
Copy link
Member

thanks for the suggestion, can you clarify what you are trying to do? Do you want to compose up multiple compose files at the same time?

@chrisdias
Copy link
Member

With VS Code 1.20.0 we can support this now, see microsoft/vscode#41461 for the API.

@StephenWeatherford
Copy link
Contributor

Closing due to lack of response. feel free to reopen.

@LazerFX
Copy link

LazerFX commented Dec 19, 2018

@StephenWeatherford - I'd like to recommend this be re-opened. Not sure how to do that, sorry if it's the wrong place to comment.

I've got a docker compose environment generated by Visual Studio, where there are three files:

docker-compose.yml
docker-compose.vs.debug.yml
docker-compose.vs.release.yml

These are, in Visual Studio, managed by a docker-compose.dcproj file that handles debug and release launching.

In Visual Studio Code, I want to sometimes run the debug environment, and sometimes the release environment. At present, I can only do this from the command prompt, I can't use the drop-down, even if I've selected multiple files first before choosing Compose Up.

I'd like to propose that if multiple files are selected, then the least-specific file is applied first, heading on down the specificity (In the above example *.vs.debug is more specific than *, and if all three files were supplied, then because *.vs.debug and *.vs.release were equivalent specificities, it would (if available) use the click-order to order files, or alphabetical.

@PrashanthCorp
Copy link
Contributor

Hi @LazerFX , given how close this issue is to #223 , I'd appreciate your feedback on a couple of assumptions I noted here. I'd love to hear your input. :-)

@LazerFX
Copy link

LazerFX commented Jan 3, 2019

I'll drop my comments over in #223 - thanks for the heads up.

@jehof jehof closed this as completed Jan 5, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants