Files
dokku/.devcontainer/devcontainer.json
Jose Diaz-Gonzalez 27b5fd93fd 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.
2025-07-08 22:32:46 -04:00

40 lines
1.2 KiB
JSON

{
"build": {
"dockerfile": "Dockerfile",
"context": ".."
},
"containerEnv": {
"DOKKU_HOSTNAME": "dokku.me",
"DOKKU_HOST_ROOT": "${localWorkspaceFolder}/tmp/data/home/dokku",
"DOKKU_LIB_HOST_ROOT": "${localWorkspaceFolder}/tmp/data/var/lib/dokku",
"GO_ROOT_MOUNT": "${localWorkspaceFolder}:/go/src/github.com/dokku/dokku"
},
"customizations": {
"vscode": {
"extensions": [
"golang.go",
"mads-hartmann.bash-ide-vscode",
"ms-vscode.makefile-tools",
"sleistner.vscode-fileutils",
"ms-azuretools.vscode-docker"
]
}
},
"initializeCommand": [
"mkdir",
"-p",
"tmp/data"
],
"mounts": [
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind",
"source=${localWorkspaceFolder}/tmp/data/,target=/mnt/dokku/,type=bind"
],
"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"
}