Skip to content

build(docker): drop the bash -c entrypoint - #1226

Open
jma wants to merge 1 commit into
rero:stagingfrom
jma:build/docker-entrypoint
Open

jma wants to merge 1 commit into
rero:stagingfrom
jma:build/docker-entrypoint

Conversation

@jma

@jma jma commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

The image ran its commands through ENTRYPOINT ["bash", "-c"]. In docker compose, command replaces only CMD, so bash -c ran just the first word of each command (uv) and the containers of sonar-copy kept restarting. The deployment works around it with entrypoint: [].

  • Runs the commands as given, as the images of rero-ils and rero-mef do.
  • Nothing in this repository or in the deployments relies on bash -c: the K8s manifests set command, which already replaced the entrypoint.

* Run the commands as given, as the images of rero-ils and rero-mef do:
  in docker compose, `bash -c` ran only the first word of a command,
  so the containers of sonar-copy kept restarting.

Co-Authored-by: Johnny Mariéthoz <Johnny.Mariethoz@rero.ch>
@jma
jma marked this pull request as ready for review November 30, 2026 10:54
@jma
jma requested review from PascalRepond and rerowep November 30, 2026 10:55
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Dockerfile no longer declares bash -c as the final image’s entrypoint.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Merge Risk: Minimal · up to be742

The image now runs commands exactly as given, which fixes the Docker Compose command handling that broke the sonar-copy containers. Nothing in the repository depends on the old bash -c entrypoint. The deployment manifests are outside this repository, so the author should confirm them before rollout.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "build(docker): drop the bash -c entrypoint" matches the sole change in the changeset, which removes the ENTRYPOINT ["bash", "-c"] declaration from the Dockerfile (2 lines removed, no other …
Description check Passed The description explains the problem (bash -c with docker compose command replacing only CMD runs only the first word, causing sonar-copy restarts), the workaround (entrypoint: []), and the intended b…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "build(docker): drop the bash -c entrypoint" matches the sole change in the changeset, which removes the ENTRYPOINT ["bash", "-c"] declaration from the Dockerfile (2 lines removed, no other changes). It is concise, specific, and follows a conventional commit style.

Full details: Description check

Explanation

The description explains the problem (bash -c with docker compose command replacing only CMD runs only the first word, causing sonar-copy restarts), the workaround (entrypoint: []), and the intended behavior change (commands run as given). It relates directly to the Dockerfile change and is not off-topic.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 170d3074-ed49-40c6-9861-f548743a58ac
Commits

Reviewing files that changed from the base of the PR and between 708251e and be7422d.

Files selected for processing: 1

  • Dockerfile
Files with no reviewable changes: 1

  • Dockerfile

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants