-
Notifications
You must be signed in to change notification settings - Fork 1
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 #2 from kapsakcj/add-docker
added Dockerfile and updated main README.md
- Loading branch information
Showing
3 changed files
with
74 additions
and
0 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
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,39 @@ | ||
FROM ubuntu:jammy | ||
|
||
LABEL base.image="ubuntu:jammy" | ||
LABEL software="stxtyper" | ||
LABEL description="Scan contig files against PubMLST typing schemes" | ||
LABEL website="https://github.com/evolarjun/stxtyper" | ||
LABEL license="https://github.com/evolarjun/stxtyper/blob/main/LICENSE" | ||
LABEL maintainer="Curtis Kapsak" | ||
LABEL maintainer.email="kapsakcj@gmail.com" | ||
|
||
# install dependencies via apt; cleanup apt garbage | ||
# blast from ubuntu:jammy is v2.12.0 (as of 2024-03-26) | ||
# procps is for ps command (required for nextflow) | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
wget \ | ||
ca-certificates \ | ||
make \ | ||
g++ \ | ||
ncbi-blast+ \ | ||
procps && \ | ||
apt-get autoclean && rm -rf /var/lib/apt/lists/* | ||
|
||
# bring in stxtyper code | ||
COPY . /stxtyper | ||
|
||
# compile | ||
# run test script | ||
# TODO in future: move executables to /usr/local/bin and delete source code (for smaller image) | ||
RUN cd /stxtyper && \ | ||
make && \ | ||
bash test_stxtyper.sh && \ | ||
tblastn -help && \ | ||
./stxtyper --help | ||
|
||
# set PATH to include where stxtyper & fasta_check executables exist | ||
ENV PATH="${PATH}:/stxtyper" | ||
|
||
# set final working directory as /data for passing data in/out of container | ||
WORKDIR /data |
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