From 5eeb60630a21a9d54540be71b5493645e4b440ee Mon Sep 17 00:00:00 2001
From: Bienchen <stefan.bienert@unibas.ch>
Date: Wed, 26 Feb 2020 09:02:30 +0100
Subject: [PATCH] Fixed Jupyter in the Sungularity container

---
 singularity/Singularity | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/singularity/Singularity b/singularity/Singularity
index 9d1a3d96b..222fe694e 100644
--- a/singularity/Singularity
+++ b/singularity/Singularity
@@ -35,7 +35,7 @@ locale-gen en_US.UTF-8
 export IPYTHONDIR="/usr/local/share/ipython"
 export JUPYTER_CONFIG_DIR="/usr/local/etc/jupyter"
 export JUPYTER_PATH="/usr/local/share/jupyter"
-export JUPYTER_RUNTIME_DIR="$JUPYTER_PATH/runtime"
+export JUPYTER_RUNTIME_DIR="/tmp/jupyter_runtime"
 
 mkdir -p /usr/local/share/ipython
 mkdir -p $JUPYTER_PATH
@@ -68,10 +68,14 @@ jupyter nbextension enable nglview --py --sys-prefix
 ##############################################################################
 # ENVIRONMENT
 ##############################################################################
+export TEMP="/tmp"
+export TEMPDIR="/tmp"
+export TMPDIR="/tmp"
+export TMP="/tmp"
 export IPYTHONDIR="/usr/local/share/ipython"
 export JUPYTER_CONFIG_DIR="/usr/local/etc/jupyter"
 export JUPYTER_PATH="/usr/local/share/jupyter"
-export JUPYTER_RUNTIME_DIR="$JUPYTER_PATH/runtime"
+export JUPYTER_RUNTIME_DIR="$TMPDIR/jupyter_runtime"
 
 %apprun ChemdictTool
 ##############################################################################
-- 
GitLab