Skip to content

Commit

Permalink
Merge pull request #3 from apldx/v1.0.0
Browse files Browse the repository at this point in the history
v1.0.0
  • Loading branch information
chrisamiller authored Jul 23, 2021
2 parents b41d510 + 04a9d0b commit 044b099
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 2 deletions.
46 changes: 46 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
FROM ubuntu:focal
MAINTAINER Ajay Khanna <[email protected]>

ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true

# Requirements
RUN apt-get update && \
# Required build tools
apt-get install -y build-essential cmake && \
# Need git to fetch the repository
apt-get install -y git && \
# Clean up
apt-get clean all && \
rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* && rm -rf /var/tmp/*

# Clone and build v1.0.0
RUN cd / && \
git clone https://github.com/genome/bam-readcount && \
cd bam-readcount && \
# For a specific tag enable the git checkout below
git checkout v1.0.0 && \
rm -rf build && \
mkdir build && \
cd build && \
cmake .. && \
make


FROM ubuntu:focal

ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true

LABEL \
version="v1.0.0" \
description="Ubuntu Focal with bam-readcount v1.0.0"

RUN apt-get update

RUN mkdir -p /opt/bam-readcount/bin
WORKDIR /opt/bam-readcount
COPY --from=0 /bam-readcount/build/bin/bam-readcount /opt/bam-readcount/bin/bam-readcount
RUN ln -s /opt/bam-readcount/bin/bam-readcount /usr/bin/bam-readcount

ENTRYPOINT ["/usr/bin/bam-readcount"]
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
# docker-bam-readcount
Docker containerization for "bam-readcount"
docker-bam-readcount
====================

Docker image for `bam-readcount`


Usage
-----

The Dockerfile sets

ENTRYPOINT ["/usr/bin/bam-readcount"]

so the container can be run as an executable.



0 comments on commit 044b099

Please sign in to comment.