maxking / maxking/docker-mailman

[BUG] gunicorn-extra.cfg completelly overrides existing one

Open
#770 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
278
Forks
121
PR merge metrics
No merged PRs in 30d

Description

Tag/version of Container Images
0.5.3

The initialisation code in the docker-entrypoint.sh for mailman-core uses override shell semantics > rather than append to the end of the file >> as everywhere else in the code, where extra configs are provided.

https://github.com/maxking/docker-mailman/blob/a725f3bfe2bd03be1a70a409f60fddd7fe4962b5/core/docker-entrypoint.sh#L216

if [[ -e /opt/mailman/gunicorn-extra.cfg ]]
then
       echo "Found [webserver] configuration file at /opt/mailman/gunicorn-extra.cfg"
       cat /opt/mailman/gunicorn-extra.cfg > /etc/gunicorn.cfg
fi

Not really sure if it's a bug or a feature, but at least, worth a comment in the code?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with core/docker-entrypoint.sh around the gunicorn-extra.cfg handling at line 216, then compare it with the other extra-configuration handling in the script. Confirm the intended behavior for an existing /etc/gunicorn.cfg; done means the extra configuration no longer unexpectedly replaces existing settings and the surrounding behavior remains consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, shell
Domain
devops
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.