3cee0cd660
this is pre-work for upcoming Backstage ContribFest at KubeCon Amsterdam to hopefully make it easier for people to start contributing. node was updated to 24 to support the latest things in backstage, additionally necessary vscode plugins and settings are now included. Signed-off-by: Hellgren Heikki <heikki.hellgren@op.fi>
62 lines
1.4 KiB
JSON
62 lines
1.4 KiB
JSON
{
|
|
"name": "Backstage",
|
|
"forwardPorts": [3000, 7007],
|
|
"build": { "dockerfile": "Dockerfile" },
|
|
"features": {
|
|
"ghcr.io/devcontainers/features/common-utils:2.5.5": {},
|
|
"ghcr.io/devcontainers-contrib/features/mkdocs:2": {}
|
|
},
|
|
"postCreateCommand": "bash .devcontainer/setup.sh",
|
|
"hostRequirements": {
|
|
"cpus": 2,
|
|
"memory": "4gb",
|
|
"storage": "32gb"
|
|
},
|
|
"runArgs": [
|
|
"--env-file",
|
|
".devcontainer/devcontainer.env",
|
|
"--sysctl",
|
|
"net.ipv6.conf.all.disable_ipv6=1"
|
|
],
|
|
"portsAttributes": {
|
|
"3000": {
|
|
"label": "Frontend port",
|
|
"onAutoForward": "silent",
|
|
"requireLocalPort": true
|
|
},
|
|
"7007": {
|
|
"label": "Backend port",
|
|
"onAutoForward": "silent",
|
|
"requireLocalPort": true
|
|
},
|
|
"9464": {
|
|
"onAutoForward": "silent"
|
|
}
|
|
},
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"esbenp.prettier-vscode",
|
|
"dbaeumer.vscode-eslint",
|
|
"Intility.vscode-backstage"
|
|
],
|
|
"settings": {
|
|
"editor.formatOnSave": true,
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
"eslint.validate": [
|
|
"javascript",
|
|
"javascriptreact",
|
|
"typescript",
|
|
"typescriptreact"
|
|
],
|
|
"files.eol": "\n",
|
|
"prettier.endOfLine": "lf",
|
|
"editor.codeActionsOnSave": {
|
|
"source.fixAll": "explicit",
|
|
"source.sortMembers": "explicit"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|