Skip to content

Commit

Permalink
Merge pull request #123 from ababaian/kyl/merge-image-size
Browse files Browse the repository at this point in the history
🐳 Copy minimal dependencies for merge
  • Loading branch information
Artem Babaian authored May 24, 2020
2 parents a4e9661 + 01c05b4 commit ab448ed
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
30 changes: 23 additions & 7 deletions containers/serratus-merge/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ ARG VERSION='0.1.4'
# Software Information
# ENV SAMTOOLSVERSION='1.10' # from serratus-base

# Additional Metadata
LABEL container.type=${TYPE}
LABEL container.version=${VERSION}
LABEL container.description="serratus: alignment container"
LABEL software.license="GPLv3"
LABEL tags="aws-cli, samtools"

#==========================================================
# Dependencies ============================================
Expand All @@ -32,9 +26,31 @@ LABEL tags="aws-cli, samtools"

FROM amazonlinux:2 AS runtime

# Additional Metadata
LABEL container.type=${TYPE}
LABEL container.version=${VERSION}
LABEL container.description="serratus: alignment container"
LABEL software.license="GPLv3"
LABEL tags="aws-cli, samtools"

# Environment setup
ENV BASEDIR=/home/serratus

COPY --from=build_base / /
# aws cli, plus dependencies
# -merge has its own python dependency, so do a full python/pip install
RUN yum -y install python3 perl \
&& alias python=python3 \
&& curl -O https://bootstrap.pypa.io/get-pip.py \
&& python3 get-pip.py \
&& rm get-pip.py \
&& pip install boto3 awscli \
&& yum clean all \
# aws configuration
&& aws configure set default.s3.multipart_threshold 4GB \
&& aws configure set default.s3.multipart_chunksize 4GB

# samtools
COPY --from=build_base /usr/local/bin/samtools /usr/local/bin/

#==========================================================
# Serratus Initialize =====================================
Expand Down
4 changes: 2 additions & 2 deletions containers/serratus-merge/serratus-merge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ WORKDIR=$BASEDIR/work/$RUNID
mkdir -p $WORKDIR; cd $WORKDIR

# Download pan-genome summary data
if [ ! -f $BASEDIR/"$GENOME".sumzer.tsv ]; then
aws s3 cp s3://serratus-public/seq/"$GENOME"/"$GENOME".sumzer.tsv $BASEDIR/
if [ ! -f "$BASEDIR/$GENOME.sumzer.tsv" ]; then
aws s3 cp "s3://serratus-public/seq/$GENOME/$GENOME.sumzer.tsv" $BASEDIR/
fi

cp $BASEDIR/"$GENOME".sumzer.tsv $WORKDIR/ # copy summarizer tables into runid
Expand Down

0 comments on commit ab448ed

Please sign in to comment.