-
Notifications
You must be signed in to change notification settings - Fork 16
Update to headless whippersnappy #98
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
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
b55e342
Update to headless whippersnappy
kdiers ac29537
Fix grammatical typo in Singularity.md
Copilot 7c05a5a
Apply suggestion from @m-reuter
m-reuter f3031a5
Apply suggestion from @m-reuter
m-reuter 706c493
Apply suggestion from @m-reuter
m-reuter 38e35c2
Update docker
kdiers 43047d3
Removed support and tests for Python3.9
kdiers 0ef7987
Formatting
kdiers 61750bd
Update singularity/Singularity.md
kdiers dba330a
Updated documentation
kdiers da7bd37
Removed support for Python3.9
kdiers 0329777
Applied ruff changes
kdiers ecb02cc
Updated github workflows
kdiers 6a176ed
Support for Python 3.13 and added codespell configuration
kdiers d861f55
Removed obsolete configuration files
kdiers 860f556
Codespell configuration
kdiers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Empty file.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| # Python Build Artifacts | ||
| .Python | ||
| **/__pycache__/ | ||
| **/*.py[cod] | ||
| **/build/ | ||
| **/develop-eggs/ | ||
| **/dist/ | ||
| **/downloads/ | ||
| **/eggs/ | ||
| **/.eggs/ | ||
| **/lib/ | ||
| **/lib64/ | ||
| **/parts/ | ||
| **/sdist/ | ||
| **/var/ | ||
| **/wheels/ | ||
| **/*.egg-info/ | ||
| **/.installed.cfg | ||
| **/*.egg | ||
| **/MANIFEST | ||
|
|
||
| # Test & Coverage Files | ||
| .pytest_cache/ | ||
| .ruff_cache/ | ||
| .tox/ | ||
| .nox/ | ||
| coverage.xml | ||
| .coverage | ||
| .coverage.* | ||
| htmlcov/ | ||
| junit-results.xml | ||
| tests/ | ||
|
|
||
| # Version Control | ||
| .git/ | ||
| .gitignore | ||
| .gitattributes | ||
| .github/ | ||
|
|
||
| # Editor / IDE Files | ||
| .ipynb_checkpoints | ||
| .idea/ | ||
| .vscode/ | ||
| *.swp | ||
| *.swo | ||
| *~ | ||
|
|
||
| # Virtual Environments | ||
| venv/ | ||
| .venv/ | ||
| env/ | ||
| .env/ | ||
|
|
||
| # Docker Files | ||
| .dockerignore | ||
| docker | ||
| docker/Dockerfile | ||
|
|
||
| # Singularity files | ||
| singularity | ||
| *sif | ||
|
|
||
| # Local Config Files | ||
| .env | ||
| *.env.* | ||
| *.pem | ||
| *.key | ||
|
|
||
| # OS files | ||
| .DS_Store | ||
| Thumbs.db | ||
|
|
||
| # Documentation | ||
| howto* |
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,45 +1,57 @@ | ||
| # get OS | ||
| FROM ubuntu:22.04 | ||
|
|
||
| # update OS | ||
| RUN apt-get update | ||
| FROM python:3.11 | ||
|
|
||
| # get additional packages | ||
| RUN apt-get install -y --no-install-recommends \ | ||
| gcc \ | ||
| git \ | ||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| time \ | ||
| zlib1g-dev \ | ||
| libjpeg-dev \ | ||
| python3 \ | ||
| python3-dev \ | ||
| python3-pip \ | ||
| python3-setuptools \ | ||
| python3-wheel \ | ||
| libxcb-xinerama0 \ | ||
| xvfb \ | ||
| libopengl0 \ | ||
| libegl1-mesa | ||
|
|
||
| # clone fsqc | ||
| RUN git clone https://github.com/Deep-MI/fsqc.git /app/fsqc | ||
| libegl1 \ | ||
| libgl1 \ | ||
| libfontconfig1 && \ | ||
| apt-get clean && \ | ||
| rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # upgrade pip | ||
| RUN pip3 install --upgrade pip | ||
| RUN pip install --upgrade pip | ||
|
|
||
| # | ||
| RUN mkdir -p /app/fsqc | ||
|
|
||
| # install additional python packages (not necessary if using pip install) | ||
| RUN pip3 install -r /app/fsqc/requirements.txt | ||
| # | ||
| COPY pyproject.toml /app/fsqc | ||
| COPY setup.py /app/fsqc | ||
| COPY requirements.txt /app/fsqc | ||
| COPY DESCRIPTION.md /app/fsqc | ||
| COPY LICENSE /app/fsqc | ||
| COPY VERSION /app/fsqc | ||
| COPY fsqc /app/fsqc/fsqc | ||
| COPY run_fsqc /app/fsqc | ||
|
|
||
| # install fsqc as a package | ||
| RUN pip install /app/fsqc | ||
|
|
||
| # Add other environment variables | ||
| ENV OMP_NUM_THREADS=1 | ||
| ENV MPLCONFIGDIR=/tmp/mplconfigdir | ||
|
|
||
| # Set the working directory to /app | ||
| WORKDIR /app | ||
| # Suppress Mesa's shader-cache warning ("Failed to create //.cache …") that | ||
| # appears when running as a non-standard user inside Docker where $HOME is | ||
| # unset or points to a non-writable directory. | ||
| ENV MESA_SHADER_CACHE_DISABLE=1 | ||
|
|
||
| # In order to find NVIDIA GPUs (--gpus all) | ||
| ENV NVIDIA_VISIBLE_DEVICES=all | ||
| ENV NVIDIA_DRIVER_CAPABILITIES=all | ||
|
|
||
| # Set entrypoint (non-interactive mode) | ||
| ENTRYPOINT ["python3", "/app/fsqc/run_fsqc"] | ||
| # Register the NVIDIA EGL ICD so libEGL finds the GPU driver | ||
| RUN mkdir -p /usr/share/glvnd/egl_vendor.d && \ | ||
| echo '{"file_format_version":"1.0.0","ICD":{"library_path":"libEGL_nvidia.so.0"}}' \ | ||
| > /usr/share/glvnd/egl_vendor.d/10_nvidia.json | ||
|
|
||
| ## Run app when the container launches (interactive mode) | ||
| #CMD ["/bin/bash"] | ||
| # Set the working directory to /app | ||
| WORKDIR /app | ||
|
|
||
| # Set entrypoint | ||
| ENTRYPOINT ["run_fsqc"] |
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.