Skip to content
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(docker): Pre-create "$HOME/.gradle" for proper permissions #9935

Merged
merged 1 commit into from
Feb 16, 2025

Conversation

sschuberth
Copy link
Member

Fixes #9756.

@sschuberth sschuberth requested a review from a team as a code owner February 14, 2025 14:33
@sschuberth sschuberth enabled auto-merge (rebase) February 14, 2025 14:33
fviernau
fviernau previously approved these changes Feb 14, 2025
Copy link

codecov bot commented Feb 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.46%. Comparing base (4eedf22) to head (3022127).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #9935   +/-   ##
=========================================
  Coverage     68.46%   68.46%           
  Complexity     1309     1309           
=========================================
  Files           250      250           
  Lines          8881     8881           
  Branches        924      924           
=========================================
  Hits           6080     6080           
  Misses         2409     2409           
  Partials        392      392           
Flag Coverage Δ
funTest-non-docker 33.36% <ø> (ø)
test-ubuntu-24.04 36.16% <ø> (ø)
test-windows-2022 36.14% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Dockerfile Outdated
@@ -582,8 +582,8 @@ ENV PATH=$PATH:/opt/ort/bin
USER $USER
WORKDIR $HOME

# Ensure that the ORT data directory exists to be able to mount the config into it with correct permissions.
RUN mkdir -p "$HOME/.ort"
# Ensure that data directories exist to be able to mount volumes from the host into them with correct permissions.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Maybe just "that these directories" and scratch "into them" (same below).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I somehow wanted to express that this mostly is about existing data on the host being made available in the container, and that there is only a problem if you mount "into" a nested path inside the container where any intermediate path is not existing in the container.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found that it sounds weird but it's just a nit anyway.

@sschuberth
Copy link
Member Author

Merging despite the unrelated GoModFunTest failure.

@sschuberth sschuberth disabled auto-merge February 16, 2025 10:46
@sschuberth sschuberth merged commit 8b31459 into main Feb 16, 2025
25 of 26 checks passed
@sschuberth sschuberth deleted the docker-gradle-home branch February 16, 2025 10:46
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.

Using GradleInspector with gradle.properties in ORT docker image
3 participants