Fix installation of base packages.
This commit is contained in:
parent
c11baf859a
commit
6cae68d5fb
|
@ -21,6 +21,9 @@ COMPOSE_FILE="compose.yml"
|
|||
|
||||
# The voila version to pin to (can be overriden by requirements.txt)
|
||||
VOILA_VERSION=0.4.0
|
||||
IPYKERNEL_VERSION=6.19.4
|
||||
NOTEBOOK_VERSION=6.5.2
|
||||
|
||||
# The directory to run voila from.
|
||||
VOILA_DIRECTORY=/data
|
||||
# Additional options to pass to voila.
|
||||
|
|
|
@ -6,6 +6,8 @@ services:
|
|||
image: python:3.10
|
||||
environment:
|
||||
- VOILA_VERSION
|
||||
- IPYTHON_VERSION
|
||||
- NOTEBOOK_VERSION
|
||||
- VOILA_DIRECTORY
|
||||
- VOILA_OPTIONS
|
||||
- REQUIREMENTS_PATH
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd $VOILA_DIRECTORY || true
|
||||
cd "$VOILA_DIRECTORY" || true
|
||||
|
||||
if [-eq "$REQUIREMENTS_PATH" ]; then
|
||||
pip install -r "$REQUIREMENTS_PATH"
|
||||
else
|
||||
pip install voila==$VOILA_VERSION
|
||||
fi
|
||||
|
||||
pip freeze |grep voila || pip install voila==VOILA_VERSION
|
||||
pip freeze |grep notebook || pip install notebook==NOTEBOOK_VERSION
|
||||
pip freeze |grep ipykernel || pip install ipykernel==IPYKERNEL_VERSION
|
||||
|
||||
python -mvoila --no-browser --port=80 --Voila.ip=0.0.0.0 --autoreload=True $VOILA_OPTIONS
|
||||
|
|
Loading…
Reference in New Issue