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

Simplified OCI builds #13160

Merged
merged 2 commits into from
Jan 29, 2025
Merged

Simplified OCI builds #13160

merged 2 commits into from
Jan 29, 2025

Conversation

mkuratczyk
Copy link
Contributor

@mkuratczyk mkuratczyk commented Jan 27, 2025

NOTE: this PR only affects the image we build for our testing purposes (pivotalrabbitmq/rabbitmq) and not the one used by users (called rabbtimq and maintained by Docker)

TODO: currently the PR pushes images to pivotalrabbitmq/rabbitmq-test. After the review, I'll change it to push to pivotalrabbitmq/rabbitmq. DONE

Changes included in this PR:

  • simplification of the action and Dockerfile (+60 -554 lines)
  • less maintenance - since we use the erlang image as the base, we get the regular updates for free (in the past we had to manually bump Erlang/OpenSSL)
  • the actions will no longer recompile erlang/openssl (which happened more often than it should)
  • an image build can now be triggered manually with any Erlang version and with an option to build an ARM64 image
  • by default we now build the image with OTP27 (OTP27 is used for compilation and at runtime)

If we backport this PR to v4.0.x, we should probably change the default OTP version to 26 in the backport

* use the official erlang image as the base
  (no more openssl and erlang recompilation)
* by default, build with OTP27 for x86 only but make it
  easy to request any other OTP version and an ARM64 image
* better docker layer caching
* simplify the workflow and the Dockerfile
@mkuratczyk mkuratczyk merged commit 6692fcb into main Jan 29, 2025
258 of 266 checks passed
@mkuratczyk mkuratczyk deleted the simplified-oci-action branch January 29, 2025 08:33
@michaelklishin
Copy link
Member

@Mergifyio backport v4.0.x

Copy link

mergify bot commented Jan 31, 2025

backport v4.0.x

✅ Backports have been created

michaelklishin added a commit that referenced this pull request Jan 31, 2025
michaelklishin added a commit that referenced this pull request Jan 31, 2025
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.

2 participants