-
Notifications
You must be signed in to change notification settings - Fork 31
Make fpindex executable #144
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
base: main
Are you sure you want to change the base?
Conversation
I tried using the ghcr.io/acoustid/acoustid-index:main image, and I had a file not found error. I checked and fpindex wasn't executable. I checked that it was indeed the issue with this simple Dockerfile which works: ``` FROM ghcr.io/acoustid/acoustid-index:main USER root RUN chmod +x /usr/bin/fpindex USER acoustid ``` So this change should fix this issue, but there might be a cleaner solution upstream fixing the zig build which should have added the permission itself.
WalkthroughFinal Docker stage adjusted to copy the built Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
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 |
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
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
Dockerfile(1 hunks)
🧰 Additional context used
🪛 Hadolint (2.14.0)
Dockerfile
[error] 19-19: unexpected '-'
expecting '', at least one space, or only the --checksum, --chown, --chmod, --link, --exclude flags or the src and dest paths
(DL1000)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@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: 0
🧹 Nitpick comments (1)
Dockerfile (1)
19-19: Prefer COPY over ADD for local files.The syntax fix to
--chmod=755is correct. However, Hadolint flags this becauseADDis overkill here—it's designed for remote URLs and auto-extraction. For copying a local file, useCOPY --chmod=755instead.-ADD --chmod=755 zig-out/bin/fpindex /usr/bin +COPY --chmod=755 zig-out/bin/fpindex /usr/binThis resolves the DL3020 linting hint and better conveys intent.
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
Dockerfile(1 hunks)
🧰 Additional context used
🪛 Hadolint (2.14.0)
Dockerfile
[error] 19-19: Use COPY instead of ADD for files and folders
(DL3020)
I tried using the
ghcr.io/acoustid/acoustid-index:mainimage, and I had a file not found error in the logs. I checked and fpindex wasn't executable.I checked that it was indeed the issue with this simple Dockerfile which works:
So the change in this PR should fix this issue, but there might be a cleaner solution upstream fixing the zig build which should have added the permission itself.