ci icon indicating copy to clipboard operation
ci copied to clipboard

Selecting Services in Docker Compose for CI Usage

Open YoanMCN opened this issue 1 year ago • 2 comments

Hi,

I’m currently using a dev container defined in a docker-compose.yml file that includes multiple services. In my CI environment, I only need the main development container and would prefer not to start all other services.

Is there a way to selectively use only the dev container in my CI pipeline (Github Actions)?

I’m looking for any advice, tips, or documented solutions that might help.

Thanks in advance for your help!

YoanMCN avatar Feb 24 '25 20:02 YoanMCN

You could use a second devcontainer.json in a subfolder of the .devcontainer folder and use "runServices": [...] in that to reduce the services to only the dev container one.

chrmarti avatar Feb 28 '25 15:02 chrmarti

I should mention: The ci action has an option configFile to specify the devcontainer.json path.

chrmarti avatar Feb 28 '25 15:02 chrmarti