@@ -18,14 +18,15 @@ debian-package-code:
1818 pip3 install --target ./aleph-vm/opt/aleph-vm/ 'aleph-message==0.4.4' 'eth-account==0.10' 'sentry-sdk==1.31.0' 'qmp==1.1.0' 'superfluid==0.2.1' 'sqlalchemy[asyncio]>=2.0' 'aiosqlite==0.19.0' 'alembic==1.13.1' 'aiohttp_cors==0.7.0' 'pyroute2==0.7.12'
1919 python3 -m compileall ./aleph-vm/opt/aleph-vm/
2020
21- debian-package-resources : firecracker-bins vmlinux download-ipfs-kubo target/sevctl
21+ debian-package-resources : firecracker-bins vmlinux download-ipfs-kubo # target/sevctl
2222 rm -fr ./aleph-vm/opt/firecracker
2323 mkdir -p ./aleph-vm/opt/firecracker
2424 cp -pr ./target/vmlinux.bin ./aleph-vm/opt/firecracker/
2525 cp -pr ./target/firecracker ./aleph-vm/opt/firecracker/
2626 cp -pr ./target/jailer ./aleph-vm/opt/firecracker/
2727 cp -pr ./target/kubo/kubo ./aleph-vm/opt/kubo
28- cp -pr ./target/sevctl ./aleph-vm/opt/sevctl
28+ # build sevctl in a separate step since building it requires a recent Rust compiler
29+ # cp -pr ./target/sevctl ./aleph-vm/opt/sevctl
2930
3031firecracker-bins : target-dir build-dir
3132 mkdir -p ./build/firecracker-release
@@ -55,10 +56,14 @@ target/sevctl:
5556sevctl-podman :
5657 # Build sevctl inside an OCI Image with an upstream version of Rust.
5758 # sevctl requires a version of Rust more recent than the one available in Debian stable.
58- podman build -t sevctl-builder-debian-12 -f ./debian-12-sevctl.dockerfile .
59- podman run --rm -v $(PWD ) /target:/target sevctl-builder-debian-12
60- # Test the binary
61- ./target/sevctl -V
59+ cd .. && podman build -t localhost/aleph-vm-packaging-debian-12:latest -f ./packaging/debian-12.dockerfile .
60+ mkdir -p ./target
61+ podman run --rm -ti \
62+ -w /opt/packaging \
63+ -v ./target:/opt/packaging/target \
64+ localhost/aleph-vm-packaging-debian-12:latest \
65+ make target/sevctl
66+ file target/sevctl
6267
6368version :
6469 python3 ./version_from_git.py --inplace deb aleph-vm/DEBIAN/control
0 commit comments