Skip to content

Commit 0c0f336

Browse files
authored
Merge pull request #16 from wataruoguchi/cursor_dev_container
build: cursor dev container support
2 parents 6eb8403 + 0a06284 commit 0c0f336

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ FROM mcr.microsoft.com/devcontainers/javascript-node:24-trixie
33
RUN apt-get update \
44
&& apt-get install -y pgcli ack mkcert \
55
&& apt-get clean \
6-
&& apt-get autoremove --purge \
76
&& locale-gen en_US.UTF-8

.devcontainer/devcontainer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@
5151
"znck.grammarly"
5252
]
5353
}
54+
},
55+
"mounts": ["type=bind,source=${localEnv:HOME}/.ssh,target=/home/node/.ssh"],
56+
"remoteEnv": {
57+
"SSH_AUTH_SOCK": "/ssh-agent"
5458
}
5559
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
5660
// "remoteUser": "root"

.devcontainer/docker-compose.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '3.8'
2-
31
services:
42
app:
53
build:
@@ -27,10 +25,10 @@ services:
2725
# (Adding the "ports" property to this file will not forward from a Codespace.)
2826

2927
db:
30-
image: postgres:latest
28+
image: postgres:18.1
3129
restart: unless-stopped
3230
volumes:
33-
- postgres-data:/var/lib/postgresql/data
31+
- postgres-data:/var/lib/postgresql
3432
environment:
3533
POSTGRES_PASSWORD: postgres
3634
POSTGRES_USER: postgres

0 commit comments

Comments
 (0)