From d2832f612fa10e653ca942d637f6000c0bab105d Mon Sep 17 00:00:00 2001 From: Dmitri Smirnov Date: Mon, 6 Jun 2022 16:08:38 -0400 Subject: [PATCH] docker: Use compiler arg in STAR_HOST_SYS --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9661ad9..2779a89 100644 --- a/Dockerfile +++ b/Dockerfile @@ -85,6 +85,7 @@ RUN find -L /opt/software/* -type f -exec readlink -f '{}' \; | \ FROM ${baseimg_os} AS starenv-stage ARG starenv +ARG compiler COPY --from=build-stage /cern /cern COPY --from=build-stage /etc/bashrc /etc/bashrc @@ -119,7 +120,7 @@ ENV CERN=/cern ENV CERN_LEVEL=pro ENV CERN_ROOT=$CERN/$CERN_LEVEL ENV OPTSTAR=/opt/software -ENV STAR_HOST_SYS=sl79_gcc485 +ENV STAR_HOST_SYS=sl79_${compiler} ENV PATH=$CERN_ROOT/bin:$PATH ENV LIBPATH+=:/lib64:/lib