Skip to content

Commit

Permalink
Use variable names in labels and version for GENIE and CATCH2
Browse files Browse the repository at this point in the history
  • Loading branch information
bryngemark committed Nov 16, 2023
1 parent e932431 commit 6fd9cfe
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -340,11 +340,11 @@ RUN install-ubuntu-packages \
libtool


LABEL genie.version=3.02.00
ENV GENIE_VERSION=3_02_00
#ENV GENIE_REWEIGHT_VERSION=1_02_00

ENV GENIE=/usr/local/src/GENIE/Generator
LABEL genie.version=$(sed -e 's/_/\./g' <<< $GENIE_VERSION )


RUN mkdir -p ${GENIE} &&\
${__wget} https://github.com/GENIE-MC/Generator/archive/refs/tags/R-${GENIE_VERSION}.tar.gz |\
Expand All @@ -365,9 +365,10 @@ RUN mkdir -p ${GENIE} &&\
###############################################################################
# Catch2
###############################################################################
LABEL catch2.version=3.3.1
CATCH2_VERSION=3.3.1
LABEL catch2.version=${CATCH2_VERSION}
RUN mkdir -p src &&\
${__wget} https://github.com/catchorg/Catch2/archive/refs/tags/v3.3.1.tar.gz |\
${__wget} https://github.com/catchorg/Catch2/archive/refs/tags/v${CATCH2_VERSION}.tar.gz |\
${__untar} &&\
cmake -B src/build -S src &&\
cmake --build src/build --target install -- -j$NPROC &&\
Expand Down

0 comments on commit 6fd9cfe

Please sign in to comment.