Commit Graph

84 Commits

Author SHA1 Message Date
Michal Kuratczyk 7d08ac72f3 Use Erlang 24.3.1 as otp-max OCIs 2022-03-15 23:48:46 +01:00
Michal Kuratczyk 8ace6b3f6e Use Erlang 24.2.1 and Elixir 1.13.3 in otp-max OCIs 2022-02-22 18:36:04 +01:00
GitHub 979e984299 Adopt otp 24.1.5 for OCI workflow 2021-11-12 03:04:47 +00:00
GitHub f9964092a0 Adopt otp 24.1.4 for OCI workflow 2021-11-03 03:04:57 +00:00
GitHub c4c57ed4d3 Adopt otp 24.1.3 for OCI workflow 2021-10-28 03:04:58 +00:00
GitHub 31aa5874e8 Adopt otp 24.1.2 for OCI workflow 2021-10-06 03:04:52 +00:00
GitHub 59fb2afce9 Adopt otp 24.1.1 for OCI workflow 2021-10-01 03:04:56 +00:00
GitHub 49d1a0f094 Adopt otp 24.1 for OCI workflow 2021-09-23 13:22:42 +00:00
Gerhard Lazu 37ea496273
Add debug utilities to Docker image
We need these to debug various rabbitmq-related issues. Ephemeral debug
containers are not enabled on GKE Autopilot (not sure if GKE enables
this alpha feature at all), so we are doing this instead.

    error: ephemeral containers are disabled for this cluster (error from server: "the server could not find the requested resource").

Backport to v3.9.x & v3.8.x if build passes

Pair @Gsantomaggio

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2021-09-07 16:29:40 +01:00
pjk25 bcdbe14e44 [create-pull-request] automated change 2021-09-03 13:54:52 +00:00
Philip Kuryloski 5c603f0820 Enable the update-otp-for-oci.yaml workflow 2021-09-03 15:51:34 +02:00
Philip Kuryloski b562b08db0 Add a workflow that will open PRs to bump otp_max patch version
in the OCI workflow
2021-09-03 14:58:58 +02:00
Philip Kuryloski 81ad77e120 Apply the same default config as docker-library/rabbitmq 2021-07-26 15:45:04 +02:00
Philip Kuryloski db2aeea3d9 Fix `make docker-image` as executed from the repo root 2021-07-26 15:40:52 +02:00
Philip Kuryloski 14906b9b41 Adopt the simplified docker-entrypoint.sh from docker library 2021-07-26 15:40:51 +02:00
Gerhard Lazu ead61228b7
Build otp-min & otp-max dev container images (OCIs)
Add a make target that helps finding out SHA256 for specific OTP
versions. Inline comments have all the context.

Pushing straight to master to find out if it works. If it does, will
back-port to v3.9.x & v3.8.x

cc @ansd

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2021-07-07 11:23:40 +01:00
Gerhard Lazu 76c9712d30
Enable all plugins & ports in development container images (OCIs)
This is the best way of ensuring that everything works. RabbitMQ is not
just the core components, it's all the plugins that ship with it.  While
we don't expect anyone to enable all plugins at the same time (for
example enabling all peer discovery plugins at the same time doesn't
make sense), we need to be minimally confident that everything works.
As we work on & QA various features in dev, this is the quickest way of
doing just that.

For example, today we were testing some Stream features with
@GSantomaggio and discovered that we needed to use a different image for
it, pivotalrabbitmq/rabbitmq-stream, because in the dev image we don't
enable the stream plugin by default. There is no reason why we would
need a different container image to test a core feature, that ships part
of RabbitMQ as a Tier 1 plugin. To be honest, I strongly believe that
everyone be looking at these specific images (otp-max & otp-max-1) which
bundle the majority of the RabbitMQ experience in a single artefact,
including OpenSSL & Erlang.

While I would normally push this straight into the main branch, I'm
doing it as a PR so that the following notice, and have the opportunity
to comment on this standalone:
- @michaelklishin
- @GSantomaggio
- @Zerpet
- @MirahImage
- @ansd

As next steps, after all checks pass, can someone from the above list
action the following please:
- merge into our main branch
- backport to v3.9.x
- deploy to lre-3-9

🙌

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2021-07-02 09:36:50 +01:00
David Ansari dfbce39172 Build two OCI images
1. with minimum required Erlang
2. with maximum supported Erlang
2021-06-24 14:19:31 +02:00
David Ansari 91a598ed2c Bump to Erlang 24 and enable JIT compilation
See https://github.com/docker-library/rabbitmq/pull/492

Co-authored-by: Michal Kuratczyk <mkuratczyk@vmware.com>

Ensure compilation and runtime Erlang are in sync

Bump to Ubuntu 20.04

docker-library/rabbitmq also uses Ubuntu 20.04
2021-06-21 18:05:30 +02:00
Philip Kuryloski 54666a6231 Skip pgp verification for openssl archive in OCI images
The flake rate is too high for every CI run
2021-06-21 10:40:03 +02:00
Gerhard Lazu c0b4fef310
Use a different PGP keyserver for OpenSSL PGP keys
Certain keyservers fail seasonally & intermittently - every few months
one stops working reliabley - so then we alternate between them. Last
time we had this problem, pgpkeys.eu was failing, and now pgpkeys.uk
seems to be failing and resulting in flaky builds:

https://github.com/rabbitmq/rabbitmq-server/runs/2663558141?check_suite_focus=true

Trying pgpkeys.eu now, and preparing to go to the Ubuntu one next if
this one proves to not be as reliable as we would like it to be.

As a different approach, I am wondering if we should store these PGP
keys somewhere instead? WDYT @dumbbell?

Thanks @pjk25 for flagging this!

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2021-05-25 11:24:21 +01:00
David Ansari 56f3efab71 Tag docker image with branch name
in addition to tagging the docker image with the Git commit SHA.

This enables the cluster-operator to run system-tests against latest
rabbitmq-server master branch which allows us to fix any breaking
changes early and to test unreleased features such as rabbitmq_stream
plugin.
2021-04-23 11:53:53 +02:00
Gerhard Lazu 0befef897c
Build & push container image on every commit
Before this, someone would need to run the package-generic-unix and
docker-image make targets in order to produce a container image. This
wouldn't always work: more than one archive in the PACKAGES dir, VERSION
& RABBITMQ_VERSION had to be specified, + characters in VERSION. It also
required me to have Docker running, which I am reluctant to leave
running on macOS because it uses CPU even when idle, and starting it
every time that I wanted an ad-hoc container image implied waiting a few
minutes, and then waiting another 15 minutes for the container image to
be produced and published to hub.docker.com.

This commit delegates all the above to GitHub Actions. The best part is
that it happens asynchronously - every commit triggers it - and a
container image for that commit will appear on hub.docker.com within ~15
minutes. In other words, anyone can test any commit in their container
runtime within 20 minutes, without needing to lift a finger.  No Docker,
no make targets, just reference the new tag (matches the git sha) and
off you go. It's the beginning of something better, for sure.

Did some cleanup in the Dockerfile part of this. Dropped
RABBITMQ_VERSION build arg, env & commented steps. This is cruft that we
no longer need or even use.

Also fixed VERSION in push target and broken the dependency on dist so
that they can be run independently.

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2021-04-01 12:00:55 +01:00
Loïc Hoguin 314eb3f4d7
erl_interface is required in OTP-24+ 2021-03-16 12:01:30 +01:00
Philip Kuryloski e76f0e0bb4 Fix the docker image for use with uncompressed plugins
Historically the docker image build extracts the rabbitmqadmin cli from the
management .ez. This step is now conditional.
2021-02-23 12:40:55 +01:00
Philip Kuryloski 7c63b8e4fb Adjust the version and tag selection mechanism for `make docker-image`
The previous approach assumed `make package-generic-unix` had only been run once.
This borrows a snippet from rabbitmq-components.mk to select the `current` version
for the docker build by default.
2021-02-23 11:26:29 +01:00
Philip Kuryloski 15e6beea2a `make docker-image` no longer pushes the image by default
`make docker-image-push` maintains the previous behavior
2021-02-23 11:26:29 +01:00
Gerhard Lazu 9d798dedc1 Remove redundant SOURCE_DIST_FILE
It was a package-generic-unix dep requirement, which is now gone.

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2021-02-23 11:26:29 +01:00
Gerhard Lazu 4f0973620d Build the docker image, don't just echo
Also, don't depend on package-generic-unix, otherwise that will be
re-built every time we want to build the docker image, which is
unnecessary. It will fail now if a generic-unix doesn't exist, but
that's OK.

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2021-02-23 11:26:29 +01:00
Gerhard Lazu a937c6c7c7 Fix OPENSSL_PGP_KEY_IDS ENV in Dockerfile
I copied the pre-templating version from the official Dockerfile

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2021-02-23 11:26:29 +01:00
Gerhard Lazu aacec68c34 Use same docker config as the official rabbitmq image
Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2021-02-23 11:26:29 +01:00
Philip Kuryloski d041315336 Revert "Remove the packaging directory"
This reverts commit 2067a68735.
2021-02-23 11:26:29 +01:00
Philip Kuryloski 2067a68735 Remove the packaging directory
It has been extracted to https://github.com/rabbitmq/rabbitmq-packaging
2021-01-04 14:42:43 +01:00
Jean-Sébastien Pédron 4568ab0fb9
packaging/docker-image: Move Docker files to their own directory
Like other packaging files, they should not be part of RabbitMQ itself.
One day, they will probably be moved to a dedicated repository, like
other packaging files.
2020-11-16 12:18:39 +01:00