Last active
November 6, 2017 18:40
-
-
Save audy/26748bdf6f5e260dd6f6 to your computer and use it in GitHub Desktop.
PacBio SMRT Analysis Server in Docker
This file contains 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 centos | |
# following http://www.pacb.com/wp-content/uploads/2015/09/SMRT-Analysis-Software-Installation-v2.3.0.pdf | |
MAINTAINER [email protected] | |
ENV SMRT_ROOT=/opt/smrtanalysis/ | |
ENV SMRT_USER=smrtanalysis | |
ENV SMRT_GROUP=smrtanalysis | |
RUN yum groupinstall -y "Development Tools" | |
RUN yum install -y redhat-lsb net-tools | |
RUN groupadd $SMRT_GROUP | |
RUN adduser \ | |
--gid $SMRT_GROUP \ | |
--home-dir $SMRT_ROOT \ | |
--create-home \ | |
--shell /bin/bash \ | |
$SMRT_USER | |
USER $SMRT_USER | |
WORKDIR $SMRT_ROOT | |
RUN curl -LO -# \ | |
http://files.pacb.com/software/smrtanalysis/2.3.0/smrtanalysis_2.3.0.140936.run | |
RUN curl -LO -# \ | |
https://s3.amazonaws.com/files.pacb.com/software/smrtanalysis/2.3.0/smrtanalysis-patch_2.3.0.140936.p5.run | |
RUN bash \ | |
smrtanalysis_2.3.0.140936.run \ | |
-p smrtanalysis-patch_2.3.0.140936.p5.run \ | |
--rootdir $SMRT_ROOT \ | |
--batch \ | |
--ignore-syscheck \ | |
--jmstype NONE | |
ADD ./run . | |
EXPOSE 8080 | |
ENTRYPOINT ["./run"] |
This file contains 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
set -euo pipefail | |
# runs as daemon in background | |
${SMRT_ROOT}/admin/bin/smrtportald-initd start | |
# sleep forever to prevent container from exiting | |
while sleep 1000; do | |
echo "hello" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I tried to use your Dockerfile in the following way
docker run -d --net=host --privileged=true -v /mnt/data:/export sort
, but receiveddocker: Error response from daemon: Container command './run' could not be invoked..
However, the
Dockerfile
and therun
script are both in the same folder and when I built the containerrun
was added successfully to the container:What did I do wrong?
Thank you in advance.
Mic