Skip to content

Commit e8de811

Browse files
committed
WIP
1 parent fb56fae commit e8de811

3 files changed

Lines changed: 20 additions & 0 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2121
libgdbm-dev \
2222
sqlite3 \
2323
libsqlite3-dev \
24+
tzdata \
2425
&& apt-get clean \
2526
&& rm -rf /var/lib/apt/lists/*
2627

@@ -44,6 +45,11 @@ ENV LANG=C.UTF-8 \
4445

4546
USER sentry
4647

48+
# Pre-create the bundle directory owned by sentry so that a Docker named volume
49+
# mounted here is initialised with the correct ownership (Docker copies image
50+
# directory content when a volume is first attached).
51+
RUN mkdir -p /home/sentry/bundle
52+
4753
RUN curl https://mise.run | sh \
4854
&& echo 'eval "$(/home/sentry/.local/bin/mise activate zsh)"' >> /home/sentry/.zshenv
4955

@@ -56,3 +62,8 @@ RUN if [ -n "${RUBY_VERSION}" ]; then \
5662
MISE_RUBY_COMPILE=0 /home/sentry/.local/bin/mise install "ruby@${RUBY_VERSION}" && \
5763
/home/sentry/.local/bin/mise use --global "ruby@${RUBY_VERSION}"; \
5864
fi
65+
66+
# Node.js is always needed for the svelte-mini e2e app.
67+
RUN echo "📦 Pre-installing node@lts..." && \
68+
/home/sentry/.local/bin/mise install "node@lts" && \
69+
/home/sentry/.local/bin/mise use --global "node@lts"

.devcontainer/docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ services:
2222
<<: *sentry-build
2323
entrypoint: [".devcontainer/run"]
2424
command: ["mise", "run", "e2e:serve"]
25+
environment:
26+
BUNDLE_PATH: /home/sentry/bundle
27+
volumes:
28+
- ..:/workspace/sentry:cached
29+
- bundle-gems:/home/sentry/bundle
2530
ports:
2631
- "${SENTRY_E2E_RAILS_APP_PORT}:4000"
2732
- "${SENTRY_E2E_SVELTE_APP_PORT}:4001"
@@ -32,3 +37,6 @@ services:
3237
- ALLOW_EMPTY_PASSWORD=yes
3338
ports:
3439
- "6379:6379"
40+
41+
volumes:
42+
bundle-gems:

.mise.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[tools]
22
ruby = "latest"
3+
node = "lts"
34

45
[tasks."e2e:rails"]
56
description = "Start the rails-mini e2e app"

0 commit comments

Comments
 (0)