Commit Graph

62 Commits

Author SHA1 Message Date
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
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
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
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
3c7881872f Bump hyperkitty to version 1.1.1 2017-08-06 10:05:50 -07:00
Tatsuyuki Ishi
f940024d17 Fix default search path 2017-07-30 01:13:51 +09:00
Tatsuyuki Ishi
5b20021b91 Rename entrypoint script 2017-07-28 17:46:45 +09:00
Tatsuyuki Ishi
a757df8f55 Use sassc for django-compressor 2017-07-28 17:46:45 +09:00
Tatsuyuki Ishi
6d79d91142 uWSGI: use string uid/gid 2017-07-28 17:46:45 +09:00
Tatsuyuki Ishi
21ba540e5b Migrate mailman-web to Alpine 2017-07-27 18:10:23 +09:00
Tatsuyuki Ishi
39fd5c6b25 Remove default value of SECRET_KEY in Django's settings.py (#102)
The default value of SECRET_KEY was hard-coded in the settings.py which would turn out to be used all the time even if people are not forced to change it. So this commit removes that value and instead gets the SECRET_KEY from the environment variable.

Closes #99
2017-07-27 01:40:14 -07:00
Abhilash Raj
525604bac4 Recreate default domain and fix #94. (#95)
Provided MAILMAN_DEFAULT_DOMAIN environment variable, rename example.com with
the provided domain name. Fix a bug where if the default username exists carry
on without creating the superuser.

Reuse the SERVE_FROM_DOMAIN instead of new MAILMAN_FROM_DOMAIN variable to set
the default Django SITE.
2017-07-26 04:11:58 -07:00
Abhilash Raj
77b260a2ac Create a superuser if environment variables are defined. (#93)
Create a superuser if environment variables are defined.
2017-07-26 03:23:00 -07:00
Tatsuyuki Ishi
13fac22e20 Add quarter_hourly to cron configuration
It is purely optional as there was no job set to run quarter hourly.
2017-07-25 09:18:53 +09:00
Tatsuyuki Ishi
70b81d64b5 Fix uWSGI cron configuration
The missing daily routines are also added.
2017-07-25 09:08:02 +09:00
Abhilash Raj
43731112e7 Remove Facebook from default social auth provider. 2017-07-20 15:15:26 -07:00
Abhilash Raj
a361b31923 Switch ports for uwsgi and http. 2017-07-18 19:06:41 -07: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
2025f733a9 Add a mailman user and setup loggers. 2017-05-28 17:11:41 -07:00
Abhilash Raj
4bac2fb236 Add crons and update the uwsgi configuration. 2017-05-28 14:52:09 -07:00
Abhilash Raj
a21097d68e Spin of qcluster command from uwsgi. 2017-05-28 14:28:02 -07:00
Abhilash Raj
7bc5bf5dc4 Use a config file for uwsgi. 2017-05-28 14:21:32 -07:00
Abhilash Raj
f60511bc45 Pin down mailman release versions. 2017-05-28 12:54:52 -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
dc491a9d96 Add django_q as dependency and remove commented part in settings. 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
78f75eaec4 Add documentation to add a superuser. 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
8630f39a13 Fix a small typo. 2017-04-21 15:22:23 -07:00
Abhilash Raj
2833647e06 Core should set hyperkitty url by default to the mailman-web container. 2017-04-21 12:13:19 -07:00
Abhilash Raj
e24bef5d0c MAILMAN_ARCHIVER_FROM should be core's IP not django. 2017-04-10 14:12:07 -07:00
Abhilash Raj
1cfee02611 Use -v to check if variables are set in bash.
I _think_ this was added to bash in 4.1.2 or something. It is a better check
than -z which checks if the value of the variable is null or not.
2017-04-08 19:53:57 -07:00
Abhilash Raj
701825c2a3 Fix Database Url check, force mailman to start, remove security settings in
django.

- -z Does not check properly if the DATABASE_URL is defined or not. It evaluates
   to True if it is not set or set to ''

- Remove SECURE_SSL_REDIRECT in the django settings because this deployment is
  meant to behind Nginx which decrypts SSL packets.

- Force mailman to start even with a lock. This _may_ not be the best idea but
  for now if everything is followed according to this guide.
2017-04-08 19:36:39 -07:00
Abhilash Raj
aec4ef4e03 Disable some security options in django settings. 2017-04-07 18:22:43 -07:00
Abhilash Raj
32796a5a18 Add separate Readme for each image. 2017-04-07 15:47:36 -07:00