Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
84430c06
Commit
84430c06
authored
5 years ago
by
Studer Gabriel
Browse files
Options
Downloads
Patches
Plain Diff
don't use virtualenv to make container simpler
parent
19b45180
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
singularity/Singularity
+3
-14
3 additions, 14 deletions
singularity/Singularity
with
3 additions
and
14 deletions
singularity/Singularity
+
3
−
14
View file @
84430c06
...
...
@@ -15,15 +15,7 @@ ln -sf /bin/bash /bin/sh
# INSTALL SYSTEM DEPS
#####################
apt-get update -y && apt-get install -y python3-pip \
python3-venv
# SET UP VIRTUALENV
###################
export VIRTUALENV_DIR="/usr/local/share/ost_venv"
python3 -m venv --system-site-packages $VIRTUALENV_DIR
. $VIRTUALENV_DIR/bin/activate
apt-get update -y && apt-get install -y python3-pip
pip3 install nglview \
ipython \
jupyter
...
...
@@ -71,7 +63,6 @@ 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="/usr/local/share/jupyter/runtime"
export VIRTUALENV_DIR="/usr/local/share/ost_venv"
%apprun ChemdictTool
...
...
@@ -181,7 +172,7 @@ export DNG_INITDIR=${DNG_ROOT}/lib64/python3.6/site-packages/ost
##############################################################################
# OST IPYTON APP
##############################################################################
. $VIRTUALENV_DIR/bin/activate &&
ipython3 -i $DNG_INITDIR/ost_startup.py "$@"
ipython3 -i $DNG_INITDIR/ost_startup.py "$@"
%apphelp IPython
OST-powered iPython shell.
...
...
@@ -208,7 +199,7 @@ export XDG_RUNTIME_DIR=""
##############################################################################
# NOTEBOOK APP
##############################################################################
. $VIRTUALENV_DIR/bin/activate &&
jupyter notebook --NotebookApp.iopub_data_rate_limit=10000000 --no-browser "$@"
jupyter notebook --NotebookApp.iopub_data_rate_limit=10000000 --no-browser "$@"
%apphelp Notebook
A Jupyter notebook playground with OST and nglview.
...
...
@@ -235,8 +226,6 @@ For more details on how to use nglview see http://nglviewer.org/nglview/latest/.
As the Singularity mounts $HOME by default Jupyter and Ipython config files
are moved to separate directories. Proper environmental variables are also set.
In addition, Jupyter is run in a separate virtualenv to not interact with
possibly installed host version.
To list of all available options:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment