Created
March 9, 2020 19:52
-
-
Save cjw85/56a1eed7cfc2d5bacbace6ec89339c9c to your computer and use it in GitHub Desktop.
flappie ubuntu 18.04 docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
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
I built a docker image based on Dockerfile but how may I run flappie? To run a container I should set up port but then I would need to have a flappier install on client side. Do I need to commit a different run command to run interactively inside the container? Like bin/bash?