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

feat: Install most recent Erlang from RabbitMQ packages #592

Merged
merged 3 commits into from
Mar 20, 2025

Conversation

BYK
Copy link
Member

@BYK BYK commented Mar 10, 2025

@BYK BYK enabled auto-merge (squash) March 10, 2025 14:40
@asottile-sentry
Copy link
Member

this does not seem like a good idea -- why not just upgrade instead of using some unofficial build

@BYK
Copy link
Member Author

BYK commented Mar 10, 2025

@asottile-sentry would love to but the versions on the Debian repos are too old for our stuff.

@sl0thentr0py
Copy link
Member

sl0thentr0py commented Mar 10, 2025

fwiw, I would rather just use a language version manager like https://github.com/asdf-vm/asdf-elixir to not have to maintain these on our side, especially if we're stuck with debian where a lot of stuff is just way out of date

@asottile-sentry
Copy link
Member

@asottile-sentry would love to but the versions on the Debian repos are too old for our stuff.

? on the link in the deleted comment I see 27.3 available which is the absolute latest

Copy link

@whatyouhide whatyouhide left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!!

@BYK
Copy link
Member Author

BYK commented Mar 10, 2025

@asottile-sentry I did check that before. The problem is, they do not publish the package listed there (hence our failures). We can try to download and install the .deb file manually but that felt like a less stable solution, especially after seeing this: esl/packages#70

I thin the RabbitMQ packages are used and relied on enough to make it here but if you disagree, I am okay to try downloading and installing the .deb file from there.

@whatyouhide
Copy link

The hex.pm team maintains one the most widely-used Docker images for Elixir development. It supports Debian—here is an example of the latest Erlang/Elixir running on Debian.

@sl0thentr0py
Copy link
Member

sl0thentr0py commented Mar 11, 2025

@whatyouhide the problem is we have a single container based on node:22-bookworm-slim where we add all the language specific tooling later.

Is this the correct Dockerfile that builds the images you linked? Here they're building from source.
https://github.com/hexpm/bob/blob/main/priv/scripts/docker/erlang-debian-bookworm.dockerfile

I discussed having separate images per publishing tool, but I don't think anyone has time/motivation/investment justification to make such a large change to craft.

The larger problem remains that maintaining this Dockerfile is a PITA and we break the release flow everytime someone attempts to do so.

@whatyouhide
Copy link

@sl0thentr0py yes that's the Dockerfile for Erlang, and then Elixir gets installed on top. You could also pin the Erlang version if it's just for releasing. You could also do asdf on the particular Elixir image you build yeah.

@BYK
Copy link
Member Author

BYK commented Mar 11, 2025

@sl0thentr0py I think I may help with that improvement (not using an omnibus docker image for everything)

It'll take a few days at least though. What's the best way to unblock right now?

@sl0thentr0py
Copy link
Member

current fix is okay then for me! will leave it to @asottile-sentry to approve

@sl0thentr0py
Copy link
Member

people are waiting on the release, could we get this out? @asottile-sentry

@asottile-sentry
Copy link
Member

people are waiting on the release, could we get this out? @asottile-sentry

I'm not blocking anything -- it just seems like a bad idea to use rabbitmq's builds rather than official ones

@whatyouhide
Copy link

If @BYK is going to work on making Docker images configurable, this seems like a good patch to get releases out in the meantime?

@BYK
Copy link
Member Author

BYK commented Mar 12, 2025

To make it clear here: I did search for official builds for quite a while and that's how I ended up with the RabbitMQ builds. If anyone has a better idea, happy to go with that.

@whatyouhide @sl0thentr0py - What's the main issue with the omnibus Debian image? What would you have used if it was not this?

@sl0thentr0py
Copy link
Member

just the hexpm/elixir base image directly

@BYK
Copy link
Member Author

BYK commented Mar 12, 2025

@sl0thentr0py would love to replicate what they do in our own image but I can't wrap my head around it (probably because Elixir is alien to me). Any pointers? Bob the builder doesn't really help 😅

@sl0thentr0py
Copy link
Member

it's building from source, I would rather not have that on our side since it can change and we would have to maintain that.

Is it possible to do this
https://docs.docker.com/build/building/multi-stage/
and pull the elixir and erlang binaries from the hexpm image or does that not work? I've never tried that myself.

@BYK
Copy link
Member Author

BYK commented Mar 13, 2025

We can definitely do that. I checked their Dockerfile and looks like that's what they do?

@whatyouhide
Copy link

@sl0thentr0py @BYK releases are still blocked for the Elixir SDK. Anything I can do to help?

@BYK BYK merged commit ceebf6a into master Mar 20, 2025
11 checks passed
@BYK BYK deleted the byk/feat/erlang-from-rabbitmq branch March 20, 2025 17:24
@sl0thentr0py
Copy link
Member

i approved let's just try this

@whatyouhide
Copy link

@sl0thentr0py any news here?

@sl0thentr0py
Copy link
Member

we just need to approve the release again, but Stephanie is out so I'll ping some other manager

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.

4 participants