Skip to content

Commit

Permalink
use env var for BDM version
Browse files Browse the repository at this point in the history
  • Loading branch information
galaxy committed Mar 1, 2021
1 parent 3c3e4eb commit 29ed3f1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions singularity/beedeem.def
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,19 @@ Bootstrap : docker
From: platten/alpine-oracle-jre8-docker

%post
BDM_VERSION=4.5.0
apk update
# libbz2 libidn are required by blast tools included in BeeDeeM
apk add --no-cache wget libbz2 libidn

# Get BeeDeeM from latest release
mkdir -p /opt/beedeem/tmp-install
cd /opt/beedeem/tmp-install
wget https://github.com/pgdurand/BeeDeeM/releases/download/v4.5.0/beedeem-4.5.0-distrib.zip
wget https://github.com/pgdurand/BeeDeeM/releases/download/v${BDM_VERSION}/beedeem-${BDM_VERSION}-distrib.zip

# Unpack BeeDeeM to /opt/beedeem
unzip beedeem-4.5.0-distrib.zip
tar -zxf beedeem-4.5.0.tar.gz -C /opt/beedeem
unzip beedeem-${BDM_VERSION}-distrib.zip
tar -zxf beedeem-${BDM_VERSION}.tar.gz -C /opt/beedeem
cd ..
rm -rf tmp-install

Expand Down

0 comments on commit 29ed3f1

Please sign in to comment.