fix(agent/agentcontainers/dcspec): generate unmarshalers and add tests (#17330)

This change allows proper unmarshaling of `devcontainer.json` and will
no longer break EnvInfoer or the Web Terminal.

Fixes coder/internal#556
This commit is contained in:
Mathias Fredriksson
2025-04-10 12:10:58 +00:00
committed by GitHub
parent c1816e3674
commit 33b9487899
6 changed files with 414 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
{
"image": "test-image",
"runArgs": ["--network=host", "--privileged"],
"forwardPorts": [8080, "3000:3000"]
}
@@ -0,0 +1,12 @@
{
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-18-bullseye",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
},
"customizations": {
"vscode": {
"extensions": ["mads-hartmann.bash-ide-vscode", "dbaeumer.vscode-eslint"]
}
},
"postCreateCommand": "npm install -g @devcontainers/cli"
}
+1
View File
@@ -0,0 +1 @@
{ "image": "test-image" }