Open
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #400 +/- ##
==========================================
- Coverage 87.38% 85.17% -2.22%
==========================================
Files 76 72 -4
Lines 3386 3116 -270
==========================================
- Hits 2959 2654 -305
- Misses 427 462 +35 ☔ View full report in Codecov by Sentry. |
run as non-root users.
the correct env files in. No need to do it here as well, and it was failing due to lack of build args.
…n set file permissions correctly for the export directory, which is needed so that it can be deleted from inside the container.
creation later on
sense to delete stuff afterwards from the host side rather than the container side.
export variables any more.
enforce this to avoid any weird surprises.
2 tasks
Contributor
|
Had to run using Added as a secondary group and as its just a file permission I think that'd be fine. Example of permission error for a directory: |
milanmlft
approved these changes
Jul 4, 2024
Co-authored-by: Milan Malfait <m.malfait@ucl.ac.uk>
Following good practice: https://github.com/hadolint/hadolint/wiki/DL3059
# Conflicts: # .github/workflows/main.yml # docker/hasher-api/Dockerfile # docker/imaging-api/Dockerfile # docker/orthanc-anon/Dockerfile # docker/orthanc/Dockerfile # docker/pixl-python/Dockerfile # pixl_imaging/tests/docker-compose.yml # test/conftest.py
# Conflicts: # .github/workflows/main.yml # docker/hasher-api/Dockerfile # docker/imaging-api/Dockerfile # docker/orthanc-anon/Dockerfile # docker/orthanc/Dockerfile # docker/pixl-python/Dockerfile # pixl_imaging/tests/docker-compose.yml # test/conftest.py
13 tasks
jeremyestein
commented
Dec 18, 2024
| COPY --chown=orthanc:orthanc ./orthanc/orthanc-anon/plugin/pixl.py /etc/orthanc/pixl.py | ||
| COPY --chown=orthanc:orthanc ./orthanc/orthanc-anon/config /run/secrets | ||
|
|
||
| RUN sed -i "s/\${ORTHANC_CONCURRENT_JOBS}/${ORTHANC_CONCURRENT_JOBS:-5}/g" /run/secrets/orthanc.json |
Contributor
Author
There was a problem hiding this comment.
ORTHANC_CONCURRENT_JOBS doesn't seem to be declared as a build ARG for pixl_orthanc_anon. Is it just reverting to the given default value?
Contributor
Author
Contributor
|
Hmm I'd look for missing env variables for the failure |
jeremyestein
added a commit
that referenced
this pull request
Jan 6, 2025
Fixes #588 by de-duping the orthanc and PIXL dockerfiles. This was factored out from PR #400 which had become too big. * Merge three pixl python dockerfiles into one multi-stage dockerfile to avoid repetition. * Merge orthanc dockerfiles, downloading dicom spec at a more separate stage. * Specify healthcheck command in only one place
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #234. Waiting for testing on GAE before merging.
Note the addition of two new variables
PIXL_USER_UIDandPIXL_USER_GIDFirstly merge all the Dockerfiles for images that we control (imaging, export, hasher) to make this process easier.
Run all our python containers as the user/group pixl, which we create as part of the build process, using the UID/GID as specified in the config.
Export API mounts export dir read-only as it doesn't need to write any more.
Document how the host must be set up for this to work.
Do same for orthanc images.