File tree Expand file tree Collapse file tree 6 files changed +43
-3
lines changed Expand file tree Collapse file tree 6 files changed +43
-3
lines changed Original file line number Diff line number Diff line change 1+ // For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+ // README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
3+ {
4+ "name" : " Node.js & TypeScript" ,
5+ // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+ "image" : " mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm" ,
7+ "features" : {
8+ "ghcr.io/devcontainers/features/git-lfs:1" : {
9+ "autoPull" : true ,
10+ "version" : " latest"
11+ },
12+ "ghcr.io/itsmechlark/features/postgresql:1" : {
13+ "version" : " latest"
14+ }
15+ },
16+
17+ // Use 'postCreateCommand' to run commands after the container is created.
18+ "postCreateCommand" : " pnpm install"
19+ }
Original file line number Diff line number Diff line change 1+ # To get started with Dependabot version updates, you'll need to specify which
2+ # package ecosystems to update and where the package manifests are located.
3+ # Please see the documentation for more information:
4+ # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+ # https://containers.dev/guide/dependabot
6+
7+ version : 2
8+ updates :
9+ - package-ecosystem : " devcontainers"
10+ directory : " /"
11+ schedule :
12+ interval : weekly
13+
14+ - package-ecosystem : " npm"
15+ directory : " /"
16+ schedule :
17+ interval : weekly
18+
19+ target-branch : dev
20+
Original file line number Diff line number Diff line change 1717 postgres :
1818 image : postgres
1919 env :
20- POSTGRES_PASSWORD : abc123
20+ POSTGRES_PASSWORD : postgres
2121 # Set health checks to wait until postgres has started
2222 options : >-
2323 --health-cmd pg_isready
Original file line number Diff line number Diff line change 66* .db
77* .db-journal
88* .tgz
9+ .pnpm-store
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ const TEST_PG_CONFIG = {
3232 ? parseInt ( process . env [ 'TEST_PG_PORT' ] )
3333 : 5432 ,
3434 user : process . env [ 'TEST_PG_USER' ] ?? 'postgres' ,
35- password : process . env [ 'TEST_PG_PASSWORD' ] ?? 'abc123 ' ,
35+ password : process . env [ 'TEST_PG_PASSWORD' ] ?? 'postgres ' ,
3636} ;
3737
3838export async function makePostgresClient < Schema extends PostgresSchema > (
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ datasource db {
2121 return `
2222datasource db {
2323 provider = 'postgresql'
24- url = 'postgres://postgres:abc123 @localhost:5432/${ dbName } '
24+ url = 'postgres://postgres:postgres @localhost:5432/${ dbName } '
2525}
2626` ;
2727 } )
You can’t perform that action at this time.
0 commit comments