From ebc3fe491a943eb537c8f6af1f8b26bd87d61e2e Mon Sep 17 00:00:00 2001
From: Wouter Deconinck <wouter.deconinck@umanitoba.ca>
Date: Sun, 26 Sep 2021 13:29:59 +0000
Subject: [PATCH] Install to /opt/benchmarks/common_bench in jug_xl

---
 containers/jug/xl.Dockerfile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/containers/jug/xl.Dockerfile b/containers/jug/xl.Dockerfile
index 57259ceba..30b230be7 100644
--- a/containers/jug/xl.Dockerfile
+++ b/containers/jug/xl.Dockerfile
@@ -107,18 +107,24 @@ RUN cd /tmp
 
 ## Install benchmarks into the container
 
+ARG BENCHMARK_COM_VERSION="master"
 ARG BENCHMARK_DET_VERSION="master"
 ARG BENCHMARK_REC_VERSION="master"
 ARG BENCHMARK_PHY_VERSION="master"
 
 RUN mkdir -p /opt/benchmarks                                                    \
  && cd /opt/benchmarks                                                          \
+ && git clone -b ${BENCHMARK_COM_VERSION} --depth 1                             \
+        https://eicweb.phy.anl.gov/EIC/benchmarks/common_bench.git              \
  && git clone -b ${BENCHMARK_DET_VERSION} --depth 1                             \
         https://eicweb.phy.anl.gov/EIC/benchmarks/detector_benchmarks.git       \
+ && ln -sf ../common_bench detector_benchmarks/.local                           \
  && git clone -b ${BENCHMARK_REC_VERSION} --depth 1                             \
         https://eicweb.phy.anl.gov/EIC/benchmarks/reconstruction_benchmarks.git \
+ && ln -sf ../common_bench reconstruction_benchmarks/.local                     \
  && git clone -b ${BENCHMARK_PHY_VERSION} --depth 1                             \
-        https://eicweb.phy.anl.gov/EIC/benchmarks/physics_benchmarks.git
+        https://eicweb.phy.anl.gov/EIC/benchmarks/physics_benchmarks.git        \
+ && ln -sf ../common_bench physics_benchmarks/.local
 
 ## Install campaigns into the container
 
-- 
GitLab