Skip to content

Instantly share code, notes, and snippets.

@cjw85
Created March 9, 2020 19:52
Show Gist options
  • Save cjw85/56a1eed7cfc2d5bacbace6ec89339c9c to your computer and use it in GitHub Desktop.
Save cjw85/56a1eed7cfc2d5bacbace6ec89339c9c to your computer and use it in GitHub Desktop.
flappie ubuntu 18.04 docker
FROM ubuntu:18.04
RUN groupadd -g 1001 -r flappie && useradd -r -u 999 -g flappie flappie
# Install flappie
RUN apt-get update \
&& apt-get install -y libcunit1 libhdf5-100 libopenblas-base cmake libcunit1-dev libhdf5-dev libopenblas-dev git git-lfs \
&& git lfs install \
&& git clone https://github.com/nanoporetech/flappie \
&& cd flappie \
&& git lfs install \
&& make flappie
# Remove devtools
RUN apt-get remove -y build-essential cmake libcunit1-dev libhdf5-dev libopenblas-dev \
&& apt-get autoremove -y \
&& apt-get clean
RUN cp /flappie/build/flappie /usr/local/bin/
USER flappie:flappie
ENTRYPOINT ["flappie"]
@cjw85
Copy link
Author

cjw85 commented Mar 10, 2020

You don't need to set up a port mapping, just a mount for where your data is, so something like:

docker run <image id> -v <host dir>:/data  /data

will run flappie on the data in your <host dir>. The docker documentation has a wealth on information concerning the running of containers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment