From cd7e6e850fc50d48c4e382f36be081b44e740fa1 Mon Sep 17 00:00:00 2001 From: Abhilash Raj Date: Tue, 18 Aug 2020 11:10:52 -0700 Subject: [PATCH 1/2] Update documentation about updates. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 03279d8..40a2300 100644 --- a/README.md +++ b/README.md @@ -59,8 +59,8 @@ Releases will follow the following rules: numbers, you can use this. * Any changes in the minor version of Mailman components of the images will - cause a bump in the minor version, e.g., A.(B+1) will have one (and only one) - updated Mailman component from A.B. Also, significant change in functionality, + cause a bump in the minor version, e.g., A.(B+1) can have one or more + updated Mailman components from A.B. Also, significant change in functionality, that might change how Images work or how people interact with the containers can also cause a bump in the minor version. From b5fd50226a4c0a7228b0681d10938aacf2be3000 Mon Sep 17 00:00:00 2001 From: Abhilash Raj Date: Sat, 22 Aug 2020 11:56:03 -0700 Subject: [PATCH 2/2] Compile all the i18n files installed in the container. Also, compress the static files offline. --- web/docker-entrypoint.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/web/docker-entrypoint.sh b/web/docker-entrypoint.sh index ba5f9e1..2657004 100755 --- a/web/docker-entrypoint.sh +++ b/web/docker-entrypoint.sh @@ -115,6 +115,16 @@ fi # Collect static for the django installation. python3 manage.py collectstatic --noinput --clear --verbosity 0 + +# Compile all the installed po files to mo. +SITE_DIR=$(python3 -c 'import site; print(site.getsitepackages()[0])') +echo "Compiling locale files in $SITE_DIR" +cd $SITE_DIR && /opt/mailman-web/manage.py compilemessages && cd - + +# Compress static files. +python3 manage.py compress --force + + # Migrate all the data to the database if this is a new installation, otherwise # this command will upgrade the database. python3 manage.py migrate