Skip to content

Commit 4015da4

Browse files
committed
feat(devcontainer): add devcontainer config files
1 parent 2b3e26f commit 4015da4

File tree

4 files changed

+51
-1
lines changed

4 files changed

+51
-1
lines changed

.devcontainer/Dockerfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Use Ubuntu as the base image
2+
FROM ubuntu:24.04
3+
4+
# Set to noninteractive
5+
ENV DEBIAN_FRONTEND=noninteractive
6+
7+
# Install necessary dependencies
8+
RUN apt-get update && apt-get install -y \
9+
curl \
10+
git \
11+
python3 \
12+
python3-setuptools \
13+
build-essential \
14+
libvips-dev \
15+
zip
16+
17+
# install volta
18+
RUN curl https://get.volta.sh | bash
19+
# needed by volta() function
20+
ENV VOLTA_HOME /$HOME/.volta
21+
# make sure packages managed by volta will be in PATH
22+
ENV PATH $VOLTA_HOME/bin:$PATH
23+
24+
# enable to run E2E tests locally
25+
#RUN export VOLTA_FEATURE_PNPM=1

.devcontainer/devcontainer.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "sentry-javascript",
3+
"build": {
4+
"dockerfile": "Dockerfile"
5+
},
6+
"customizations": {
7+
"vscode": {
8+
"extensions": [
9+
"esbenp.prettier-vscode",
10+
"biomejs.biome",
11+
"dbaeumer.vscode-eslint",
12+
"augustocdias.tasks-shell-input",
13+
"denoland.vscode-deno",
14+
"orta.vscode-jest",
15+
"ms-azuretools.vscode-docker"
16+
]
17+
}
18+
},
19+
"mounts": ["source=${localWorkspaceFolder}/,target=/workspace,type=bind,consistency=cached"],
20+
"postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder} && yarn config set cache-folder /workspace/.yarncache"
21+
}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,6 @@ packages/deno/lib.deno.d.ts
5858

5959
# gatsby
6060
packages/gatsby/gatsby-node.d.ts
61+
62+
# devcontainer-yarn-cache
63+
.yarncache

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,6 @@
4242
"[typescript]": {
4343
"editor.defaultFormatter": "biomejs.biome"
4444
},
45-
"cSpell.words": ["arrayify", "OTEL"]
45+
"cSpell.words": ["arrayify", "OTEL"],
46+
"dev.containers.defaultExtensions": ["mutantdino.resourcemonitor"]
4647
}

0 commit comments

Comments
 (0)