forked from wrenn/wrenn
v0.1.0 (#17)
This commit is contained in:
1
recipes/code-runner-beta.healthcheck
Normal file
1
recipes/code-runner-beta.healthcheck
Normal file
@ -0,0 +1 @@
|
||||
--interval=5s --timeout=5s --start-period=60s --retries=5 curl -sf http://127.0.0.1:8888/api/status
|
||||
9
recipes/code-runner-beta.recipefile
Normal file
9
recipes/code-runner-beta.recipefile
Normal file
@ -0,0 +1,9 @@
|
||||
RUN --timeout=5m sudo apt install -y python3 python3-pip python3-venv
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
RUN python3 -m venv ~/jupyter-env
|
||||
RUN --timeout=5m ~/jupyter-env/bin/pip install --upgrade pip
|
||||
RUN --timeout=5m ~/jupyter-env/bin/pip install jupyter-server ipykernel
|
||||
RUN --timeout=5m ~/jupyter-env/bin/python -m ipykernel install --sys-prefix
|
||||
|
||||
START ~/jupyter-env/bin/jupyter server --ServerApp.ip=0.0.0.0 --ServerApp.port=8888 --ServerApp.token='' --ServerApp.password='' --ServerApp.allow_origin='*' --ServerApp.disable_check_xsrf=True --no-browser --log-level=INFO
|
||||
@ -1 +0,0 @@
|
||||
--interval=5s --timeout=3s --start-period=3s --retries=3 python3 -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8888/api/status', timeout=3)"
|
||||
@ -1,7 +0,0 @@
|
||||
RUN apt-get install -y --no-install-recommends python3 python3-pip python3-venv
|
||||
RUN python3 -m venv /opt/venv
|
||||
ENV PATH=/opt/venv/bin:$PATH
|
||||
|
||||
RUN --timeout=5m pip install --no-cache-dir jupyter-server ipykernel
|
||||
|
||||
START jupyter server --ServerApp.ip=0.0.0.0 --ServerApp.port=8888 --ServerApp.token='' --ServerApp.allow_origin='*' --ServerApp.disable_check_xsrf=True --no-browser --allow-root
|
||||
Reference in New Issue
Block a user