-
Notifications
You must be signed in to change notification settings - Fork 0
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 #30 from cfe-lab/introduce-docker
Introduce docker
- Loading branch information
Showing
11 changed files
with
110 additions
and
29 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,12 @@ | ||
|
||
FROM ubuntu:22.04 | ||
|
||
ENV LANG=en_US.UTF-8 | ||
|
||
COPY setup.py /opt/primer_finder/setup.py | ||
COPY gene_splicer /opt/primer_finder/gene_splicer/ | ||
COPY scripts /opt/primer_finder/scripts/ | ||
|
||
RUN sh -- /opt/primer_finder/scripts/install.sh | ||
|
||
ENTRYPOINT ["gene_splicer_sample", "--hivseqinr", "/opt/hivseqinr"] |
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,12 @@ | ||
#! /bin/sh | ||
|
||
set -e | ||
|
||
CURRENT_DIR="${0%/*}" | ||
|
||
set -x | ||
|
||
for SCRIPT in "$CURRENT_DIR/installation/"* | ||
do | ||
sh -- "$SCRIPT" | ||
done |
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,12 @@ | ||
#! /bin/sh | ||
|
||
set -e | ||
|
||
echo ===== Installing Prerequisites ===== >/dev/null | ||
|
||
set -x | ||
|
||
apt-get update -qq | ||
apt-get install -y build-essential unzip git wget \ | ||
fontconfig libbz2-dev liblzma-dev libssl-dev \ | ||
libffi-dev libsqlite3-dev |
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,9 @@ | ||
#! /bin/sh | ||
|
||
set -e | ||
|
||
echo ===== Installing Python ===== >/dev/null | ||
|
||
set -x | ||
|
||
apt-get install -y python3 python3-pip |
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,9 @@ | ||
#! /bin/sh | ||
|
||
set -e | ||
|
||
echo ===== Installing blast ===== >/dev/null | ||
|
||
set -x | ||
|
||
apt-get install -y ncbi-blast+ |
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,9 @@ | ||
#! /bin/sh | ||
|
||
set -e | ||
|
||
echo ===== Installing Python packages ===== >/dev/null | ||
|
||
set -x | ||
|
||
pip3 install /opt/primer_finder |
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,9 @@ | ||
#! /bin/sh | ||
|
||
set -e | ||
|
||
echo ===== Installing minimap2 ===== >/dev/null | ||
|
||
set -x | ||
|
||
apt-get install -y minimap2 |
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,14 @@ | ||
#! /bin/sh | ||
|
||
set -e | ||
|
||
echo ===== Installing hivseqinr ===== >/dev/null | ||
|
||
set -x | ||
|
||
export DEBIAN_FRONTEND=noninteractive | ||
|
||
apt-get install -y libz-dev libcurl4-openssl-dev libxml2-dev | ||
apt-get install --no-install-recommends -y r-base | ||
Rscript /opt/primer_finder/gene_splicer/configure_r.sh | ||
python3 -m gene_splicer.hivseqinr /opt/hivseqinr |
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,11 @@ | ||
#! /bin/sh | ||
|
||
set -e | ||
|
||
echo ===== Clean up ===== >/dev/null | ||
|
||
set -x | ||
|
||
apt-get remove -y wget git build-essential | ||
apt-get clean | ||
rm -rf /var/lib/apt/lists/* |