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

Allow developers to select individual services in docker-compose.yml (or specific docker compose file) to launch #6188

Closed
ben-xD opened this issue Jan 18, 2022 · 3 comments
Labels
containers Issue in vscode-remote containers feature-request Request for new features or functionality plan-review PM-highlighted item determined to be P1 or P2

Comments

@ben-xD
Copy link

ben-xD commented Jan 18, 2022

As per the documentation (Use Docker Compose). This is useful to declare configuration passed to docker run in a widely supported format - this is much better than configuring them inside .devcontainer/devcontainers.json's runArgs which is only read by this extension.

However, to make the experience even better, a developer might want to configure different runArgs for different scenarios. In one configuration, they might want to pass --gpus=all, and the other case, the container shouldn't be given any GPUs. Currently, the developer has to either

  • manually edit the devcontainer.json file
  • use docker compose inside devcontainer.json, and have 2 or more docker-compose files. They would have to switch between files to change the configuration.

It would be great

  • if we choose from a menu, which service we want to launch after declaring them services in a docker-compose.yml file with these different configurations, or
  • if we can choose from a menu of docker compose files (We would have to declare it up front in the devcontainers.json file.), where each docker compose contains different sets of services
    • This is the more general purpose one: Developers might have 2 or 3 services in one docker-compose.yml, and might want to configure them differently.
@ben-xD ben-xD changed the title Allow developers to select individual services in docker-compose.yml to launch Allow developers to select individual services in docker-compose.yml (or specific docker-compose.yml file) to launch Jan 18, 2022
@ben-xD ben-xD changed the title Allow developers to select individual services in docker-compose.yml (or specific docker-compose.yml file) to launch Allow developers to select individual services in docker-compose.yml (or specific docker compose file) to launch Jan 18, 2022
@github-actions github-actions bot added the containers Issue in vscode-remote containers label Jan 18, 2022
@chrmarti chrmarti added the feature-request Request for new features or functionality label Jan 20, 2022
@bamurtaugh bamurtaugh added the plan-review PM-highlighted item determined to be P1 or P2 label Jan 27, 2022
@github-actions github-actions bot locked and limited conversation to collaborators May 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
containers Issue in vscode-remote containers feature-request Request for new features or functionality plan-review PM-highlighted item determined to be P1 or P2
Projects
None yet
Development

No branches or pull requests

4 participants
@chrmarti @ben-xD @bamurtaugh and others