Skip to content

Commit

Permalink
Merge pull request #586 from Remi-Gau/bids_validator
Browse files Browse the repository at this point in the history
[ENH] add templates bids_validator
  • Loading branch information
Remi-Gau authored Nov 12, 2023
2 parents 1a3b49d + 6e64b80 commit 8f15076
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
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 }}

0 comments on commit 8f15076

Please sign in to comment.