Skip to content

Commit

Permalink
chore: add devcontainer.json (#1810)
Browse files Browse the repository at this point in the history
- to enable vscode users to just open the dev container and have them be ready to go in minutes
- the config follows https://github.com/podkrepi-bg/dev-containers/blob/main/nodejs/README.md
- and pushes to the next version 1.2.0 which fixes the vscode unsupported alpine image error
  • Loading branch information
gparlakov committed Jul 24, 2024
1 parent 5541e55 commit 3975690
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/alpine
{
"name": "NodeJS",
"image": "ghcr.io/podkrepi-bg/nodejs-devcontainer:v1.2.0",
"forwardPorts": [], // Forward ports
"containerEnv": {
"DATABASE_URL": "postgres://postgres:[email protected]:5432/postgres?schema=api" // Custom env vars
},
"postStartCommand": "yarn", // Install dependencies
"customizations":{
"vscode": {
"extensions": [
"ms-azuretools.vscode-docker",
"nrwl.angular-console",
"esbenp.prettier-vscode",
"firsttris.vscode-jest-runner",
"dbaeumer.vscode-eslint"
]
}
},
"mounts": [
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
]
}

0 comments on commit 3975690

Please sign in to comment.