mirror of
https://github.com/dokku/dokku.git
synced 2025-12-15 19:47:42 +01:00
This will allow Dokku developers access to the devcontainer on their preferred terminal vs just the built-in one in VSCode.
40 lines
1.2 KiB
JSON
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"
|
|
} |