Skip to content

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

Merged
merged 1 commit into from
Feb 3, 2015
Merged

Conversation

tianon
Copy link
Member

@tianon tianon commented Feb 3, 2015

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.

Fixes #2

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.
@yosifkit
Copy link
Member

yosifkit commented Feb 3, 2015

LGTM

yosifkit added a commit that referenced this pull request Feb 3, 2015
Change our "tty" enablement code to not set sasl_error_logger for now
@yosifkit yosifkit merged commit 5d74f80 into docker-library:master Feb 3, 2015
@yosifkit yosifkit deleted the tty-fix branch February 3, 2015 00:18
tianon added a commit to infosiftr/stackbrew that referenced this pull request Feb 4, 2015
- `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)
tianon added a commit to infosiftr/stackbrew that referenced this pull request Feb 4, 2015
- `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
Copy link

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. *

Copy link

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.)

Copy link
Member Author

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 👍! 😇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Management image can't be successfully run
3 participants