56 lines
1.5 KiB
JSON
56 lines
1.5 KiB
JSON
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
|
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
|
|
{
|
|
"name": "Shimmie",
|
|
"build": {
|
|
"context": "..",
|
|
"dockerfile": "../Dockerfile",
|
|
"target": "devcontainer"
|
|
},
|
|
|
|
"workspaceMount": "source=${localWorkspaceFolder},target=/app,type=bind",
|
|
"workspaceFolder": "/app",
|
|
|
|
"forwardPorts": [8000],
|
|
"portsAttributes": {
|
|
"8000": {
|
|
"label": "Application",
|
|
"onAutoForward": "openPreview"
|
|
}
|
|
},
|
|
"otherPortsAttributes": {
|
|
"onAutoForward": "silent"
|
|
},
|
|
|
|
"updateContentCommand": "composer install && cp ./.devcontainer/bash_history /root/.bash_history",
|
|
"postStartCommand": "./.docker/entrypoint.sh php ./.docker/run.php",
|
|
"containerEnv": {
|
|
"UID": "2000",
|
|
"GID": "2000",
|
|
"INSTALL_DSN": "sqlite:data/shimmie.dev.sqlite",
|
|
"HISTFILE": "/root/.bash_history"
|
|
},
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"recca0120.vscode-phpunit",
|
|
"ryanluker.vscode-coverage-gutters",
|
|
"xdebug.php-debug",
|
|
"DEVSENSE.phptools-vscode",
|
|
"ms-azuretools.vscode-docker"
|
|
],
|
|
"settings": {
|
|
"phpunit.args": [
|
|
"--configuration", "${workspaceFolder}/tests/phpunit.xml",
|
|
"--coverage-clover", "data/coverage.clover"
|
|
],
|
|
"coverage-gutters.coverageFileNames": [
|
|
"data/coverage.clover"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
|
|
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
|
|
// "remoteUser": "devcontainer"
|
|
}
|