Selecting Services in Docker Compose for CI Usage
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!
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.
I should mention: The ci action has an option configFile to specify the devcontainer.json path.