Skip to content

Commit 238385d

Browse files
authored
Merge pull request #89 from pavelsne/iss82
Ensure validators are working on image build (#82) resolved
2 parents e8ad2ce + 07d41aa commit 238385d

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ RUN pip3 install odml
5959
# Copy odML validation script
6060
COPY ./scripts/odml-validate /bin
6161

62+
# Copy test data
63+
COPY ./resources /resources
64+
6265
# Install NIXPy for NIX validation
6366
# Use master branch until new beta is released
6467
RUN pip3 install --no-cache-dir -U git+https://github.com/G-Node/nixpy@master
@@ -81,5 +84,11 @@ ENV GIN_CONFIG_DIR /gin-valid/config/client
8184
COPY --from=binbuilder /gin-valid/ginvalid /
8285
COPY ./assets /assets
8386

87+
# Test validation
88+
RUN odml-validate /resources/odmldata.odml
89+
RUN nixio -h
90+
RUN nixio validate /resources/nixdata.nix
91+
RUN bids-validator --version
92+
8493
ENTRYPOINT /ginvalid --config=/gin-valid/config/cfg.json
8594
EXPOSE 3033

resources/nixdata.nix

6.18 KB
Binary file not shown.

resources/odmldata.odml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<?xml-stylesheet type="text/xsl" href="odmlDocument.xsl"?>
3+
<odML version="1.1">
4+
<id>4bb236c6-20f4-4ed5-9bc9-93be88ce3257</id>
5+
<section>
6+
<id>2a05c9fb-a667-4931-b3d2-7cf0adfe4d52</id>
7+
<type>n.s.</type>
8+
<name>sec</name>
9+
<property>
10+
<id>b97b08e8-4a8f-47b6-8799-dfac3b3e4b20</id>
11+
<name>prop</name>
12+
<value></value>
13+
</property>
14+
</section>
15+
</odML>

0 commit comments

Comments
 (0)