diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..82d13c86 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +# +# This container will install ARIBA from master +# +FROM debian:testing + +# +# Authorship +# +MAINTAINER ap13@sanger.ac.uk + +# +# Install the dependancies +# +RUN apt-get update -qq && apt-get install -y git bowtie2 cd-hit fastaq libc6 libfml0 libgcc1 libminimap0 libstdc++6 mash mummer python3 python3-setuptools python3-dev python3-pysam python3-pymummer python3-dendropy gcc g++ zlib1g-dev + +# +# Get the latest code from github and install +# +RUN git clone https://github.com/sanger-pathogens/ariba.git && cd ariba && python3 setup.py install diff --git a/README.md b/README.md index 9b8dd54d..b7da6011 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,21 @@ If the tests all pass, install: python3 setup.py install +### Docker +ARIBA can be run in a Docker container. First of all install Docker, then to install ARIBA run: + + docker pull sangerpathogens/ariba + +To use ARIBA you would use a command such as this (substituting in your directories), where your files are assumed to be stored in /home/ubuntu/data: + + docker run --rm -it -v /home/ubuntu/data:/data sangerpathogens/ariba ariba -h + + +### Debian (testing) +ARIBA is available in the latest version of Debian, and over time will progressively filter through to Ubuntu and other distributions which use Debian. To install it as root: + + sudo apt-get install ariba + ### Dependencies and environment variables