From b09d9a5f8a0322f526e965b5c6f504eb1e9435f0 Mon Sep 17 00:00:00 2001
From: Tao Lin <lintao51@gmail.com>
Date: Thu, 27 Aug 2020 14:37:05 +0800
Subject: [PATCH] WIP: add instructions to start a Singularity container inside
 the cepc/cepcsw Docker container.

---
 Dockerfile | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/Dockerfile b/Dockerfile
index 7397caa3..c7ae687d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -25,6 +25,17 @@ RUN sudo yum update -y && \
     sudo yum update -y && \
     sudo yum install -y singularity
 
+# If the CVMFS is installed in the host, just mount the corresonding /CVMFS directories
+# $ docker run --privileged --rm -i -t \
+           -v /cvmfs/sft.cern.ch:/cvmfs/sft.cern.ch \
+           -v /cvmfs/cepcsw.ihep.ac.cn:/cvmfs/cepcsw.ihep.ac.cn \
+           -v /cvmfs/container.ihep.ac.cn:/cvmfs/container.ihep.ac.cn \
+           cepc/cepcsw /bin/bash
+# Inside the Docker container, we could start the Singularity provided by IHEP
+# $ export SINGULARITY_BINDPATH=/cvmfs
+# $ singularity shell /cvmfs/container.ihep.ac.cn/singularity/image/SL69/sl69worknode20200729.sif
+
+##############################################################################
 # Install CVMFS
 # Configure IHEP
 # Enable /cvmfs/cepcsw.ihep.ac.cn and /cvmfs/container.ihep.ac.cn
-- 
GitLab