Can I specify a custom devcontainer.json path?

My projects all use a shared/common devcontainer configuration which uses docker-compose for supporting multiple containers. The json is in a subdirectory. Is it possible to tell coder where to look instead of relying on the default locations of repo root or .devcontainer/devcontainer.json? I know I could add a basic one at repo root that “extends” the one in the subdirectory but that seems like something I should be able to configure rather than something I should have to adjust my already-functional native devcontainer setup to achieve.
3 Replies
Codercord
Codercord2d ago
Codercord
Codercord2d ago
<#1408398112489341038>
Category
Help needed
Product
Coder (v2)
Platform
macOS
Logs
Please post any relevant logs/error messages.
Danielle
Danielle2d ago
I believe we should correctly detect any running devcontainers in this scenario As for declaring it statically with terraform or relying on auto discovery, I don’t believe either of those methods will work as of right now for you I’ll make a note internally about that

Did you find this page helpful?