Commit Graph

178 Commits

Author SHA1 Message Date
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
Abhilash Raj
b3b0c3165f Create containers using the master git branches (#153)
Use the master branches from Gitlab to build development container images.
2017-10-07 16:03:50 -07:00
Abhilash Raj
6196c9cce3 Merge pull request #149 from JonasT/mysql-backend-autodetect
Add automatic rewrite of mysql:// database URLs to mysql+pymysql:// URLs.

Since `pymysql` is the recommended way to use MySQL with Core, it makes sense to automatically rewrite the initial part of the `$DATABASE_URL` to `mysql+pymysql` .
2017-10-02 15:56:33 -07:00
Jonas Thiem
8f702ee98e Add automatic rewrite of mysql:// database to add backend 2017-10-02 23:50:30 +02:00
Abhilash Raj
5d3ecffa5a Update the example.com name and domain both.
Fixes #122
2017-10-01 16:04:13 -07:00
Abhilash Raj
aa2b8788a6 Rename an old variable left by mistake. 2017-10-01 16:04:13 -07:00
Abhilash Raj
770bfb7dac Try to auto-detect mailman-core's IP address.
Fixes #133
2017-10-01 02:49:06 -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
eca79c9858 Add allowed hosts using environment vars. 2017-10-01 01:35:52 -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
035e694152 Add docs about admin user password 2017-09-28 13:17:18 -07:00
Abhilash Raj
11c9a4fce6 Update a minor comment in the NEWS. 2017-08-15 03:15:27 -07:00
Abhilash Raj
79f4722878 Document that the static files need to be served using web server
Fixes #58
2017-08-09 17:42:51 -07:00
Abhilash Raj
b477b891b6 Change build script to build latest release versions if not in CI (#115)
Build.sh can build the latest versions of the images using the VERSION file under the two repos (core & web).
2017-08-09 16:34:01 -07:00
Abhilash Raj
71dc87143e Slight changes in release 2017-08-09 16:00:44 -07:00
Abhilash Raj
644cf9dc0d Add news (#112)
* Add NEWS file for updates.

* Add NEWS item about Hyperkitty's new version.
2017-08-09 14:50:58 -07:00