-
Notifications
You must be signed in to change notification settings - Fork 432
Change our "tty" enablement code to not set sasl_error_logger for now #7
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
Conversation
This also changes our setting of `error_logger` to be more robust and to leave `RABBITMQ_SERVER_START_ARGS` as the user-available knob it's supposed to be.
LGTM |
Change our "tty" enablement code to not set sasl_error_logger for now
- `django`: 1.7.4 - `haproxy`: 1.4.26 and 1.5.11 - `java`: 6b34 - `mariadb`: resync entrypoint with `mysql` (see `mysql` changes below; MariaDB/mariadb-docker#4) - `mongo`: 3.0.0-rc7 - `mysql`: read `DATADIR` from the MySQL configuration directly (docker-library/mysql#46); 5.5.42 and 5.6.23 - `php`: remove `Indexes` from Apache configuration (docker-library/php#66) - `pypy`: 2-2.5.0 - `rabbitmq`: fix TTY logging enablement (docker-library/rabbitmq#7)
- `django`: 1.7.4 - `haproxy`: 1.4.26 and 1.5.11 - `java`: 6b34 - `mariadb`: resync entrypoint with `mysql` (see `mysql` changes below; MariaDB/mariadb-docker#4) - `mongo`: 3.0.0-rc7 - `mysql`: 5.5.42 and 5.6.23; read `DATADIR` from the MySQL configuration directly (docker-library/mysql#46) - `php`: remove `Indexes` from Apache configuration (docker-library/php#66) - `pypy`: 2-2.5.0 - `rabbitmq`: fix TTY logging enablement (docker-library/rabbitmq#7)
RUN grep -vE '^\s+-rabbit .*error_logger.*' /usr/lib/rabbitmq/lib/rabbitmq_server-*/sbin/rabbitmq-server > /tmp/rabbitmq-server \ | ||
# get logs to stdout (thanks to http://www.superpumpup.com/docker-rabbitmq-stdout for inspiration) | ||
# TODO figure out what we'd need to do to add "(sasl_)?" to this sed and have it work ("{"init terminating in do_boot",{rabbit,failure_during_boot,{error,{cannot_log_to_tty,sasl_report_tty_h,not_installed}}}}") | ||
RUN sed -E 's!^(\s*-rabbit\s+error_logger)\s+\S*!\1 tty!' /usr/lib/rabbitmq/lib/rabbitmq_server-*/sbin/rabbitmq-server > /tmp/rabbitmq-server \ | ||
&& chmod +x /tmp/rabbitmq-server \ | ||
&& mv /tmp/rabbitmq-server /usr/lib/rabbitmq/lib/rabbitmq_server-*/sbin/rabbitmq-server |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even better, this could be:
RUN sed -i.bak -E \
-e 's!^(\s*-rabbit\s+error_logger)\s+\S*!\1 tty!' \
-e 's!^(\s*-rabbit\s+sasl_error_logger)\s+\S*!\1 tty!' \
/usr/lib/rabbitmq/lib/rabbitmq_server-*/sbin/rabbitmq-server
and you get to remove the chmod + the mv.
*Please hold for testing. *
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK the sasl bit still does not work. Sorry for the comment spam (but the -i.bak bit may still be useful.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hopefully #18 leads to us not needing this at all. 😄
I'm not sure why we didn't use -i
here initially... Seems like an oversight, so a PR would definitely be 👍! 😇
This also changes our setting of
error_logger
to be more robust and to leaveRABBITMQ_SERVER_START_ARGS
as the user-available knob it's supposed to be.Fixes #2