bioinformatics/miniwdl:1.16.0
Version sha256.d41e2ce5ea026f024f8166b9e94ae368bc441096ef348f8389a0c8064ca00903
Image size: 43.5 MB
For more on pulling from the registry, see the ilifu documentation.
First, once: add the registry and make it your default
singularity remote add --no-login idia-registry https://sregistry.idia.ac.za
singularity remote use idia-registry
If you added it before, as the ilifu docs describe, remote add says it already exists: just run remote use.
Log in, for a private collection
singularity remote login idia-registry
Paste a token from your token page when asked. Public collections need no login.
Pull the container
singularity pull library://bioinformatics/miniwdl:1.16.0
Shell into the container
singularity shell library://bioinformatics/miniwdl:1.16.0
Run the container
singularity run library://bioinformatics/miniwdl:1.16.0
First, once: add the registry and make it your default
apptainer remote add --no-login idia-registry https://sregistry.idia.ac.za
apptainer remote use idia-registry
If you added it before, as the ilifu docs describe, remote add says it already exists: just run remote use.
Log in, for a private collection
apptainer remote login idia-registry
Paste a token from your token page when asked. Public collections need no login.
Pull the container
apptainer pull library://bioinformatics/miniwdl:1.16.0
Shell into the container
apptainer shell library://bioinformatics/miniwdl:1.16.0
Run the container
apptainer run library://bioinformatics/miniwdl:1.16.0
miniwdl 1.16.0 by the Chan Zuckerberg Initiative and the miniwdl contributors (https://github.com/chanzuckerberg/miniwdl).
This image packages the unmodified upstream release from PyPI. IDIA builds and maintains
the image only; report bugs in miniwdl itself at
https://github.com/chanzuckerberg/miniwdl/issues.
Documentation: https://miniwdl.readthedocs.io/
miniwdl is licensed under the MIT licence; the text is in /opt/miniwdl/LICENSE. The
other Python packages keep their own licences, in
/opt/venv/lib/python3.13/site-packages/*.dist-info. Upstream doesn't ask for a citation.
What this image is for: checking and inspecting WDL (miniwdl check, input_template,
zip), and the WDL Python package (import WDL). Running workflows ('miniwdl run') starts
each task in a container through a container runtime (Docker by default, or
Podman/Singularity/udocker). None is included, and one generally can't be started from
inside a Singularity container, so to run workflows on the cluster install miniwdl on
the host (e.g. with uv) and set [scheduler] container_backend = singularity.
Usage (bind your data, e.g. -B /scratch):
singularity run miniwdl.sif check my_workflow.wdl
singularity run miniwdl.sif input_template my_workflow.wdl > inputs.json
singularity exec miniwdl.sif python -c 'import WDL; print(WDL.load("my_workflow.wdl").workflow.name)'
No workflows or reference data are included: bind your own with -B.
This image has 2 apps. Pick one to see how to use it.
singularity run --app miniwdl library://bioinformatics/miniwdl:1.16.0
This works once you've added the registry as a remote (see the CLI tab). Add the app's arguments after the command. With Apptainer, start it with apptainer instead.
Help
The miniwdl command line, the same as the default runscript: check validates and
lints WDL, input_template writes a skeleton inputs JSON, and zip bundles a workflow
with its imports. shellcheck isn't in the image, so check prints a suggestion to
install it; --suppress CommandShellCheck hides that. 'miniwdl run' needs a container
runtime, which can't generally be started from inside Singularity: to run workflows,
install miniwdl on the host and set [scheduler] container_backend = singularity.
singularity run --app miniwdl -B /scratch miniwdl.sif check --strict my_workflow.wdl
Docs: https://miniwdl.readthedocs.io/en/latest/check.html
Runs
exec /opt/venv/bin/miniwdl "$@"
singularity run --app python library://bioinformatics/miniwdl:1.16.0
This works once you've added the registry as a remote (see the CLI tab). Add the app's arguments after the command. With Apptainer, start it with apptainer instead.
Help
The image's Python 3.13 with miniwdl's WDL package: import WDL to parse, typecheck
and walk WDL documents from your own scripts (e.g. WDL.load("my_workflow.wdl")).
singularity run --app python miniwdl.sif -c 'import WDL; print([t.name for t in WDL.load("my_workflow.wdl").tasks])'
Docs: https://miniwdl.readthedocs.io/en/latest/WDL.html
Runs
exec /opt/venv/bin/python "$@"
Bootstrap: docker
From: python:3.13.18-slim-trixie
Stage: build
%post
set -eu
export PIP_NO_CACHE_DIR=1 PIP_DISABLE_PIP_VERSION_CHECK=1
# Every package is pinned and hash-checked (--require-hashes), and only wheels are
# accepted, so nothing is compiled. The set was resolved for CPython 3.13 on
# manylinux x86_64 from 'miniwdl==1.16.0' (excluding releases newer than 2026-10-27);
# the hashes are PyPI's for those wheels, checked by downloading each one.
cat > /tmp/requirements.txt <<'REQS'
argcomplete==3.7.2 \
--hash=sha256:6029205678bdd9c1c728a155f5f9ecf5812393f969eef58807641a2bc2aa5b19
certifi==2026.10.23 \
--hash=sha256:e9b54de76e530bb6cf0ccd036787103acb58fd42ba930ea8bf948ddbaa2f61d1
charset-normalizer==3.5.2 \
--hash=sha256:7218e8f32b0956cfcd048fd42d9d5779809745ca1d86113ca56f66e7ae1549c4 \
--hash=sha256:1c50fe28bbc2ced33386f298650d91218076c05420e6cbd790b913adc41659e7 \
--hash=sha256:b6b751274acb69d77b3323d6b7dbaa3c7fdfc1eb829b7eb61d262f32e1af9685
coloredlogs==15.0.1 \
--hash=sha256:612ee75c546f53e92e70049c9dbfcc18c935a2b9a53b66085ce9ef6a6e5c0934
docker==7.2.0 \
--hash=sha256:a3f45fdeb9165e2d25d9a1d02ddf3bc70fb572cf5ebbf9b58558c22caf29b71f
humanfriendly==10.0 \
--hash=sha256:1697e1a8a8f550fd43c2865cd84542fc175a61dcb779b6fee18cf6b6ccba1477
idna==3.20 \
--hash=sha256:ab7ae7122974553370f0bdb919e1a960b2cd1bc1ef0276416d896db81c14582c
lark==1.3.1 \
--hash=sha256:c629b661023a014c37da873b4ff58a817398d12635d3bbb2c5a03be7fe5d1e12
miniwdl==1.16.0 \
--hash=sha256:08ddf9fc1bcddd1686a1b2d17a099ef6af3f9c07f4334c135fa0663c93c3678b
prompt-toolkit==3.0.53 \
--hash=sha256:01c0891d7f9237d5e339f7d3e42cdae80b7534abb1c7c0e3352efba6231492f2
psutil==7.2.2 \
--hash=sha256:076a2d2f923fd4821644f5ba89f059523da90dc9014e85f8e45a5774ca5bc6f9
python-json-logger==4.2.0 \
--hash=sha256:158a52126fcd6869e09574d2b66272666f3dc8f468c62637ef9a1fa883719cb9
questionary==2.1.1 \
--hash=sha256:a51af13f345f1cdea62347589fbb6df3b290306ab8930713bfae4d475a7d4a59
regex==2026.9.29 \
--hash=sha256:d49c18f1ea294cf4adde2e5ac256e98c82ea9d708462ce4bf799dffa7cfe8a2c
requests==2.34.2 \
--hash=sha256:2a0d60c172f83ac6ab31e4554906c0f3b3588d37b5cb939b1c061f4907e278e0
ruamel-yaml==0.19.1 \
--hash=sha256:27592957fedf6e0b62f281e96effd28043345e0e66001f97683aa9a40c667c93
urllib3==2.8.0 \
--hash=sha256:0cf3cae568d36aa9576b28dfb35f11328f1cb974ca7647d9475ebb86c75ac6e3
wcwidth==0.9.4 \
--hash=sha256:b185c8b927b23af2721be1783499d1cfa5c028b098b0858951b4ae224477f1c2 \
--hash=sha256:901eace6d2dd25ebb917d0ce5db18e5c537e1504c905cf32f0d006c12098b05d
xdg==6.0.0 \
--hash=sha256:df3510755b4395157fc04fc3b02467c777f3b3ca383257397f09ab0d4c16f936
REQS
# A venv without pip: the image's own pip installs into it, so pip stays out of /opt/venv.
python -m venv --without-pip /opt/venv
python -m pip --python /opt/venv/bin/python install --no-deps --only-binary :all: \
--require-hashes -r /tmp/requirements.txt
rm -f /tmp/requirements.txt
# Bytecode caches and test suites aren't needed at run time.
# NOTE: the compiled wheels (regex, psutil, charset-normalizer, wcwidth) are left
# unstripped: they're auditwheel-repaired upstream, and strip can corrupt them.
site=/opt/venv/lib/python3.13/site-packages
find "${site}" -depth -type d \( -name tests -o -name __pycache__ \) -exec rm -rf {} +
mkdir -p /opt/miniwdl
install -m 0644 "${site}/miniwdl-1.16.0.dist-info/licenses/LICENSE" /opt/miniwdl/LICENSE
Bootstrap: docker
From: python:3.13.18-slim-trixie
Stage: final
%files from build
/opt/venv /opt/venv
/opt/miniwdl /opt/miniwdl
%labels
Maintainer IDIA <support@ilifu.ac.za>
Version 1.16.0
Source https://github.com/chanzuckerberg/miniwdl
License MIT
Authors Chan Zuckerberg Initiative (CZI) and the miniwdl contributors
%help
miniwdl 1.16.0 by the Chan Zuckerberg Initiative and the miniwdl contributors (https://github.com/chanzuckerberg/miniwdl).
This image packages the unmodified upstream release from PyPI. IDIA builds and maintains
the image only; report bugs in miniwdl itself at
https://github.com/chanzuckerberg/miniwdl/issues.
Documentation: https://miniwdl.readthedocs.io/
miniwdl is licensed under the MIT licence; the text is in /opt/miniwdl/LICENSE. The
other Python packages keep their own licences, in
/opt/venv/lib/python3.13/site-packages/*.dist-info. Upstream doesn't ask for a citation.
What this image is for: checking and inspecting WDL (miniwdl check, input_template,
zip), and the WDL Python package (import WDL). Running workflows ('miniwdl run') starts
each task in a container through a container runtime (Docker by default, or
Podman/Singularity/udocker). None is included, and one generally can't be started from
inside a Singularity container, so to run workflows on the cluster install miniwdl on
the host (e.g. with uv) and set [scheduler] container_backend = singularity.
Usage (bind your data, e.g. -B /scratch):
singularity run miniwdl.sif check my_workflow.wdl
singularity run miniwdl.sif input_template my_workflow.wdl > inputs.json
singularity exec miniwdl.sif python -c 'import WDL; print(WDL.load("my_workflow.wdl").workflow.name)'
No workflows or reference data are included: bind your own with -B.
%environment
export PATH=/opt/venv/bin:${PATH}
%runscript
exec /opt/venv/bin/miniwdl "$@"
%apprun miniwdl
exec /opt/venv/bin/miniwdl "$@"
%apphelp miniwdl
The miniwdl command line, the same as the default runscript: check validates and
lints WDL, input_template writes a skeleton inputs JSON, and zip bundles a workflow
with its imports. shellcheck isn't in the image, so check prints a suggestion to
install it; --suppress CommandShellCheck hides that. 'miniwdl run' needs a container
runtime, which can't generally be started from inside Singularity: to run workflows,
install miniwdl on the host and set [scheduler] container_backend = singularity.
singularity run --app miniwdl -B /scratch miniwdl.sif check --strict my_workflow.wdl
Docs: https://miniwdl.readthedocs.io/en/latest/check.html
%apprun python
exec /opt/venv/bin/python "$@"
%apphelp python
The image's Python 3.13 with miniwdl's WDL package: import WDL to parse, typecheck
and walk WDL documents from your own scripts (e.g. WDL.load("my_workflow.wdl")).
singularity run --app python miniwdl.sif -c 'import WDL; print([t.name for t in WDL.load("my_workflow.wdl").tasks])'
Docs: https://miniwdl.readthedocs.io/en/latest/WDL.html
%test
set -eu
/opt/venv/bin/miniwdl --version | grep -qx 'miniwdl v1\.16\.0'
workdir=$(mktemp -d)
cat > "${workdir}/hello.wdl" <<'WDL'
version 1.0
task hello {
input {
String who
}
command <<<
echo "hello ~{who}"
>>>
output {
String greeting = read_string(stdout())
}
}
workflow hello_wf {
call hello
output {
String greeting = hello.greeting
}
}
WDL
/opt/venv/bin/miniwdl check "${workdir}/hello.wdl" | grep -qE '^ *workflow hello_wf$'
/opt/venv/bin/python -c 'import sys, WDL; doc = WDL.load(sys.argv[1]); assert doc.workflow.name == "hello_wf"' "${workdir}/hello.wdl"
rm -rf "${workdir}"
test -s /opt/miniwdl/LICENSE
Download bioinformatics-miniwdl_1.16.0.def
#!/bin/sh
exec /opt/venv/bin/miniwdl "$@"
#!/bin/sh
set -eu
/opt/venv/bin/miniwdl --version | grep -qx 'miniwdl v1\.16\.0'
workdir=$(mktemp -d)
cat > "${workdir}/hello.wdl" <<'WDL'
version 1.0
task hello {
input {
String who
}
command <<<
echo "hello ~{who}"
>>>
output {
String greeting = read_string(stdout())
}
}
workflow hello_wf {
call hello
output {
String greeting = hello.greeting
}
}
WDL
/opt/venv/bin/miniwdl check "${workdir}/hello.wdl" | grep -qE '^ *workflow hello_wf$'
/opt/venv/bin/python -c 'import sys, WDL; doc = WDL.load(sys.argv[1]); assert doc.workflow.name == "hello_wf"' "${workdir}/hello.wdl"
rm -rf "${workdir}"
test -s /opt/miniwdl/LICENSE
# /.singularity.d/env/10-docker2singularity.sh
#!/bin/sh
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
export LANG="${LANG:-"C.UTF-8"}"
export GPG_KEY="${GPG_KEY:-"7169605F62C751356D054A26A821E680E5FA6305"}"
export PYTHON_VERSION="${PYTHON_VERSION:-"3.13.18"}"
export PYTHON_SHA256="${PYTHON_SHA256:-"abb0102e6d4ae027509bcb82327d9dd85515b44a3ba8ad538cfc5e9847029f68"}"
# /.singularity.d/env/90-environment.sh
#!/bin/sh
# Custom environment shell code should follow
export PATH=/opt/venv/bin:${PATH}