Commit Graph

33 Commits

Author SHA1 Message Date
Abhilash Raj
efe301a139 Bump postorius to 1.2.3 2019-01-20 16:51:33 -08:00
Abhilash Raj
c5d84bfeab Use alpine images instead of Python. (#290)
* Use alpine images instead of Python.

* Minor fix to use python3 -m pip

* Fix settings for paintstore.
2019-01-20 16:39:11 -08:00
Patrick Georgi
51a5485c4a Add xapian to the mailman-web container
Whoosh completely breaks down on 4GB of mail archives, so provide xapian
as an alternative. It's not hooked up automatically, but can be enabled
in the config files.

Related to issue #97.
2019-01-17 00:20:56 +01:00
Patrick Georgi
561abf6fee Use standard alpine image as base for mailman-web
This way we can depend on alpine's python3 package which is binary
compatible with the rest of the python packages in the distribution.

This requires spelling out python3 explicitly in several places since
alpine still defaults to python 2 for /usr/bin/python.
2019-01-17 00:20:26 +01:00
Abhilash Raj
906dde757d Bump versions of MailmanClient and Django. 2019-01-15 09:05:58 -08:00
Abhilash Raj
93bc46f80e Upgrade P and HK versions to make the builds pass. 2018-09-02 13:07:22 -07:00
Abhilash Raj
274965cced Update stable containers to 3.2 suite release. 2018-07-26 20:53:07 -07:00
Abhilash Raj
74847e1f93 Install typing as it is required with django-extensions but not installed automatically 2018-03-08 22:42:57 -08:00
Florian Eßer
a35a0be1d2 Fix missing MIME types for static files
When running the mailman-web container with `UWSGI_STATIC_MAP=/static=/opt/mailman-web-data/static` (as suggested in https://github.com/maxking/docker-mailman#serving-static-files), the Browser receives the CSS files, but refuses to render them because of wrong MIME type (`text/plain`). Also, in the docker logs, a warning shows up that `/etc/mime.types` was not found.

According to the [Alpine package index](https://pkgs.alpinelinux.org/contents?branch=edge&name=mailcap&arch=armhf&repo=main), this file is part of the `mailcap` package. Installing it in the container makes Postorius stop looking ugly again!
2018-03-07 23:53:58 -08:00
Abhilash Raj
d07bdedc12 Upgrade Postorius to 1.1.2 (#209)
* Upgrade Postorius to 1.1.2

* Install django before django-mailman3

* Do not upgrade installed dependencies so that django remains compatible
2017-12-28 16:13:44 -08:00
Abhilash Raj
735f8746dc Update Core and Postorius to new releases. 2017-11-21 01:27:01 -08:00
dfukagaw28
45a4d7805b Fix comments in web/Dockerfile (#179)
Fixes #177
2017-11-05 22:46:59 -08:00
Abhilash Raj
3434446987 Create rolling releases using the Gitlab API. (#171)
* Create rolling releases using the Gitlab API.

This commit builds rolling releases of Container images using the latest commit
on master branch if the pipeline passed for it. The script which gets the
references is still un-tested and should be tested.

The latest commit hashes are passed as arguments to the Dockerfile, which is
then used by PIP to install the specific version of the dependency.
2017-11-03 18:43:59 -07:00
Abhilash Raj
fb60b6ab30 Upgrade HK to 1.1.4 2017-10-09 22:40:24 -07:00
Abhilash Raj
f4a2bbb7e3 Upgrade Mailmanclient to latest 3.1.1 2017-10-08 13:55:05 -07:00
Abhilash Raj
054fc2545b No need for apk cache for deleting dependencies. (#142)
Fixes #128
2017-10-01 01:54:08 -07:00
Abhilash Raj
afb8f09eff Fix MySQL compatibility in the docker images. (#140)
* Fix MySQL compatibility in the docker images.

* Test the containers with MySQL containers too!
2017-09-30 20:38:33 -07:00
Abhilash Raj
3c7881872f Bump hyperkitty to version 1.1.1 2017-08-06 10:05:50 -07:00
Tatsuyuki Ishi
5b20021b91 Rename entrypoint script 2017-07-28 17:46:45 +09:00
Tatsuyuki Ishi
21ba540e5b Migrate mailman-web to Alpine 2017-07-27 18:10:23 +09:00
Christian Rose
f6f4d36d64 Merge PR from @chrros95
Several Changes:
- Uwsgi now listens on two sockets 8080 for http protocol and 8000 for uwsgi protocol
- Add a read_timeout in documentation for Nginx configuration 
- Expose 8024 properly in Core image
- Expose 8080 and 8000 both in Web image
- Rearange the commands to get even less number of layers.
- Add SIGINT as stop signal in web because uwsgi needs it shut down gracefully
- Enable threads in default uwsgi configuration

Fix #64, Fix #15
2017-07-13 16:53:22 -07:00
Abhilash Raj
b49edc2fa0 Add user in the image and not container. (#51) 2017-06-14 23:34:55 -07:00
Abhilash Raj
7bc5bf5dc4 Use a config file for uwsgi. 2017-05-28 14:21:32 -07:00
Abhilash Raj
cda6d2a95a Install django-hyperkitty later so that PyPI version doesn't replace it. 2017-05-23 15:59:05 -07:00
Abhilash Raj
5503fbf79d Use UWSGI_LOGTO environment var to set logging path 2017-05-22 21:41:13 -07:00
Abhilash Raj
f88e8fc87c Remove apt lists to reduce the mailman-web image size. 2017-05-22 21:41:13 -07:00
Abhilash Raj
006d9687ea Upgrade installed packages that were fetched from PyPI. 2017-05-20 16:33:36 -07:00
Abhilash Raj
70afa6daf7 Run uwsgi in CMD. 2017-04-21 16:06:23 -07:00
Abhilash Raj
9a0421ea6d Run mailman using ENTRYPOINT instead of CMD. 2017-04-07 00:51:02 -07:00
Abhilash Raj
ad1aaff624 Several change to mailman-web image.
- Download source code as zip from gitlab instead of git+https because speed.
- Check if the $DATABASE_URL is not defined, use a default sqlite database.
- Use dj-database-url package to set database in django settings using
  DATABASE_URL environment variable.
- Use UWSGI_LOG_URL as the URL for UWSGI logging and set it to a default value
  if it has not been defined.
2017-04-06 17:06:12 -07:00
Abhilash Raj
12e8b04128 Add psycopg2 in mailman-web container.
Copy the settings file from /opt/mailman/web/ in the host system which
is supposed to be mounted at /opt/mailman-web-data/ in the container.
2017-03-29 22:27:06 -07:00
Abhilash Raj
131d1c0b8a Add a postgres database container.
- Set environemnt variables for Postgresql database in the compose file
- Set environment variables for uwsgi in the compose file
- Check if the postgresql container is up and accepting connections before
  running any actual services.
2017-03-29 21:58:40 -07:00
Abhilash Raj
c110bb1d01 Add a docker compose configuration and mailman-web
This commit adds a lot of new code including the mailman's web
frontend. It includes a configuration file which can later be
configured to run required configs.

Also, the docker-compose file spins off the containers, sets up
appropriate volumes and links.
2017-03-29 16:30:25 -07:00