-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from apldx/v1.0.0
v1.0.0
- Loading branch information
Showing
2 changed files
with
63 additions
and
2 deletions.
There are no files selected for viewing
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
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"] |
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
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. | ||
|
||
|
||
|