Update dev container configuration for monorepo
This commit is contained in:
parent
938582155d
commit
60542935c8
6 changed files with 59 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
"dockerComposeFile": "docker-compose.yml",
|
"dockerComposeFile": "docker-compose.yml",
|
||||||
"service": "app",
|
"service": "app",
|
||||||
"workspaceFolder": "/workspace",
|
"workspaceFolder": "/simple-ocpp-cs",
|
||||||
"shutdownAction": "stopCompose",
|
"shutdownAction": "stopCompose",
|
||||||
|
|
||||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
@ -2,7 +2,7 @@ services:
|
||||||
app:
|
app:
|
||||||
image: mcr.microsoft.com/devcontainers/python:3.12-bookworm
|
image: mcr.microsoft.com/devcontainers/python:3.12-bookworm
|
||||||
volumes:
|
volumes:
|
||||||
- ..:/workspace:cached
|
- ../..:/simple-ocpp-cs:cached
|
||||||
command: sleep infinity
|
command: sleep infinity
|
||||||
|
|
||||||
db:
|
db:
|
27
.devcontainer/frontend/devcontainer.json
Normal file
27
.devcontainer/frontend/devcontainer.json
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
||||||
|
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
|
||||||
|
{
|
||||||
|
"name": "Node.js",
|
||||||
|
|
||||||
|
"dockerComposeFile": "docker-compose.yml",
|
||||||
|
"service": "app",
|
||||||
|
"workspaceFolder": "/simple-ocpp-cs",
|
||||||
|
"shutdownAction": "stopCompose",
|
||||||
|
|
||||||
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||||
|
"forwardPorts": [
|
||||||
|
5173
|
||||||
|
],
|
||||||
|
|
||||||
|
// Configure tool-specific properties.
|
||||||
|
"customizations": {
|
||||||
|
"vscode": {
|
||||||
|
"extensions": [
|
||||||
|
"Lokalise.i18n-ally",
|
||||||
|
"dbaeumer.vscode-eslint",
|
||||||
|
"esbenp.prettier-vscode",
|
||||||
|
"eamodio.gitlens"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
6
.devcontainer/frontend/docker-compose.yml
Normal file
6
.devcontainer/frontend/docker-compose.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
image: mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm
|
||||||
|
volumes:
|
||||||
|
- ../..:/simple-ocpp-cs:cached
|
||||||
|
command: sleep infinity
|
12
backend/simple-ocpp-cs.code-workspace
Normal file
12
backend/simple-ocpp-cs.code-workspace
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"folders": [
|
||||||
|
{
|
||||||
|
"name": "Backend",
|
||||||
|
"path": "../backend"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Root",
|
||||||
|
"path": "../"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
12
frontend/simple-ocpp-cs.code-workspace
Normal file
12
frontend/simple-ocpp-cs.code-workspace
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"folders": [
|
||||||
|
{
|
||||||
|
"name": "Frontend",
|
||||||
|
"path": "../frontend"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Root",
|
||||||
|
"path": "../"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue