Files
netbox-librenms-plugin/.devcontainer/devcontainer.json
Vlastislav Svatek 673e67106e
Some checks failed
ci / deploy (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (javascript-typescript) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
first commit
2026-06-05 10:39:05 +02:00

83 lines
2.7 KiB
JSON

{
"name": "NetBox LibreNMS Plugin Dev",
"dockerComposeFile": "docker-compose.yml",
"service": "devcontainer",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
"forwardPorts": [
8000
],
"portsAttributes": {
"8000": {
"label": "NetBox Web Interface",
"protocol": "http",
"requireLocalPort": false,
"elevateIfNeeded": false
}
},
"otherPortsAttributes": {
"onAutoForward": "ignore"
},
"hostRequirements": {
"memory": "4gb",
"storage": "32gb"
},
"containerEnv": {
"NETBOX_VERSION": "${localEnv:NETBOX_VERSION:latest}",
"DEBUG": "${localEnv:DEBUG:True}",
"DEVELOPER": "${localEnv:DEVELOPER:True}",
"DB_HOST": "${localEnv:DB_HOST:postgres}",
"DB_NAME": "${localEnv:DB_NAME:netbox}",
"DB_USER": "${localEnv:DB_USER:netbox}",
"DB_PASSWORD": "${localEnv:DB_PASSWORD:netbox}",
"REDIS_HOST": "${localEnv:REDIS_HOST:redis}",
"REDIS_PASSWORD": "${localEnv:REDIS_PASSWORD:}",
"SUPERUSER_NAME": "${localEnv:SUPERUSER_NAME:admin}",
"SUPERUSER_EMAIL": "${localEnv:SUPERUSER_EMAIL:admin@example.com}",
"SUPERUSER_PASSWORD": "${localEnv:SUPERUSER_PASSWORD:admin}",
"SKIP_SUPERUSER": "${localEnv:SKIP_SUPERUSER:false}",
"HTTP_PROXY": "${localEnv:HTTP_PROXY}",
"HTTPS_PROXY": "${localEnv:HTTPS_PROXY}",
"http_proxy": "${localEnv:HTTP_PROXY}",
"https_proxy": "${localEnv:HTTPS_PROXY}",
"NO_PROXY": "${localEnv:NO_PROXY}",
"no_proxy": "${localEnv:NO_PROXY}",
"REQUESTS_CA_BUNDLE": "${localEnv:REQUESTS_CA_BUNDLE}",
"SSL_CERT_FILE": "${localEnv:SSL_CERT_FILE}",
"CURL_CA_BUNDLE": "${localEnv:CURL_CA_BUNDLE}",
"ALLOW_GIT_SSL_DISABLE": "${localEnv:ALLOW_GIT_SSL_DISABLE:false}"
},
"features": {},
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"charliermarsh.ruff",
"ms-vscode.vscode-json",
"ms-vscode-remote.remote-containers"
],
"settings": {
"python.defaultInterpreterPath": "/opt/netbox/venv/bin/python",
"python.linting.enabled": false,
"python.formatting.provider": "none",
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit",
"source.fixAll.ruff": "explicit"
}
},
"ruff.organizeImports": true,
"ruff.fixAll": true,
"editor.formatOnSave": true,
"files.trimTrailingWhitespace": true,
"editor.rulers": [
88
]
}
}
},
"postCreateCommand": "bash .devcontainer/scripts/setup.sh",
"postAttachCommand": "bash .devcontainer/scripts/welcome.sh",
"remoteUser": "root"
}