-
-
Notifications
You must be signed in to change notification settings - Fork 2
feat: Add ownership and permissions setup for node_modules directory in initialization script. #112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…in initialization script.
Warning Rate limit exceeded@terabytesoftw has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 11 minutes and 38 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
WalkthroughThe changes correct a syntax issue in the Docker entrypoint script and enhance the Docker initialization script by adding logic to manage ownership and permissions for the Changes
Sequence Diagram(s)sequenceDiagram
participant InitScript as docker/init.sh
participant System as OS
participant User as www-data
InitScript->>System: Install Composer dependencies
InitScript->>System: chown /app/vendor to www-data
alt chown /app/vendor succeeds
InitScript->>System: chmod 775 /app/vendor
InitScript->>InitScript: Print success message
else chown /app/vendor fails
InitScript->>InitScript: Print warning message
end
InitScript->>System: chown /app/node_modules to www-data
alt chown /app/node_modules succeeds
InitScript->>System: chmod 775 /app/node_modules
InitScript->>InitScript: Print success message
else chown /app/node_modules fails
InitScript->>InitScript: Print warning message
end
Possibly related PRs
Poem
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #112 +/- ##
===========================================
Coverage 100.00% 100.00%
Complexity 36 36
===========================================
Files 23 23
Lines 621 621
===========================================
Hits 621 621 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (1)
docker/entrypoint.sh (1)
11-14
: Code afterexec
is dead ‑ consider guarding or removing
exec /usr/local/bin/init.sh
replaces PID 1; the echo/ comment below will never execute. Either delete those lines or guard with||
to surface a failure frominit.sh
.-exec /usr/local/bin/init.sh - -# If we get here, everything went well -echo "=== Container ready ===" +# Replace the current shell; emit error only if init.sh exits +exec /usr/local/bin/init.sh || { + echo "=== init.sh exited unexpectedly ===" >&2 + exit 1 +}
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
docker/entrypoint.sh
(1 hunks)docker/init.sh
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (17)
- GitHub Check: codeception / PHP 8.3-windows-latest
- GitHub Check: codeception / PHP 8.4-windows-latest
- GitHub Check: codeception / PHP 8.3-ubuntu-latest
- GitHub Check: codeception / PHP 8.2-ubuntu-latest
- GitHub Check: codeception / PHP 8.1-windows-latest
- GitHub Check: codeception / PHP 8.2-windows-latest
- GitHub Check: codeception / PHP 8.4-ubuntu-latest
- GitHub Check: codeception / PHP 8.1-ubuntu-latest
- GitHub Check: phpstan / PHP 8.4-ubuntu-latest
- GitHub Check: test-apache
- GitHub Check: test-nginx
- GitHub Check: test-frankenphp
- GitHub Check: codeception / PHP 8.4-windows-latest
- GitHub Check: codeception / PHP 8.3-windows-latest
- GitHub Check: codeception / PHP 8.1-windows-latest
- GitHub Check: codeception / PHP 8.2-windows-latest
- GitHub Check: test-frankenphp
🔇 Additional comments (1)
docker/entrypoint.sh (1)
2-2
: Strict-mode fix looks good
Removing the stray “+” restores valid syntax and keepsset -euo pipefail
in effect.
…irectory after Composer installation.
Summary by CodeRabbit