Release as Debian Package

37 views
Skip to first unread message

Joseph Lloyd

unread,
Mar 17, 2022, 6:29:30 PM3/17/22
to Erlang
My team has written our first Erlang program.  Now, we are preparing for deployment.  I can see how to use rebar3 to create a .tar file, but are there tools or workflows out there that can help us easily create a .deb file instead?

Thanks,
Joseph

Hugo Mills

unread,
Mar 17, 2022, 6:55:31 PM3/17/22
to Joseph Lloyd, Erlang
FPM ("Effing Package Management")[1] does the absolute minimum job
for building packages (in multiple formats -- .deb is one). It's not
pretty, and I suspect the resulting packages will never be accepted
into an upstream distribution, but if you're deploying internally
only, it should do the job nicely.

If you're building for external consumption, then you should
probably learn to do the packaging properly. I can't help there, I'm
afraid.

Hugo.

[1] https://github.com/jordansissel/fpm

--
Hugo Mills | "Your problem is that you have a negative
hugo@... carfax.org.uk | personality."
http://carfax.org.uk/ | "No, I don't!"
PGP: E2AB1DE4 | Londo and Vir, Babylon 5

A. G. Madi

unread,
Mar 17, 2022, 7:13:19 PM3/17/22
to Joseph Lloyd, Erlang
I don't remember seeing that in rebar3 but you can always add a call to alien into your flow after rebar builds the tar.  

Eric Pailleau

unread,
Mar 18, 2022, 3:15:21 AM3/18/22
to Erlang Questions, Joseph Lloyd

Hi,


See my project https://github.com/crownedgrouse/debut


Regards


Envoyé depuis mon mobile



---- Joseph Lloyd a écrit ----

Roger Lipscombe

unread,
Mar 18, 2022, 5:01:19 AM3/18/22
to Hugo Mills, Joseph Lloyd, Erlang
+1 to Hugo's point: We used 'fpm' for building our
internally-distributed .deb files; then we used apt-s3 (or whatever
it's called) to, well, pull the .deb files from an S3 bucket. Prior to
that, we used the full debbuild toolchain, but it was overkill for
internal releases. For simpler .deb files, we just built them with a
shell script and 'ar', etc.

otoh, if I were to do it again, I'd go all-in on containers.
Reply all
Reply to author
Forward
0 new messages