Skip to content

Commit

Permalink
Merge pull request #332 from chrisfilo/enh/docker
Browse files Browse the repository at this point in the history
added dockerfile
  • Loading branch information
chrisgorgo authored Oct 12, 2017
2 parents 2085bf0 + 0671459 commit 543e08b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
tests
.git
node_modules
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM ubuntu:trusty

## Install the validator
RUN apt-get update && \
apt-get install -y curl && \
curl -sL https://deb.nodesource.com/setup_8.x | bash - && \
apt-get remove -y curl && \
apt-get install -y nodejs && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

COPY . /src

RUN npm install -g /src

ENTRYPOINT /usr/bin/bids-validator
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ If the validator seems to be working longer than couple of minutes please open [
1. Install [Node.js](https://nodejs.org) (at least version 4.4.4)
1. From a terminal run `npm install -g bids-validator`
1. Run `bids-validator` to start validating datasets.
1. Docker
1. Install Docker
1. From a terminal run `docker run -ti --rm -v /path/to/data:/data:ro bids/validator /data`

## Support

Expand Down

0 comments on commit 543e08b

Please sign in to comment.