Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Program runtime could use newer Debian 12 #369

Merged
merged 2 commits into from
Sep 26, 2023
Merged

Conversation

hoh
Copy link
Member

@hoh hoh commented Jul 11, 2023

This adds a new runtime based on Debian 12.

Use diff to compare the two versions since some files are copied.

sepal@basecamp ~/R/a/a/runtimes (hoh-runtime-debian-12)> diff aleph-debian-1*
diff '--color=auto' aleph-debian-11-python/create_disk_image.sh aleph-debian-12-python/create_disk_image.sh
10c10
< debootstrap --variant=minbase bullseye ./rootfs http://deb.debian.org/debian/
---
> debootstrap --variant=minbase bookworm ./rootfs http://deb.debian.org/debian/
19c19
<   socat libsecp256k1-0 \
---
>   socat libsecp256k1-1 \
22c22
<   python3-setuptools \
---
>   python3-setuptools python3-venv \
26a27
>   python3-fastapi \
34,40c35,41
< pip3 install 'fastapi~=0.95.1'
< 
< echo "Pip installing aleph-client"
< pip3 install 'aleph-sdk-python==0.7.0'
< 
< # Compile all Python bytecode
< python3 -m compileall -f /usr/local/lib/python3.9
---
> echo "Pip installing aleph-sdk-python"
> mkdir -p /opt/aleph/libs
> pip3 install --target /opt/aleph/libs 'aleph-sdk-python==0.7.0'
> 
> # Compile Python code to bytecode for faster execution
> python3 -m compileall -f /usr/local/lib/python3.11
> python3 -m compileall -f /opt/aleph/libs
diff '--color=auto' aleph-debian-11-python/init0.sh aleph-debian-12-python/init0.sh
54a55,56
> export PYTHONPATH=/opt/aleph/libs
> 

In the case of files that will remain compatible, symlinks are used to remove duplication issues.

loading.html -> ../aleph-debian-11-python/loading.html
update_inits.sh -> ../aleph-debian-11-python/update_inits.sh

@hoh hoh marked this pull request as draft July 11, 2023 10:50
@hoh hoh force-pushed the hoh-runtime-debian-12 branch 2 times, most recently from bf9b504 to 4278eef Compare September 18, 2023 13:27
@hoh hoh marked this pull request as ready for review September 18, 2023 14:26
@hoh hoh requested a review from odesenfans September 19, 2023 12:55
runtimes/aleph-debian-11-python/create_disk_image.sh Outdated Show resolved Hide resolved
.github/workflows/build-deb-package.yml Outdated Show resolved Hide resolved
.github/workflows/build-deb-package.yml Outdated Show resolved Hide resolved
runtimes/aleph-debian-12-python/create_disk_image.sh Outdated Show resolved Hide resolved
runtimes/aleph-debian-12-python/init1.py Outdated Show resolved Hide resolved
@hoh hoh force-pushed the hoh-runtime-debian-12 branch 2 times, most recently from d01070b to 3df0f63 Compare September 25, 2023 15:01
@hoh hoh merged commit e8ff4e3 into main Sep 26, 2023
15 checks passed
@hoh hoh deleted the hoh-runtime-debian-12 branch September 26, 2023 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants