-
Notifications
You must be signed in to change notification settings - Fork 17
Fix Minor Stuff #27
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
Fix Minor Stuff #27
Conversation
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. WalkthroughAdds a Docker image preloading mechanism and systemd unit; updates Dockge and WebTerminal units to depend on it and removes their image-pull presteps. Adjusts Mosquitto to run as Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests
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. Comment |
- add time-sync target dependency to ensure clock synchronization before start - set start limit interval and burst to prevent excessive restart loops - implement pre-start command to wait for time sync, avoiding TLS certificate errors - modify docker compose pull with retry logic for network resilience
- Implement systemd service to preload bundled Docker images on boot - Update dockge and webterminal services to depend on preload service - Remove redundant pull commands from service files to optimize startup
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.
Pull Request Overview
This PR consolidates several minor fixes and improvements to the OpenMowerOS build configuration, focusing on container setup optimization and user experience improvements.
- Moves shell prompt customization from system-wide to ROS-specific context
- Configures Mosquitto to run with proper user permissions to suppress warnings
- Bundles Docker images to eliminate initial pull delays during startup
Reviewed Changes
Copilot reviewed 10 out of 17 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| stage-openmower/40-openmower/files/opt/stacks/openmower/compose.yaml | Adds mosquitto user configuration to Docker compose |
| stage-openmower/40-openmower/files/opt/stacks/openmower/.env | Updates ESC comment and removes STACK_NAME variable |
| stage-openmower/40-openmower/00-run-chroot.sh | Removes bash prompt modification for container context |
| stage-openmower/35-webterminal/files/etc/systemd/system/webterminal.service | Updates service dependencies to include preload service |
| stage-openmower/32-dockge/files/etc/systemd/system/dockge.service | Adds restart policies and preload dependency |
| stage-openmower/30-docker/files/etc/systemd/system/docker-preload-images.service | Creates new service for bundled image loading |
| stage-openmower/30-docker/00-run.sh | Implements Docker image bundling and extraction logic |
| stage-openmower/30-docker/00-run-chroot.sh | Enables preload service and creates image directory |
| WHATSNEW.md | Updates documentation links and descriptions |
| README.md | Corrects documentation and improves setup instructions |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Fix typo Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Fix typo Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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: 3
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (2)
.github/img/dockge_01.jpgis excluded by!**/*.jpgstage-openmower/30-docker/files/opt/docker-images/ttyd.tar.gzis excluded by!**/*.gz
📒 Files selected for processing (10)
README.md(4 hunks)WHATSNEW.md(2 hunks)stage-openmower/30-docker/00-run-chroot.sh(1 hunks)stage-openmower/30-docker/00-run.sh(1 hunks)stage-openmower/30-docker/files/etc/systemd/system/docker-preload-images.service(1 hunks)stage-openmower/32-dockge/files/etc/systemd/system/dockge.service(1 hunks)stage-openmower/35-webterminal/files/etc/systemd/system/webterminal.service(1 hunks)stage-openmower/40-openmower/00-run-chroot.sh(0 hunks)stage-openmower/40-openmower/files/opt/stacks/openmower/.env(1 hunks)stage-openmower/40-openmower/files/opt/stacks/openmower/compose.yaml(1 hunks)
💤 Files with no reviewable changes (1)
- stage-openmower/40-openmower/00-run-chroot.sh
⏰ 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). (1)
- GitHub Check: build
stage-openmower/30-docker/files/etc/systemd/system/docker-preload-images.service
Show resolved
Hide resolved
Moved container shell prefix to here instead of OpenMowerOS. See ClemensElflein/OpenMowerOS#27 ~~Draft, because not yet tested.~~ <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Shell prompt now shows a tractor emoji (🚜) when running in a virtualized environment. * Colorized prompt is automatically enabled when supported. * **Chores** * Streamlined .bashrc setup in the container by conditionally enabling force_color_prompt instead of always creating the file. * Removed legacy STACK_SHELL-based prompt prefix logic for a cleaner, consistent prompt behavior. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Clemens Elflein <clemens1@familie-elflein.de>
Moved container shell prefix to here instead of OpenMowerOS. See ClemensElflein/OpenMowerOS#27 ~~Draft, because not yet tested.~~ <!-- This is an auto-generated comment: release notes by coderabbit.ai --> * **New Features** * Shell prompt now shows a tractor emoji (🚜) when running in a virtualized environment. * Colorized prompt is automatically enabled when supported. * **Chores** * Streamlined .bashrc setup in the container by conditionally enabling force_color_prompt instead of always creating the file. * Removed legacy STACK_SHELL-based prompt prefix logic for a cleaner, consistent prompt behavior. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Clemens Elflein <clemens1@familie-elflein.de>
docker load(on 2nd boot)Draft, because not tested yetSummary by CodeRabbit
New Features
Documentation
Chores