Skip to content

Commit

Permalink
Fix: install FastAPI from PyPI in Debian 12 runtime
Browse files Browse the repository at this point in the history
Problem: Debian 12 runtime has FastAPI 0.92.0 (installed from apt) while
Debian 11 runtime has FastAPI 0.95.1. Some VMs previously running on the
Debian 11 runtime do not run on the Debian 12 runtime because of this
issue.

Solution: install the latest version of FastAPI from PyPI.
  • Loading branch information
odesenfans committed Sep 28, 2023
1 parent 9157805 commit 3514ad6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 0 additions & 3 deletions runtimes/aleph-debian-11-python/create_disk_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,15 @@ apt-get install -y --no-install-recommends --no-install-suggests \
python3-minimal \
openssh-server \
socat libsecp256k1-0 \
\
python3-aiohttp python3-msgpack \
python3-setuptools \
python3-pip python3-cytoolz python3-pydantic \
iproute2 unzip \
nodejs npm \
build-essential python3-dev \
\
docker.io \
cgroupfs-mount \
nftables \
\
iputils-ping curl
pip3 install 'fastapi~=0.95.1'
Expand Down
5 changes: 2 additions & 3 deletions runtimes/aleph-debian-12-python/create_disk_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,20 @@ apt-get install -y --no-install-recommends --no-install-suggests \
python3-minimal \
openssh-server \
socat libsecp256k1-1 \
\
python3-aiohttp python3-msgpack \
python3-setuptools python3-venv \
python3-pip python3-cytoolz python3-pydantic \
iproute2 unzip \
nodejs npm \
build-essential python3-dev \
python3-fastapi \
\
docker.io \
cgroupfs-mount \
nftables \
\
iputils-ping curl
pip3 install --break-system-packages 'fastapi~=0.103.1'
echo "Pip installing aleph-sdk-python"
mkdir -p /opt/aleph/libs
pip3 install --target /opt/aleph/libs 'aleph-sdk-python==0.7.0'
Expand Down

0 comments on commit 3514ad6

Please sign in to comment.