From 27b5fd93fd5781a396452f4ba4edc8f9b115a72a Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Tue, 8 Jul 2025 22:31:46 -0400 Subject: [PATCH] feat: export the devcontainer environment to allow docker exec to work This will allow Dokku developers access to the devcontainer on their preferred terminal vs just the built-in one in VSCode. --- .devcontainer/devcontainer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 7b1d82267..f0a2a7825 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -31,9 +31,10 @@ ], "overrideCommand": false, "postCreateCommand": "setup-dev-env", + "postStartCommand": "printenv > .vscode/devcontainer.env", "runArgs": [ "--init" ], "workspaceFolder": "/root/go/src/github.com/dokku/dokku", "workspaceMount": "type=bind,source=${localWorkspaceFolder},target=/root/go/src/github.com/dokku/dokku,consistency=cached" -} +} \ No newline at end of file