Skip to content

Commit

Permalink
Escalate updates
Browse files Browse the repository at this point in the history
  • Loading branch information
DraTeots committed Jan 6, 2021
1 parent 8b69b2f commit 89c2d0f
Show file tree
Hide file tree
Showing 18 changed files with 493 additions and 205 deletions.
11 changes: 5 additions & 6 deletions README.md
Expand Up @@ -165,7 +165,11 @@ Go to {% include navigation/findlink.md name='jupyterhub.jlab.org' %} (follow au
In the **Spawner options** -> **Select a notebook image**,
set **eic-notebook (dev)** there

<img src="https://gitlab.com/eic/escalate/workspace/-/raw/master/img/jlab_jupyterhub_spawner.jpg" style="width:400pt">
.. figure:: _images/jlab_jupyterhub_spawner.jpg
:alt: jlab\_jupyterhub\_spawner
:width: 400

jlab\_jupyterhub\_spawner


You should end up in your jefferson lab home directory.
Expand Down Expand Up @@ -254,8 +258,3 @@ g4e = Geant4Eic()\
```

Look at the docker or [tutorials repo](https://gitlab.com/eic/escalate/workspace) for more examples





19 changes: 0 additions & 19 deletions docs/015_local_install.rst

This file was deleted.

165 changes: 0 additions & 165 deletions docs/020_spack.md

This file was deleted.

23 changes: 13 additions & 10 deletions docs/010_containers.rst → docs/100_containers.rst
@@ -1,5 +1,7 @@
Docker images
=================
Containers
==========

We use Docker as the default containerization technology. Singularity is also can be easily used utilizing docker images.

The primary goal of the images is to provide an easy means for scientists to start running EIC software. There 4 main images:

Expand Down Expand Up @@ -58,7 +60,6 @@ The Docker_ virtualization software is available for Linux, macOS, and Windows.
.. _Docker Engine: https://hub.docker.com/search/?type=edition&offering=community



Obtaining the EIC Software image
--------------------------------

Expand All @@ -71,6 +72,7 @@ The EIC Software images are deployed using the electronioncollider swarm on Dock
This requires Docker to be running on the local system.
Please see the `Troubleshoot`_ section if you receive the error message of ```no space left on device```.


Running the EIC Software image
------------------------------

Expand All @@ -90,6 +92,7 @@ and can be accessed via the host system’s native web browser.
This requires Docker to be running on the local system. The ```--rm``` flag is used to automatically clean up the container and remove the file system (and all modified and created files with it) when the container exits. The flag is included for the sake of tutorials but not needed when working with the JupyterLab environment where retaining all data in the container (including all changes and modifications) might be preferred. By default (without ```--rm``` flag), a container’s file system persists even after the container exits.


Troubleshoot
------------

Expand Down Expand Up @@ -122,8 +125,9 @@ escalate and escalate-gui images. E.g. showing standard root browser or Geant4 e
What is the best option:



1. SSH -X
---------
.........

eicuser password is eicuser

Expand All @@ -141,7 +145,7 @@ connect with SSH:
2. X11
------
......

The most convenient is using X11 directly. It require x11 client apps on Macs and Windows and may have some issues with user id's and permissions on Posix (max & linux).
It might sound complex, but actiually it is simple and works most of the times. Still we don't use this way for the tutorials, but it is available in the documentation.
Expand All @@ -152,7 +156,7 @@ It might sound complex, but actiually it is simple and works most of the times.
You can use X11 natively (as natively as possible) with this docker image in your system:

Linux
.....
^^^^^

To use graphics, make sure you are in an X11 session and run the following command:

Expand All @@ -164,9 +168,9 @@ To use graphics, make sure you are in an X11 session and run the following comma
There might be issues with user id on systems like JLab farms.

Windows
.......
^^^^^^^

To enable graphics, you must have [VcXsrv](https://sourceforge.net/projects/vcxsrv/files/latest/download) installed.
To enable graphics, you must have `VcXsrv <https://sourceforge.net/projects/vcxsrv/files/latest/download>`_ installed.
Make sure VcXsrv is whitelisted in the Windows firewall when prompted.

Start VcXsrv with 'allow from any origin' flag
Expand All @@ -177,7 +181,7 @@ Start VcXsrv with 'allow from any origin' flag
OSX
...
^^^

To use graphics on OSX, make sure XQuarz is installed.
After installing, open XQuartz, and go to XQuartz, Preferences, select the Security tab, and tick the box
Expand Down Expand Up @@ -206,7 +210,6 @@ Finally, you can start up docker with the following command:
**Credits**:

The EIC Container project is coordinated by
Expand Down
33 changes: 33 additions & 0 deletions docs/200_local_install.rst
@@ -0,0 +1,33 @@
Local isntallation
==================

There are several ways how one can install packages locally:

1. Spack package manager
2. EJPM package manager
3. Combined Conda+EJPM isntallation
4. Manual build

What packet manager to use?

EJPM was designed with user laptops/workstations and devlopment in mind. The intention of EJPM is to be a user friendly CLI alternative to "build scritps" that compiles chains of packages with right flags.
Spack is a full featured multi-platform package manager designed for clusters and super computers. It is possible to install software on laptops with Spack but at this point it is more prone to compilation errors.

**Thus the recommendation is**: to use EJPM for personal laptops with Linux OS for personal use and development. Use Spack on farms or if you are familiar with Spack, use Spack for other projects, etc.

There is also a hybrid variant of using Conda+EJPM where Conda is used to download binaries of compilers, big packages like CERN ROOT and Geant4 and then EJPM is used to build EIC applications on top of it.
This type of installation also guarantee a consistency with compillers, binary libraries, etc.

Here is the short comparison table between Spack and EJPM:

.. Table with EJPM vs Spack comparison
.. raw:: html
:file: 202_ejpm_vs_spack_table.html


:ref:`spack-ejpm-comparison`.

.. include:: 230_ejpm.rst

.. include:: 240_spack.rst
File renamed without changes.
@@ -1,3 +1,4 @@
:orphan:

.. _spack-ejpm-comparison:

Expand All @@ -7,6 +8,7 @@ Detailed comparison between EJPM and Spack

.. Table with EJPM vs Spack comparison
.. raw:: html
:file: 016_ejpm_vs_spack_table.html

Expand Down

0 comments on commit 89c2d0f

Please sign in to comment.