From 29ed3f18d174bde76294bc632bf2351b1ed9c7dd Mon Sep 17 00:00:00 2001 From: galaxy <galaxy@datavisu0.ib0.ice.ifremer.fr> Date: Mon, 1 Mar 2021 10:37:07 +0000 Subject: [PATCH] use env var for BDM version --- singularity/beedeem.def | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/singularity/beedeem.def b/singularity/beedeem.def index ab89623..b82f580 100644 --- a/singularity/beedeem.def +++ b/singularity/beedeem.def @@ -90,6 +90,7 @@ 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 @@ -97,11 +98,11 @@ From: platten/alpine-oracle-jre8-docker # 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