Skip to content

Commit 5dc1cb3

Browse files
committed
Fix: No .deb was built for Ubuntu 24.04
This adds support in the packaging/Makefile and in the CI to build packages for Ubuntu 24.04
1 parent b63d248 commit 5dc1cb3

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

.github/workflows/build-deb-package.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
- os: "ubuntu-22.04"
2020
make_target: "all-podman-ubuntu-2204"
2121
artifact_name: "aleph-vm.ubuntu-22.04.deb"
22+
- os: "ubuntu-24.04"
23+
make_target: "all-podman-ubuntu-2404"
24+
artifact_name: "aleph-vm.ubuntu-24.04.deb"
2225
steps:
2326
- name: Checkout repository
2427
uses: actions/checkout@v4

packaging/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,17 @@ all-podman-ubuntu-2204: version
9393
file target/aleph-vm.deb
9494
mv target/aleph-vm.deb target/aleph-vm.ubuntu-22.04.deb
9595

96+
all-podman-ubuntu-2404: version
97+
cd .. && podman build -t localhost/aleph-vm-packaging-ubuntu-2404:latest -f ./packaging/ubuntu-24.04.dockerfile .
98+
mkdir -p ./target
99+
podman run --rm -ti \
100+
-w /opt/packaging \
101+
-v ./target:/opt/packaging/target \
102+
localhost/aleph-vm-packaging-ubuntu-2404:latest \
103+
make
104+
file target/aleph-vm.deb
105+
mv target/aleph-vm.deb target/aleph-vm.ubuntu-24.04.deb
106+
96107
# extract Python requirements from Debian 11 container
97108
requirements-debian-11: all-podman-debian-11
98109
podman run --rm -ti \
@@ -120,6 +131,15 @@ requirements-ubuntu-22.04: all-podman-ubuntu-2204
120131
ubuntu:jammy \
121132
bash -c "/opt/extract_requirements.sh /mnt/requirements-ubuntu-22.04.txt"
122133

134+
# extract Python requirements from Ubuntu 24.04 container
135+
requirements-ubuntu-24.04: all-podman-ubuntu-2404
136+
podman run --rm -ti \
137+
-v ./target/aleph-vm.ubuntu-24.04.deb:/opt/packaging/target/aleph-vm.deb:ro \
138+
-v ./extract_requirements.sh:/opt/extract_requirements.sh:ro \
139+
-v ./requirements-ubuntu-24.04.txt:/mnt/requirements-ubuntu-24.04.txt \
140+
ubuntu:noble \
141+
bash -c "/opt/extract_requirements.sh /mnt/requirements-ubuntu-24.04.txt"
142+
123143
# run on host in order to sign with GPG
124144
repository-bullseye:
125145
cd ./repositories/bullseye && reprepro -Vb . includedeb bullseye ../../target/aleph-vm.debian-11.deb && cd ..

packaging/ubuntu-24.04.dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM ubuntu:24.04
2+
3+
RUN apt-get update && apt-get -y upgrade && apt-get install -y \
4+
make \
5+
git \
6+
curl \
7+
sudo \
8+
python3-pip \
9+
&& rm -rf /var/lib/apt/lists/*
10+
11+
WORKDIR /opt
12+
COPY ../src/aleph ./src/aleph
13+
COPY ../packaging ./packaging
14+
COPY ../kernels ./kernels
15+
16+
COPY ../examples/ ./examples

0 commit comments

Comments
 (0)