Add config property for the Minio console port
🏰 Context
In gitlab!92585 (merged), we bumped the version of Minio when it is managed by asdf
in GDK.
After that MR, the combined version list was updated in !2687 (merged).
Newer versions of Minio provides a really useful tool: Minio console. This web dashboard has interesting features such as tracing to monitor the activity on S3 like API endpoints (as demonstrated here).
Now, the issue is that the console is started on a random port. To get it, we need to display the startup messages. For that, we can use gdk tail minio
.
With this MR, we try to ease things by using a fixed console port. We will not just use a fixed console port. This MR also updates the object_storage
configuration by adding a new key console_port
that users can set to set the console port to whatever number they want.
🤔 What does this Merge Request do and why?
- Update the
Procfile
to provide aconsole-address
parameter tominio
executable. - Add a
console_port
configuration key toobject_storage
. - Update the related documentation.
⚙ How to validate this locally?
- Check this MR's branch.
- Enable object storage.
-
$ gdk reconfigure
. -
$ gdk start minio && gdk tail minio
. - You should see:
2022-07-19_11:33:48.77710 minio : API: http://172.16.123.1:9000 2022-07-19_11:33:48.77718 minio : Console: http://172.16.123.1:9090
With a custom port now:
- Update the
gdk.yml
to haveconsole_port: 9999
under theobject_storage
key. -
$ gdk reconfigure
. -
$ gdk start minio && gdk tail minio
. - You should see:
2022-07-19_11:37:42.01285 minio : API: http://172.16.123.1:9000 2022-07-19_11:37:42.01286 minio : Console: http://172.16.123.1:9999
🚥 Merge Request checklist
-
This change is backward compatible. If not, please include steps to communicate to our users. -
Tests added for new functionality. If not, please raise Issue to follow-up. -
Documentation added/updated, if needed. -
gdk doctor
test added, if needed. -
Add the ~highlight
label if this MR should be included in theCHANGELOG.md
.