-
Notifications
You must be signed in to change notification settings - Fork 471
Description
I'm not sure if this support already exists or not but here is what I am trying to accomplish. I have a mono repo setup like the following below. Each app may have a devcontainer file that points to the service in the docker-compose file for the repo:
my-monorepo/
├── app_1/
│ ├── src/
│ │ └── main.py
│ ├── requirements.txt
│ └── README.md
├── app_2/
│ ├── src/
│ │ └── app.py
│ ├── pyproject.toml
│ └── README.md
├── app_3/
│ ├── src/
│ │ └── index.js
│ ├── package.json
│ └── README.md
├── .devcontainer/
│ ├── app_1.devcontainer.json
│ ├── app_2.devcontainer.json
│ └── app_3.devcontainer.json
├── docker-compose.yml
├── README.md
└── .gitignore
When i use devpod to spin up one of my devcontainers for this project like this:
devpod up . --devcontainer-path ./.devcontainer/app_1.devcontainer.json
It spins up the entire compose file but the whole thing acts as a single devpod service? Like if i try and now spin up my other devcontainer:
devpod up . --devcontainer-path ./.devcontainer/app_2.devcontainer.json
it will say:
info Workspace app_1 already exists
I was wondering how i can make devpod use all my devcontainers for the existing containers spun up in docker compose. Is this already possible and if so how?