Skip to content

Commit

Permalink
Updated Mailman 3 for COmanage Registry images to 0.2.3
Browse files Browse the repository at this point in the history
Updated the Mailman 3 for COmanage Registry images to
version 0.2.3 to pick up more recent version of
core (3.2.2), postorious (1.2.4), and hyperkitty (1.2.2).
  • Loading branch information
skoranda committed Jun 27, 2019
1 parent 7e5d2cc commit 1636331
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion comanage-registry-mailman/core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ RUN apt-get update \
postgresql-client \
python3-dev \
&& pip install psycopg2 \
mailman==3.2 \
mailman==3.2.2 \
mailman-hyperkitty==1.1.0 \
pymysql \
&& adduser --system mailman
Expand Down
8 changes: 5 additions & 3 deletions comanage-registry-mailman/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,18 @@ RUN apt-get update \
gcc \
libc-dev \
libcurl4-openssl-dev \
libffi-dev \
libffi6 \
libmariadbclient-dev \
netcat-traditional \
postgresql-client \
sassc \
&& pip install --upgrade pip \
&& pip install django==2.1.5 \
&& pip install \
mailmanclient==3.2.1 \
postorius==1.2.3 \
hyperkitty==1.2.1 \
mailmanclient==3.2.2 \
postorius==1.2.4 \
hyperkitty==1.2.2 \
django-mailman3==1.2.0 \
whoosh \
uwsgi \
Expand Down
1 change: 1 addition & 0 deletions comanage-registry-mailman/web/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ fi
if [[ -e /opt/mailman-web-data/settings_local.py ]]; then
echo "Copying settings_local.py ..."
cp /opt/mailman-web-data/settings_local.py /opt/mailman-web/settings_local.py
chown mailman:mailman /opt/mailman-web/settings_local.py
fi

# Collect static for the django installation.
Expand Down
7 changes: 3 additions & 4 deletions comanage-registry-mailman/web/mailman-web/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@
'django.middleware.csrf.CsrfViewMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django_mail_header.middleware.MailHeaderMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.middleware.security.SecurityMiddleware',
Expand Down Expand Up @@ -239,9 +238,9 @@
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = os.environ.get('SMTP_HOST', '172.19.199.1')
EMAIL_PORT = os.environ.get('SMTP_PORT', 25)
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_USE_TLS = False
EMAIL_HOST_USER = os.environ.get('SMTP_HOST_USER', '')
EMAIL_HOST_PASSWORD = os.environ.get('SMTP_HOST_PASSWORD', '')
EMAIL_USE_TLS = os.environ.get('SMTP_USE_TLS', False)

# Compatibility with Bootstrap 3
from django.contrib.messages import constants as messages # flake8: noqa
Expand Down
3 changes: 1 addition & 2 deletions comanage-registry-mailman/web/mailman-web/uwsgi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ wsgi-file = wsgi.py

# Setup default number of processes and threads per process.
master = true
process = 2
threads = 2
process = 4

# Drop privielges and don't run as root.
uid = mailman
Expand Down

0 comments on commit 1636331

Please sign in to comment.