Commit Graph

193 Commits

Author SHA1 Message Date
Andrew Hodgson
5b07e9278a Update Exim config file examples 2018-06-05 14:26:05 +01:00
Abhilash Raj
536b999161 Fix the admin url configuration. 2018-05-30 21:01:43 -07:00
Abhilash Raj
512f29f0ba Bump Django dependency to the latest available (#243)
* Bump Django dependency to the latest available

Fixes #242

* Use the new django.urls API
2018-05-28 15:50:27 -07:00
Abhilash Raj
bbb3030359 Postorius (#241)
* Remove the secret key.

* Use the latest tag for postorius.

* Use the latest django-mailman3 that supports Python 3.

* Use minimum version on Django-mailman3.

* Fix import errors.
2018-05-16 19:52:41 -07:00
Abhilash Raj
7ec61d6f45 Update minimum version of django-mailman3 (#240)
* Use the latest django-mailman3 that supports Python 3.
2018-05-16 19:17:07 -07:00
Abhilash Raj
cc50b2c118 Remove secret key and upate the tag for postorius' image (#239)
* Remove the secret key.

* Use the latest tag for postorius.
2018-05-16 18:15:34 -07:00
Abhilash Raj
481d98b1f6 Add a postorius only container image. (#238) 2018-05-16 18:03:04 -07:00
Abhilash Raj
6af3c86832 Update README.md 2018-04-22 22:51:36 -07:00
Abhilash Raj
186bdcef8a Do not try to get the Core's IP automatically
Without a try-except block, trying to get the IP of `mailman-core` fails when mailman-web is made to run standalone.
2018-03-15 15:30:04 -07:00
skoranda
5a8e7f02fc Inject REST port, user, password from environment (#220)
Enable the port, user, and password used by Core for the REST API to be
injected using environment variables.
2018-03-09 23:24:20 -08:00
Abhilash Raj
d26c402617 Fix CI system to work on both Python 2 and 3 (#225)
* Use old style middleware settings for Python 2.

* Make entrypoint python2 and 3 compatible.

* Fix python command to test for mysql server.

* Bettery docker-entrypoint to work with Python 2 & 3

* Add missing braces.
2018-03-09 23:13:57 -08:00
Abhilash Raj
14d8e8071c Rename workflows to better names. (#222) 2018-03-08 23:50:05 -08: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
Abhilash Raj
42b79f5b48 Add mailcap to Dockerfile.dev too 2018-03-07 23:53:58 -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
bfefd9fbc3 Update mailman-web to use Python 3 (For rolling releases) (#217)
* Update mailman-web to use Python 3

* Update configuration

* Python 3.6 image.

* Use alpine 3.7

* Use new style middleware

* Use alpine 3.6

* In Python 3, urlparse was renamed to urllib.parse
2018-03-07 23:22:47 -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
ba9b7f9d94 Merge pull request #203 from maxking/fix-inspect-docs
Update README.md
2017-11-28 19:54:49 -08:00
Abhilash Raj
33f6a3d0b7 Update README.md 2017-11-27 00:53:20 -08:00
Abhilash Raj
e551701580 Merge pull request #201 from maxking/maxking-patch-1
Update README.md
2017-11-23 13:17:28 -08:00
Abhilash Raj
8699f0db3c Update README.md 2017-11-23 10:22:54 -08:00
Abhilash Raj
735f8746dc Update Core and Postorius to new releases. 2017-11-21 01:27:01 -08:00
Jonas Thiem
d846f1c763 Add code for auto-detecting database class for common cases (issue #137 ) (#150)
* Add code for auto-detecting database class for common cases.

* Fix unintentional space indentation instead of proper tab indentation

* Fix another left-over spaces indentation (sorry)
2017-11-15 19:11:08 -08:00
Abhilash Raj
bb0bf0db9a Add a note in bold that rolling releases can be unstable. 2017-11-12 11:39:03 -08:00
Abhilash Raj
49f802d608 Add documentation for rolling releases. (#191)
* Add documentation for rolling releases.

* Fix the URLs.
2017-11-06 23:38:51 -08:00
dfukagaw28
45a4d7805b Fix comments in web/Dockerfile (#179)
Fixes #177
2017-11-05 22:46:59 -08:00
Abhilash Raj
2bbb3cb322 Setup Quay URL in the environment too. (#190)
Set some default env variables.
2017-11-05 22:35:15 -08:00
Abhilash Raj
beb5ca216e Set Quay as default registry. (#189) 2017-11-05 22:19:58 -08:00
Abhilash Raj
84ae8986b6 Use COMMIT_ID as unique identifier tag. (#188) 2017-11-05 22:07:42 -08:00
Abhilash Raj
7f6d62c069 Push the image that was built without specifying tags. 2017-11-05 21:44:47 -08:00
Abhilash Raj
97e9d68c3b Ci workflows (#185)
* Build dev images with every commit.

* Use virtualenv to build dev images.

* Activate virtualenv properly.
2017-11-05 21:22:19 -08:00
Abhilash Raj
23339ad812 Remove stray code. 2017-11-05 21:00:23 -08:00
Abhilash Raj
f8ebce1d49 Fix build and test setup for dev images. 2017-11-05 21:00:23 -08:00
Abhilash Raj
73f583cc4d Build dev images on every push to master branch. 2017-11-05 21:00:23 -08:00
Abhilash Raj
0cf4dd605a Use build contexts. 2017-11-05 21:00:23 -08:00
Abhilash Raj
6b7135bde9 Use contexts instead of separate builds. 2017-11-05 21:00:23 -08:00
Abhilash Raj
81c57adf90 Validate configuration. 2017-11-05 21:00:23 -08:00
Abhilash Raj
2c1552cc24 Setup cron to deploy dev images. 2017-11-05 21:00:23 -08:00
Abhilash Raj
ecb88c32e4 Use $TAG to push. 2017-11-05 19:39:24 -08:00
Abhilash Raj
12e7761c1f Use Circle CI for faster builds. (#181)
Move to Circle CI from Travis CI.
2017-11-05 18:41:00 -08:00
Abhilash Raj
389d166f2b Fix deploy script (#176)
Use posix style function instead of bash style.
2017-11-03 23:48:04 -07:00
Abhilash Raj
f3411fa3ee Fix deploy script (#173)
Fix the deploy script and deploy script and push rolling releases only when cron jobs run.
2017-11-03 19:44:29 -07: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
743bc8522c Force start mailman inside the container.
Even though the 'master.lck' is supposed to prevent race conditions, it needs to
be manually removed if the container did not shutdown gracefully. Remove the
manual check for the lock file and force mailman to remove it.

Also, set the stop_grace_period to 30s, which would allow Core to stop
gracefully and not leave the lock file over. Default value in case of Docker is 10s.
2017-11-03 10:59:08 -07:00
Abhilash Raj
d531dbc853 Add documentation to serve static files using uwsgi. (#158) 2017-10-26 18:18:53 -07:00
Abhilash Raj
a74497d21e Pin the version of alembic to 0.9.5 to prevent errors. 2017-10-23 22:04:49 -07:00
Abhilash Raj
ba682509f4 Fix the URLs for development versions of images. 2017-10-09 23:14:22 -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
4b61d18909 Add git to the mailman-web build dependencies. 2017-10-07 19:06:37 -07:00