Skip to content

Commit ae2b508

Browse files
committed
WIP
1 parent 8cd6183 commit ae2b508

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

.devcontainer/entrypoint-rails-mini.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
set -e
33

44
echo "Installing Ruby dependencies for Rails mini..."
5-
cd /workspace/sentry
65

7-
# Install dependencies for sentry-ruby and sentry-rails
8-
bundle install --gemfile=sentry-ruby/Gemfile
9-
bundle install --gemfile=sentry-rails/Gemfile
6+
# Ensure proper ownership of workspace
7+
chown -R sentry:sentry /workspace/sentry
108

11-
# Change to the rails-mini app directory
9+
# Switch to sentry user and run bundle install commands
10+
su - sentry -c "cd /workspace/sentry && bundle install --gemfile=sentry-ruby/Gemfile"
11+
su - sentry -c "cd /workspace/sentry && bundle install --gemfile=sentry-rails/Gemfile"
12+
13+
# Change to the rails-mini app directory and switch to sentry user
1214
cd /workspace/sentry/spec/apps/rails-mini
1315

14-
exec "$@"
16+
# Switch to sentry user for the main command
17+
exec su - sentry -c "cd /workspace/sentry/spec/apps/rails-mini && exec $*"

.devcontainer/entrypoint-svelte-mini.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ set -e
33

44
echo "Installing npm dependencies for Svelte mini..."
55

6-
# Ensure proper ownership of node_modules directory
7-
sudo chown -R sentry:sentry /workspace/sentry/spec/apps/svelte-mini/node_modules
6+
# Ensure proper ownership of workspace and node_modules directory
7+
chown -R sentry:sentry /workspace/sentry
8+
chown -R sentry:sentry /workspace/sentry/spec/apps/svelte-mini/node_modules
89

9-
# Install npm dependencies
10-
npm install
10+
# Switch to sentry user and install npm dependencies
11+
su - sentry -c "cd /workspace/sentry/spec/apps/svelte-mini && npm install"
1112

12-
exec "$@"
13+
# Switch to sentry user for the main command
14+
exec su - sentry -c "cd /workspace/sentry/spec/apps/svelte-mini && exec $*"

0 commit comments

Comments
 (0)