The EIC Software Environment

Overview

Teaching: 5 min
Exercises: 5 min
Questions
  • What is the EIC environment?

Objectives
  • Understand what we mean with the EIC environment, or eic-shell.

  • Appreciate the benefits of containers as development environment.

Why a EIC standard environment?

Are you required to use the EIC standard environment?

How to get eic-shell, the EIC standard environment, and what it is?

Note: An alternative location for downloading this script is at https://eicweb.phy.anl.gov/containers/eic_container/-/raw/master/install.sh, in case you experience difficulties accessing the custom domain.

Note: On some high performance computing servers, there are security restrictions that require the use of additional flags curl --insecure and wget --no-check-certificate.

Exercise 1:

  • Install the eic-shell executable in a suitable location on the system you will be using mainly for EIC work.
  • Look at the output and compare with what is on the instructor’s screen. If you do not have a /cvmfs directory on your system, this may take a while as the environment has to be downloaded. Keep this in mind for later, as you will have to perform updates periodically.
  • Advanced users: Take a look at the installation options when you run bash install.sh --help. The include information on how to tweak your setup for specific use scenarios.

How to start eic-shell on common systems?

You can start eic-shell from inside the directory where it is installed with

cd ~/eic
./eic-shell

or you can start it from any directory with ~/eic/eic-shell (if you used the same directory structure).

Exercise:

  • Run the eic-shell script from the current directory. You should get the jug_dev> prompt. Exit the environment again.
  • Take a look at the running options with eic-shell --help. If you do not have a /cvmfs directory on your system, you will need to run eic-shell --upgrade periodically to ensure that you are staying up to date.
  • Advanced users: Set up your environment to be able to run eic-shell from anywhere.

What is where in the eic-shell environment?

When you start eic-shell, you enter into a container: a self-contained operating system that integrates with the core of the operating system on the host system. When you look at the top-level directories, you’ll see that they are similar to the directories on the host system. Don’t let that fool you: you are looking at content that is only inside the container.

There are a few directories that are shared between the container and the host operating system: the current directory you are working on, your home directories, etc. Essentially, the typical directories where you would store your own work (as opposed to system directories).

All programs that are installed in the container, are accessible under the /opt/local directory tree. This is a standard location for programs that are not installed by the operating system’s package manager, which is how we install the dependencies for the EIC software stack. It also means that these programs are automatically found by the eic-shell without needing to modify the search path.

The jumble of files in /opt/local are in fact merely a view into software installed in a more organized fashion in /opt/software, potentially for different compilers, operating systems, etc. The full definition of all software installed in /opt/software is in /opt/spack-environment/dev/spack.yaml, the ultimate definition of the EIC standard environment.

Exercise:

  • Using cd and ls, check that you can navigate to various directories in the container, and that you can access the directories for your own work.
  • Verify that you can run some of the software dependencies that are installed in eic-shell. For example, run the command ddsim --help to get some informaton on one way to run Geant4 simulations on DD4hep-based geometries. Use the command which ddsim to see where ddsim is located.
  • Advanced users: Based on the location of ddsim found in the previous step, verify that this is a symbolic link to a different location under /opt/software. Verify that the version in the path of that location agrees with the version specified in the spack.yaml file.

Notes on starting graphical programs

Graphical programs work just as well inside the eic-shell environment as outside, with the exception of docker on Mac where some additional work is needed. On a Mac it is therefore often easier to open ROOT files outside the container.

Key Points

  • The EIC environment eic-shell is a singularity/docker container with a curated selection of software components.