-
-
Notifications
You must be signed in to change notification settings - Fork 125
Fix manual install to use APP_NAME and INSTALL_PATH properly #972
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
📝 WalkthroughWalkthroughThis pull request updates multiple bootstrap-related scripts to refine output behavior and enhance configurability. A comment in the bootstrap script is modified to clearly state that the script is displayed only when not in an "Atlantis" context. Additionally, the initialization templates now derive the Changes
Possibly related PRs
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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
Documentation and Community
|
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: 0
🧹 Nitpick comments (1)
rootfs/etc/init.d/bootstrap.sh (1)
1-5: Consider adding a proper shebang line.The static analysis tool indicates this file is missing a shebang line to specify the shell interpreter, which could lead to inconsistent behavior across different environments.
+#!/bin/bash # Otherwise (if not Atlantis) present user with bootstrap script to stdout gomplate -f /templates/bootstrap boot wrapper🧰 Tools
🪛 Shellcheck (0.10.0)
[error] 1-1: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
(SC2148)
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
rootfs/etc/init.d/bootstrap.sh(1 hunks)rootfs/templates/bootstrap(1 hunks)rootfs/usr/local/bin/boot(1 hunks)
🧰 Additional context used
🪛 Shellcheck (0.10.0)
rootfs/etc/init.d/bootstrap.sh
[error] 1-1: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
(SC2148)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: build-and-push (debian)
🔇 Additional comments (3)
rootfs/etc/init.d/bootstrap.sh (1)
1-1: Improved comment clarity is appreciated.The additional specification "(if not Atlantis)" clarifies exactly when the bootstrap script is presented to stdout, which improves readability and maintainability.
🧰 Tools
🪛 Shellcheck (0.10.0)
[error] 1-1: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
(SC2148)
rootfs/usr/local/bin/boot (1)
42-42: Good use of configurable APP_NAME variable.Using the APP_NAME environment variable with appropriate fallbacks improves configurability and ensures consistent naming throughout the initialization process. This aligns with the PR objective to properly use APP_NAME variables.
rootfs/templates/bootstrap (1)
4-6: Properly configured APP_NAME and INSTALL_PATH variables.The changes to APP_NAME and INSTALL_PATH variable definitions improve configurability by:
- Using environment variables as the primary source
- Providing appropriate fallbacks
- Using template functions to process the values
This implementation properly addresses the PR objective of fixing the manual installation to use APP_NAME and INSTALL_PATH variables correctly.
what
APP_NAMEandINSTALL_PATHproperlywhy