Merge ~athos-ribeiro/ubuntu-docker-images/+git/bind9:foreground-flag into ~ubuntu-docker-images/ubuntu-docker-images/+git/bind9:9.18-22.10
Proposed by
Athos Ribeiro
Status: | Merged |
---|---|
Merged at revision: | d9fba4c03c7179c67b97fcaf8747ba542bf1c998 |
Proposed branch: | ~athos-ribeiro/ubuntu-docker-images/+git/bind9:foreground-flag |
Merge into: | ~ubuntu-docker-images/ubuntu-docker-images/+git/bind9:9.18-22.10 |
Diff against target: |
31 lines (+11/-2) 1 file modified
docker-entrypoint.sh (+11/-2) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sergio Durigan Junior | Approve | ||
Bryce Harrington | Pending | ||
Canonical Server Reporter | Pending | ||
Review via email: mp+431132@code.launchpad.net |
Description of the change
LP: #1991719
This change allows users to reduce the logging enforcement level, allowing them to specify alternative log files in their deployments by starting their containers by passing "-f" to the FOREGROUND_FLAG value.
Once this is merged, we need to update the image docs to inform users about the new methods.
To post a comment you must log in.
Thanks, Athos.
I'm thinking about the new flag, and while I do agree with the overall idea I believe that we could implement it in a "nicer" way for the user. I'd like to take redis' "start-redi.sh" entrypoint script as an example. In it, you will find the $ALLOW_ EMPTY_PASSWORD variable, which controls whether the redis server can be started without a password or not. What I like about that variable is that it abstracts the logic behind this operation, so that the user doesn't have have to bother about setting up a password{,less} redis.
WDYT about following the same approach here? We could have a $FOREGROUND flag that takes a "yes/no" value and decides the actual CLI parameters that need to be passed to named.