Include a Binary

Often times we need a binary in our workflow which we may not want to store in a repository with our workflow code. In this case, we can download a binary in our Dockerfile and unpack it. Below we download and unpack bowtie2.

RUN curl -L -o &&\
    unzip &&\
    mv bowtie2-2.4.4-linux-x86_64 bowtie2

Run Docker in Docker

Use —base-image dockerwithlatch init to use a base workflow environment which includes Docker. An example of running a containerized bowtie2 aligner in a Latch workflow can be found using latch init --template docker my_bowtie2_example.