Skip to content
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

[ENH] add templates bids_validator #586

Merged
merged 4 commits into from
Nov 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/create_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def software() -> dict[str, dict[str, list[str]]]:
"ants": {
"methods": ["binaries", "source"],
},
"bids_validator": {"methods": ["binaries"]},
"cat12": {"methods": ["binaries"]},
"convert3d": {"methods": ["binaries"]},
"dcm2niix": {
Expand Down
42 changes: 42 additions & 0 deletions neurodocker/templates/bids_validator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: bids_validator
binaries:
urls:
"1.13.0": "https://github.com/bids-standard/bids-validator/releases/tag/v1.13.0"
"1.12.0": "https://github.com/bids-standard/bids-validator/releases/tag/v1.12.0"
"1.11.0": "https://github.com/bids-standard/bids-validator/releases/tag/v1.11.0"
"1.10.0": "https://github.com/bids-standard/bids-validator/releases/tag/v1.10.0"
"1.9.0": "https://github.com/bids-standard/bids-validator/releases/tag/v1.10.0"
arguments:
required:
- version
optional:
node_version: "20"
dependencies:
apt:
- ca-certificates
- curl
- apt-utils
- gnupg
yum:
- curl
# see install for node https://github.com/nodesource/distributions#installation-scripts
instructions: |
if [ ! -z `which node` ] ; then \
echo "node is installed, skipping its install." ; \
else \
{{ self.install_dependencies() }}
{%- if self.pkg_manager == "apt" %}
curl -SLO https://deb.nodesource.com/nsolid_setup_deb.sh
chmod 500 nsolid_setup_deb.sh
./nsolid_setup_deb.sh {{ self.node_version }}
{{ self.install(["nodejs"]) }} ; \
{% elif self.pkg_manager == "yum" %}
curl -SLO https://rpm.nodesource.com/nsolid_setup_rpm.sh
chmod 500 nsolid_setup_rpm.sh
./nsolid_setup_rpm.sh {{ self.node_version }}
{{ self.install(["nodejs --setopt=nodesource-nodejs.module_hotfixes=1"]) }} ; \
{% endif -%}
fi
node --version
npm --version
npm install -g bids-validator@{{ self.version }}
Loading