Skip to content

Support a new launch profile type to launch the project in a container #40880

Open
@baronfel

Description

@baronfel

Is your feature request related to a problem? Please describe.

The CLI doesn't have a native ability to run a project inside a container, while Visual Studio and Visual Studio Code do via Docker tools plugins for those respective editors. We should expand this support to the CLI via a new launch profile launch type, so that the intent to use a container can be uniformly expressed. Then any tooling that wants to launch a project as a container natively could interpret this launch profile type and map that to whatever mechanism of action was correct for that environment.

Describe the solution you'd like

We should define a new launch type that directs the host to create a container for the project in question, then executes it. This launch profile should be able to control key aspects of the container execution, including:

  • container engine to use
    • (docker/podman/other - our current default is docker)
  • arguments to provide to the application
    • optionally - completely overriding the entrypoint?
  • environment variables to specify when the container runs
  • volume mounts to create when the container runs
    • useful for config, secrets, etc
  • ports to map when the container runs
    • if not specified, the host could map to random available ports

References

cc @DamianEdwards @davidfowl @danegsta

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions