Skip to content

Commit

Permalink
Merge pull request #50 from harvardinformatics/docker
Browse files Browse the repository at this point in the history
Dockerize
  • Loading branch information
dzerbino authored Jun 2, 2020
2 parents 7189d39 + 597d848 commit c1daac8
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.git
Dockerfile
29 changes: 29 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM ubuntu:20.04 AS builder

RUN apt update && apt install -y --no-install-recommends \
ca-certificates \
libgsl-dev \
libhts-dev \
libbigwig-dev \
libcurl4-openssl-dev \
gcc \
python \
make

WORKDIR /WiggleTools

COPY . .

RUN make LIBS='-lwiggletools -lBigWig -lcurl -lhts -lgsl -lgslcblas -lz -lpthread -lm -llzma' \
&& make test

FROM ubuntu:20.04

RUN apt update && apt install -y --no-install-recommends \
ca-certificates \
libbigwig0 \
libcurl4 \
libgsl23 \
libhts3

COPY --from=builder /WiggleTools/bin/wiggletools /usr/local/bin
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,19 @@ Brew Installation
brew install brewsci/bio/wiggletools
```

Docker Installation
-----------------

Build a WiggleTools Docker image:
```
docker build -t wiggletools .
```

Run the resulting wiggletools executable, bind-mounting the current working directory into the container:
```
docker run -v $PWD:/mnt -w /mnt --rm wiggletools wiggletools [...arguments...]
```

Pre-requisites
--------------

Expand Down

0 comments on commit c1daac8

Please sign in to comment.