kasbohm/dash-server:def
$ singularity pull shub://kasbohm/dash-server:def
Singularity Recipe
Bootstrap: docker
From: ubuntu:16.04
%post
apt-get update
apt-get -y install python3 python3-pip
mkdir /app /cluster /work /tsd /projects /usit
python3 -m pip install --upgrade pip
python3 -m pip install --trusted-host pypi.python.org 'dash>=1.2.0' 'pandas>=0.24.2' matplotlib
%runscript
echo "$(pwd)"
usage() {
echo "Plotly-dash server"
echo ""
echo "Arguments:"
echo " run starts web service"
}
case $1 in
"run")
if [ ! -e "/app/app.py" ]; then
echo "error: /app/app.py does not exist"
echo "Mount the volume containing your app.py plotly dash files:"
echo "singularity run -B app-folder:/app dash-server.sif run"
return 1
fi
cd /app
exec "python3" app.py
;;
*)
usage
;;
esac
Collection
- Name: kasbohm/dash-server
- License: None
View on Datalad
Metrics
key | value |
---|---|
id | /containers/kasbohm-dash-server-def |
collection name | kasbohm/dash-server |
branch | master |
tag | def |
commit | a055e67b85305f83c89baa4fb05e06b6dbe0c44d |
version (container hash) | cbeb7c7caf77d3afc0dbcee943c1fe16285ba3db2a19d92310d43d095c037ba8 |
build date | 2019-09-18T18:32:21.947Z |
size (MB) | 297.9453125 |
size (bytes) | 312418304 |
SIF | Download URL (please use pull with shub://) |
Datalad URL | View on Datalad |
Singularity Recipe | Singularity Recipe on Datalad |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.