Python-based Forgejo renderers that are compiled into single-file executables, which run in a Forgejo Alpine Linux container.
- Python 80%
- Makefile 20%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
A mistmatch can occur, when a `.nii` file is actually something other than a NIfTI1 file. That could be, for example, a git-annex pointer file (no content present). |
||
| dcm | ||
| nii | ||
| .gitignore | ||
| Makefile | ||
| README.md | ||
NiBabel-based renderer for Forgejo
Available renderers
DICOM (dcm)
[markup.dicom]
ENABLED = true
FILE_EXTENSIONS = .dcm
RENDER_COMMAND = "/var/lib/gitea/custom/scripts/render_dcm"
IS_INPUT_FILE = true
NIfTI1 (nii)
[markup.nifti]
ENABLED = true
FILE_EXTENSIONS = .nii,.nii.gz
RENDER_COMMAND = "/var/lib/gitea/custom/scripts/render_nii"
Build a self-contained executable
Also see the Makefile.
Inside the source directory of a renderer execute:
podman run \
--rm -v "${PWD}:/src" \
hub.datalad.org/forgejo/pyinstaller:latest \
--noconfirm --onefile --clean \
render_nii.py