Fix installation of base packages.

This commit is contained in:
Cassowary 2023-01-04 21:52:43 -08:00
parent c11baf859a
commit 6cae68d5fb
4 changed files with 11 additions and 4 deletions

View File

@ -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.

View File

@ -1 +1 @@
export STARTUP_SH_VERSION=v2
export STARTUP_SH_VERSION=v3

View File

@ -6,6 +6,8 @@ services:
image: python:3.10
environment:
- VOILA_VERSION
- IPYTHON_VERSION
- NOTEBOOK_VERSION
- VOILA_DIRECTORY
- VOILA_OPTIONS
- REQUIREMENTS_PATH

View File

@ -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