File tree Expand file tree Collapse file tree 2 files changed +16
-11
lines changed
Expand file tree Collapse file tree 2 files changed +16
-11
lines changed Original file line number Diff line number Diff line change 22set -e
33
44echo " 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
1214cd /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 $* "
Original file line number Diff line number Diff line change 33
44echo " 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 $* "
You can’t perform that action at this time.
0 commit comments