Skip to content

Commit 543e08b

Browse files
authored
Merge pull request #332 from chrisfilo/enh/docker
added dockerfile
2 parents 2085bf0 + 0671459 commit 543e08b

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
tests
2+
.git
3+
node_modules

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM ubuntu:trusty
2+
3+
## Install the validator
4+
RUN apt-get update && \
5+
apt-get install -y curl && \
6+
curl -sL https://deb.nodesource.com/setup_8.x | bash - && \
7+
apt-get remove -y curl && \
8+
apt-get install -y nodejs && \
9+
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
10+
11+
COPY . /src
12+
13+
RUN npm install -g /src
14+
15+
ENTRYPOINT /usr/bin/bids-validator

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ If the validator seems to be working longer than couple of minutes please open [
1212
1. Install [Node.js](https://nodejs.org) (at least version 4.4.4)
1313
1. From a terminal run `npm install -g bids-validator`
1414
1. Run `bids-validator` to start validating datasets.
15+
1. Docker
16+
1. Install Docker
17+
1. From a terminal run `docker run -ti --rm -v /path/to/data:/data:ro bids/validator /data`
1518

1619
## Support
1720

0 commit comments

Comments
 (0)