Skip to content

Commit

Permalink
Update ribovore/infernal/easel installation
Browse files Browse the repository at this point in the history
After Infernal 1.1.5 there is no need to install develop versions anymore
  • Loading branch information
AntonPetrov committed Sep 14, 2023
1 parent bd34378 commit 0e4042a
Showing 1 changed file with 7 additions and 21 deletions.
28 changes: 7 additions & 21 deletions base_image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,6 @@ RUN \
cp -rv /Bio-Easel/lib /install/Bio-Easel/lib && \
cp -rv /Bio-Easel/blib/lib /install/Bio-Easel/blib/lib

FROM build AS easel

# Install develop branch of easel
RUN \
git clone -b develop https://github.com/EddyRivasLab/easel
RUN \
cd easel && \
autoconf && ./configure -q && make -j 2 && make install DESTDIR=/install/


FROM build AS traveler

# Install Traveler
Expand All @@ -76,14 +66,12 @@ RUN \

FROM build as ribovore

This comment has been minimized.

Copy link
@anayden

anayden Sep 14, 2023

Collaborator

Maybe, rename the stage to ribovoer-infernal-easel for clarity? Here and in the COPY instruction below

This comment has been minimized.

Copy link
@AntonPetrov

AntonPetrov Sep 14, 2023

Author Member

Good idea, done ✅


# Install Ribovore and Infernal
# Install Ribovore, Infernal, and easel
RUN \
mkdir -p /install/&& \
cd /install/&& \
wget --no-verbose -O - https://raw.githubusercontent.com/ncbi/ribovore/master/install.sh | bash -s -- "linux" && \
cd /install/&& \
rm -Rf ncbi-blast vecscreen_plus_taxonomy rRNA_sensor

mkdir -p /install/ && \
cd /install/ && \
wget --no-verbose -O - https://raw.githubusercontent.com/ncbi/ribovore/install-r2dt/install.sh | bash -s -- "rt-linux" && \
rm -Rf /install/ribovore/models/*.stk /install/ribovore/models/*.cm* /install/ribovore/testfiles

FROM debian:bookworm-slim as final-build

Expand Down Expand Up @@ -111,7 +99,7 @@ RUN \

ENV \
RIBOINSTALLDIR="$RNA/ribovore" \
RIBOEASELDIR="$RNA/ribovore/infernal/easel/miniapps" \
RIBOEASELDIR="$RNA/ribovore/infernal/binaries" \
RIBOTIMEDIR=/usr/bin \
RIBODIR="$RNA/ribovore/ribovore" \
BIOEASELDIR="$RNA/Bio-Easel/blib/lib:$RNA/Bio-Easel/blib/arch:$RNA/Bio-Easel:$RNA/Bio-Easel/lib" \
Expand All @@ -120,7 +108,7 @@ ENV \

ENV \
RIBOSCRIPTSDIR="$RIBOINSTALLDIR/ribovore" \
RIBOINFERNALDIR="$RIBOINSTALLDIR/infernal/src" \
RIBOINFERNALDIR="$RIBOINSTALLDIR/infernal/binaries" \
RIBOSEQUIPDIR="$RIBOINSTALLDIR/sequip" \
RIBOBLASTDIR="$RIBOINSTALLDIR/ncbi-blast/bin" \
VECPLUSDIR="$RIBOINSTALLDIR/vecscreen_plus_taxonomy" \
Expand Down Expand Up @@ -148,8 +136,6 @@ COPY --from=rscape /install/ /{RNA}/rscape
COPY --from=tRNAscan-SE /install/ /usr
RUN sed -i -e 's|/install/bin|/usr/bin|' -e 's|/install/lib|/usr/lib|' /usr/bin/tRNAscan-SE.conf

COPY --from=easel /install/ /

COPY --from=Bio-Easel /install/usr/* /usr
COPY --from=Bio-Easel /install/Bio-Easel $RNA/Bio-Easel
COPY --from=Bio-Easel /usr/local/share/perl/5.36.0/ /usr/share/perl/5.36/
Expand Down

0 comments on commit 0e4042a

Please sign in to comment.