Skip to content

Commit

Permalink
Make it possible to use podman or docker
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed Oct 14, 2024
1 parent b52a37c commit aaabcb0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion utils/gen-docker-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,16 @@ VER=$(grep -Po '(?<=^__version__ = ).*' $thisd/../heudiconv/info.py | sed 's/"//

image="kaczmarj/neurodocker:0.9.1"

docker run --rm $image generate docker \
if hash podman; then
OCI_BINARY=podman
elif hash docker; then
OCI_BINARY=docker
else
echo "ERROR: no podman or docker found" >&2
exit 1
fi

${OCI_BINARY:-docker} run --rm $image generate docker \
--base-image neurodebian:bookworm \
--pkg-manager apt \
--dcm2niix \
Expand Down

0 comments on commit aaabcb0

Please sign in to comment.