Skip to content
Snippets Groups Projects
Commit c3c8a3d2 authored by SANCHEZ Theophile's avatar SANCHEZ Theophile
Browse files

improve Dockerfile and start writing tutorial

parent d4f41bcd
No related branches found
No related tags found
No related merge requests found
FROM rocker/tidyverse
LABEL version="0.01"
LABEL maintainer="Théophile Sanchez <theophile.sanchez@wsl.ch>"
RUN sudo apt-get update
# dependencies required by dada2
......@@ -50,4 +53,3 @@ RUN make install
WORKDIR /app/ecoprimers/src/
RUN make
# eDNA Docker
# eDNA docker
This repository contains a `Dockerfile` used to build the `edna_tools` docker image including Rstudio web server and the following packages:
- [`tidyverse`](https://www.tidyverse.org/)
- [`dada2`](https://benjjneb.github.io/dada2/index.html)
- [`ggplot`](https://ggplot2.tidyverse.org/reference/ggplot.html)
- [`OBITools`](https://pythonhosted.org/OBITools/welcome.html)
- [`cutadapt`](https://cutadapt.readthedocs.io/en/stable/)
- [`MKBRD`](https://gitlab.mbb.univ-montp2.fr/edna/custom_reference_database)
- [`vsearch`](https://github.com/torognes/vsearch)
- ['ecoprimers'](https://git.metabarcoding.org/obitools/ecoprimers/-/wikis/home)
This docker image allows to run a container with all the software needed for eDNA analysis. Independently from your operating system, ubuntu is launched with all the software pre-installed in a self-contained environment. Keep in mind that any modifications made inside the container (e.g. packages newly installed or files modified) will be lost after stopping it. Therefore, you need to use the `-v` argument to mount the local files inside the container as explained in the tutorial bellow. Modification made to the mounted files will not be lost and you can even create new files from inside the container in the mounted path.
The container includes Rstudio web interface which provides an R IDE (Integrated Development Environment) with a terminal to execute any bash command you may need.
## Docker tutorial
### Linux
Start the docker daemon by running:
```bash
sudo dockerd
```
In another terminal, download the image from dockerhub and run it with the following command:
```bash
docker run -v path/to/your/local/file:path/inside/the/container -p 8787:8787 thesanc/edna_tools
```
You should now be able to have access to the Rstudio instance by typing `localhost:8787` in your browser. You can log in with `rstudio` as username and the password provided by the output of the `docker run` command.
### Mac
### Windows
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment