Skip to content

Added RABBITMQ_CLUSTER_NODES option in docker-entrypoint.sh to allow … #110

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

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ sslConfigKeys=(
fail_if_no_peer_cert
keyfile
verify
depth
)
managementConfigKeys=(
"${sslConfigKeys[@]/#/ssl_}"
Expand All @@ -35,6 +36,7 @@ rabbitConfigKeys=(
default_user
default_vhost
hipe_compile
cluster_nodes
)
fileConfigKeys=(
management_ssl_cacertfile
Expand Down Expand Up @@ -187,6 +189,16 @@ rabbit_env_config() {
[ "$val" ] && rawVal='true' || rawVal='false'
;;

depth)
[ "$val" ] || continue
rawVal=''"$val"''
;;

cluster_nodes)
[ "$val" ] || continue
rawVal=''"$val"''
;;

cacertfile|certfile|keyfile)
[ "$val" ] || continue
rawVal='"'"$val"'"'
Expand Down Expand Up @@ -270,8 +282,6 @@ if [ "$haveSslConfig" ] && [[ "$1" == rabbitmq* ]] && [ ! -f "$combinedSsl" ]; t
fi
if [ "$haveSslConfig" ] && [ -f "$combinedSsl" ]; then
# More ENV vars for make clustering happiness
# we don't handle clustering in this script, but these args should ensure
# clustered SSL-enabled members will talk nicely
export ERL_SSL_PATH="$(erl -eval 'io:format("~p", [code:lib_dir(ssl, ebin)]),halt().' -noshell)"
export RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS="-pa $ERL_SSL_PATH -proto_dist inet_tls -ssl_dist_opt server_certfile $combinedSsl -ssl_dist_opt server_secure_renegotiate true client_secure_renegotiate true"
export RABBITMQ_CTL_ERL_ARGS="$RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS"
Expand Down