-
Notifications
You must be signed in to change notification settings - Fork 2
/
start-containers.txt
9 lines (8 loc) · 1.38 KB
/
start-containers.txt
1
2
3
4
5
6
7
8
9
# For taql
export TOKEN=$( head -c 30 /dev/urandom | xxd -p )
echo $TOKEN
docker run --restart=always --net=host -d -e CONFIGPROXY_AUTH_TOKEN=$TOKEN --name=proxy jupyter/configurable-http-proxy --default-target http://127.0.0.1:9997 --port 8000
docker run --restart=always --net=host -d -e CONFIGPROXY_AUTH_TOKEN=$TOKEN --name=tmpnb -v /var/run/docker.sock:/docker.sock jupyter/tmpnb python orchestrate.py --image=taql-jupyter --port=9997 --admin-port=10007 --pool-size=3 --redirect-uri=/notebooks/LearnTaQL.ipynb --command="cd /home/lofar/opt/taql-jupyter && git pull && cd /home/lofar/work && start-notebook.sh --no-browser --port {port} --ip=0.0.0.0 --NotebookApp.base_url=/{base_path} --no-mathjax --config=/home/lofar/.jupyter/jupyter_notebook_config.py --NotebookApp.port_retries=0"
# For casa-jupyter
#docker run --restart=always --net=host -d -e CONFIGPROXY_AUTH_TOKEN=$TOKEN --name=proxycasa jupyter/configurable-http-proxy --default-target http://127.0.0.1:9999 --port 8000
#docker run --restart=always --net=host -d -e CONFIGPROXY_AUTH_TOKEN=$TOKEN --name=tmpnbcasa -v /var/run/docker.sock:/docker.sock jupyter/tmpnb python orchestrate.py --image=myjupytercasa --port=9999 --admin-port=10000 --pool-size=8 --redirect-uri=/notebooks/vla-cont-tutorial.ipynb --command="Xvfb :102 -ac & jupyter notebook --no-browser --port {port} --ip=0.0.0.0 --NotebookApp.base_url=/{base_path} --NotebookApp.port_retries=0"