From 44bb7cdb563b01d1e11cb2c858d30cded4ecb758 Mon Sep 17 00:00:00 2001 From: smortezah Date: Fri, 17 Dec 2021 14:23:48 +0000 Subject: [PATCH] Add docker --- Dockerfile | 12 ++++++++++++ README.md | 20 +++++++++++++++----- 2 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..f421d141e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM ubuntu:20.04 +LABEL maintainer "Morteza Hosseini" + +ENV DEBIAN_FRONTEND=noninteractive +RUN apt update && apt install -y cmake g++ wget unzip + +RUN wget https://github.com/smortezah/smashpp/archive/refs/heads/master.zip +RUN unzip master.zip && rm -f master.zip +RUN mv smashpp-master smashpp + +WORKDIR /smashpp +RUN bash install.sh \ No newline at end of file diff --git a/README.md b/README.md index 9e491dc8b..a34540750 100755 --- a/README.md +++ b/README.md @@ -6,12 +6,14 @@ A fast tool to find and visualize rearrangements in DNA sequences. To install Smash++ on various operating systems, follow the instructions below. It requires CMake (>= 3.9) and a C++14 compliant compiler. Note that a precompiled executable is available for 64 bit operating systems in the `experiment/bin` directory. -### Conda - -Install [Miniconda](https://docs.conda.io/en/latest/miniconda.html), then run the following: - +### Docker +Pull the image by ```bash -conda install -c bioconda -y smashpp +docker pull smortezah/smashpp +``` +and run it: +```bash +docker run -it smortezah/smashpp ``` ### Ubuntu @@ -59,6 +61,14 @@ cd smashpp **Note**: in all operating systems, in the case of permission denial, you can use `sudo bash install.sh` instead of `./install.sh`. +### Conda + +Install [Miniconda](https://docs.conda.io/en/latest/miniconda.html), then run the following: + +```bash +conda install -c bioconda -y smashpp +``` + ## Run ```text