Closed nickbetteridge closed 1 year ago
Hi @nickbetteridge,
Thank you for your report and for using the packaging script.
Regarding 2. you can use dune subst
. It modifies the source tree to replace %%VERSION%%
etc. You should do a dune build
after this.
I believe steps 4 & 5 can be done with sudo apt install ./albatross.deb
.
Regarding your observation with solo5-hvt
albatross looks for the solo5 tender first in $PATH
and if not found there it looks in /var/lib/albatross/
on Linux (the so called "dbdir" in the man pages). This suggests you did not have solo5-hvt
installed anywhere in $PATH. We also provide packaging scripts for solo5 in a fork (unfortunately lacking a bit behind upstream at the moment...). Otherwise, you can build and copy the solo5-hvt
and solo5-spt
binaries and copy them to /var/lib/albatross/
.
The packaging scripts were mainly written in order to provide binary packages at https://builds.robur.coop/, but they should be usable outside that context. I will look into providing binary packages for ubuntu 22.04 at builds.robur.coop soon.
Thank you for the netplan example. We find that many people (including me) struggle with network setup, so another example is welcome.
Greetings @reynir - thanks for getting back to me
dune subst
- ah, at last - something that probably everyone knows except for me! Thankssolo5 tender in $PATH
- good point - it's in my path but forgot to add it to the deb
pathsudo apt install ./albatross.deb
(can't remember what), but used sudo dpkg -i ./albatross.deb
and it worked fineThanks again for pointing out all of these things to me - very grateful
I've been playing around with the debian packaging that @reynir has provided.
Firstly, just let me say that I'm no linux expert!
dune build
Deploying unikernels didn't work and I discovered that, for example, trying to deploy a hvt locally resulted in albatross-client-local trying to execute solo5-hvt in /var/lib/albatross, whereas the albatross binaries had been installed in /usr/bin.
I guess the packaging scripts are really meant for user customisation. Nevertheless, using albatross is a dream - thanks for making it available.
The following ubuntu netplan is for setting up a static host ip address with a service bridge for albatross - just in case it's useful for anyone
where
enpXXX
is the exposed interface and10.0.0.XXX/24
is the static IP for the host