Tianon Gravi
3dc2705542
Allow upstream-supported environment variables without error
2021-08-16 12:50:09 -07:00
Joe Ferguson
01c0a84018
Error on deprecated RABBITMQ_ERLANG_COOKIE
2021-07-15 18:01:56 -07:00
Joe Ferguson
59789a4a76
Entrpoint err/exit when deprecated env vars are detected
2021-07-06 09:43:01 -07:00
Joe Ferguson
67d0569702
Drop env config in 3.9
2021-07-06 09:43:01 -07:00
Tianon Gravi
2fab2092a8
Add deprecation warnings to "docker-entrypoint.sh"
2021-06-14 10:06:38 -07:00
Joe Ferguson
1d9432d8a7
Fix bug in detecting if management plugin is installed
2021-05-28 10:57:01 -07:00
Tianon Gravi
f66ba3ccaa
Add a workaround for RABBITMQ_NODE_PORT for 3.8.3+
2021-05-27 15:16:56 -07:00
Tianon Gravi
3644a0189c
If the provided rabbitmq.conf is missing a newline at EOF, add one before appending to it
2020-12-29 13:48:33 -08:00
Michael Klishin
0a4e5fefa5
Use load_definitions instead of management.load_definitions
...
Closes #429
2020-08-12 18:24:07 +03:00
yosifkit
a5cccf2aa0
Merge pull request #369 from st3v/master
...
Add support for read-only config file mounts
2020-06-23 11:09:06 -07:00
James McNeil
34ed62c7a4
touch config file to verify it is read-only
2020-06-23 14:09:02 +01:00
James McNeil
ed7c222e42
Check for mounted config file to copy ( #1 )
2020-06-18 17:07:35 +02:00
Tianon Gravi
95838592f4
Switch from "management.listener.ssl_opts" to "management.ssl"
...
From #367 :
> This image provisions the latest RabbitMQ but still uses legacy (pre-3.7.9, soon to be 1 year old) settings to configure HTTP(S) API's [TCP and TLS settings](https://www.rabbitmq.com/management.html#multiple-listeners ): `management.listener.*` specifically.
> ...
> They are consistent with the core listener settings and easier to remember. They also make it possible to configure both HTTP and HTTPS listeners side by side which was not possible with a single set of options (`management.listener.*`).
2019-09-27 12:49:48 -07:00
Stev Witzel
4ce15fafb5
Add support for read-only config file mounts
...
This is a pretty common use-case given that as of Kubernetes v1.9.4
configMaps are mounted as read-only.
Fixes #368
2019-09-17 00:07:45 +02:00
Tianon Gravi
a0a0135181
Add a line of whitespace between certs in "combined.pem"
...
This is important if $RABBITMQ_SSL_CERTFILE does not end with a newline.
2019-08-02 14:26:28 -07:00
Tianon Gravi
2802b665bc
Update to Erlang 22 (and drop HiPE support)
2019-05-31 16:44:41 -07:00
Brian Fink
a7f1cedb9e
#294 : Allow RABBITMQ_VM_MEMORY_HIGH_WATERMARK to be set 0
2019-02-28 13:40:19 -06:00
Joe Ferguson
5bfde9806e
Initial single-stage conversion (and merge/diff back to Alpine)
2019-01-24 14:45:58 -08:00
Tianon Gravi
366975d808
Add Alpine WIP
2017-01-26 15:22:10 -08:00
Tianon Gravi
3ba4ec4db3
Use consistent variable naming and adjust configuration written to include "load_definitions" in the proper place
2017-01-11 12:05:55 -08:00
cavemandaveman
d72594a539
Add handling of a definitions file
2016-10-10 13:05:18 -05:00
Matthias Thubauville
29121864d4
Fix #102 - ERL_ARGS not exported correctly
2016-08-19 09:37:03 +02:00
Tianon Gravi
01cebb700e
Fix management SSL issues (needs separate "verify" and "fail_if_no_peer_cert" defaults)
2016-07-07 16:29:56 -07:00
Tianon Gravi
3569ec7f11
Fix the level at which we inject the "rabbitmq_management" configuration
...
Fixes #96
2016-07-07 15:11:47 -07:00
Tianon Gravi
ab3b8b85c1
Completely refactor configuration handling, including adding support for RABBITMQ_SSL_VERIFY and RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT and better error handling
2016-07-06 21:31:32 -07:00
Tianon Gravi
f1bfb7c795
More whitespace beautification
2016-07-06 17:36:37 -07:00
Tianon Gravi
264bbc0a9e
Fix whitespace inconsistencies
2016-07-06 17:26:36 -07:00
Tianon Gravi
fbe1b1ad9f
Refactor configuration handling a little (reuse the "config check" loop for SSL configuration checking)
2016-07-06 17:19:34 -07:00
Tianon Gravi
121694b707
Simplify env-to-config conversion code
2016-07-05 16:51:56 -07:00
Artur Stawiarski
707c2a0e91
Added support for enabling HiPE compiler through HIPE_COMPILE environment variable
2016-07-05 16:49:59 -07:00
yosifkit
ca2164c90a
Merge pull request #90 from infosiftr/always-ssl
...
Adjust entrypoint to gosu any rabbitmq command (rabbitmq-server and rabbitmqctl both) and to always set SSL-related environment variables
2016-07-05 16:09:37 -07:00
Tianon Gravi
3b60e68488
Fix minor whitespace consistency nits
2016-07-05 15:33:17 -07:00
Tianon Gravi
a15230d7ea
Adjust entrypoint to gosu any rabbitmq command (rabbitmq-server and rabbitmqctl both) and to always set SSL-related environment variables
...
This allows for `docker exec my-rabbit docker-entrypoint.sh rabbitmqctl status` to work out-of-the-box on an SSL-enabled installation, or for the same `-e` flags on a second `docker run` with `rabbitmqctl` to setup the environment appropriately for connecting to the initial SSL-enabled instance.
2016-07-05 15:25:21 -07:00
Tom Noonan II
55609c777d
Improve formatting of management config block: break common closing brackets out of conditional and clean up whitespace of the SSL block
2016-02-19 23:28:20 -07:00
Tianon Gravi
d9c4635649
Fix minor comment typo
2016-01-18 12:31:33 -08:00
Joe Ferguson
39be622d85
Only be root when necessary, so that `--user` works
2016-01-14 16:14:25 -08:00
Joe Ferguson
27b93617e5
ssl env vars should also trigger the haveConfig
2016-01-04 12:43:45 -08:00
Helio Leonardo Pinheiro E. Mota
b8fc6e5fe4
fixed ownership of ssl certificates
2015-12-31 10:15:44 -02:00
Tianon Gravi
60e5665854
Rebase, fix minor whitespace/quoting niggles
2015-11-23 11:10:55 -08:00
Vladimir Bolshakov
dd926c704d
Clean-up bash variables usage and comparisions.
2015-11-23 11:08:48 -08:00
Vladimir Bolshakov
dc712681dc
No more use additional environment variable to check management plugin installation.
2015-11-23 11:08:48 -08:00
Vladimir Bolshakov
a1595d15c8
Rename RABBIT_MANAGEMENT_ENABLED to RABBITMQ_MANAGEMENT_ENABLED.
2015-11-23 11:08:48 -08:00
Vladimir Bolshakov
f409458fec
No more used Bash extensions in conditions of entrypoint.
...
Strict usage of shell parameter expansion.
Rename variables RABBIT_* to RABBITMQ_*.
2015-11-23 11:08:48 -08:00
Vladimir Bolshakov
d8597c78c9
Entrypoint supports generation config with SSL settings now (for management too).
2015-11-23 11:08:47 -08:00
Vladimir Bolshakov
df7dfeceb8
Support of fully qualified names to identify nodes.
2015-11-23 11:08:47 -08:00
Tianon Gravi
df489e80ce
Update to 3.5.5, removing tini
2015-09-24 11:10:52 -07:00
Tianon Gravi
bb91e64b56
Add tini for handling signals appropriately
...
This is a short-term workaround while we wait for upstream to implement proper handling of SIGTERM.
2015-07-24 13:24:49 -07:00
Tianon Gravi
aae4d2b977
Improve ".erlang.cookie" file management by adding RABBITMQ_ERLANG_COOKIE for specifying it directly
...
This allows for direct, simple control over the contents of the `.erlang.cookie` file, which allows for much simpler container interconnections.
This also symlinks that file into `/root` so that the root user will pick it up properly without additional changes.
2015-07-06 12:54:26 -07:00
Tianon Gravi
97e1f49042
Support RABBITMQ_DEFAULT_VHOST, RABBITMQ_DEFAULT_USER, RABBITMQ_DEFAULT_PASS (optionally)
2015-06-30 11:35:33 -07:00
Tianon Gravi
7eeb489984
Add "gosu" and step down from root ourselves
2015-03-24 17:09:40 -06:00