Commit Graph

46 Commits

Author SHA1 Message Date
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
cde320477c Trying out travis-configuration.
- Make core.sh executable.

- Check the IP Address of containers in travis.

- Wait for the services to come up before running tests.
2017-04-18 09:54:03 -07:00
Abhilash Raj
aa367a2495 Fix the wrong database class for Postgesql in mailman-core. 2017-04-18 08:37:56 -07:00
Abhilash Raj
c4c9929213 Fix a typo bug.
Checking for the wrong database URL caused the mailman core to always use an
sqlite database even when another database is defined. This commit fixes that.
2017-04-18 08:25:23 -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
3460b6e4c6 Enclose metadata. 2017-04-10 04:34:31 -07:00
Abhilash Raj
ab06eac649 Render properly with Github Pages 2017-04-10 04:24:10 -07:00
Abhilash Raj
124558d727 Set theme jekyll-theme-cayman 2017-04-10 04:19:43 -07:00
Abhilash Raj
67089dde74 Directly run the master runner as CMD, instead of mailman start.
`mailman start` command does not nothing but parses the configuration and starts
the appropriate runners. The start command is implemented such that it forks the
master runner, which in-turn starts the all the rest of the runners. It turns
out that `master` is also exported as an console script which can directly be
started instead of running `mailman start` command. This makes containerizing
mailman much more easier.
2017-04-10 01:26:10 -07:00
Abhilash Raj
57d33dfafa Add more details about DATABASE related variables for core. 2017-04-08 20:03:07 -07:00
Abhilash Raj
7de4cd6a92 Define the DATABASE_TYPE and DATABASE_CLASS along with DATABASE_URL. 2017-04-08 19:54:51 -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
5b53844a7e Add instructions for exim in the Core's Readme. 2017-04-07 16:04:53 -07:00
Abhilash Raj
316088f455 Use docker-compose start instead of up to run in bg. 2017-04-07 15:58:53 -07:00
Abhilash Raj
26c384e750 Fix a small typo. 2017-04-07 15:49:23 -07:00
Abhilash Raj
32796a5a18 Add separate Readme for each image. 2017-04-07 15:47:36 -07:00
Abhilash Raj
2907087057 Don't add pidproxy.py since it is not needed anymore. 2017-04-07 02:12:09 -07:00
Abhilash Raj
0cbb2d8e38 Remove the pidproxy.py file. 2017-04-07 00:56:33 -07:00
Abhilash Raj
235e076e63 Change all the configuration variables to ENVIRONMENT VARS.
Following 12factor principle for app development, all the configuration
variables for the docker images can now be setup using environment vars.

The default values are set using the run.sh script in both mailman-web
and mailman-core containers.

Mailman-core is now run by "run.sh" which traps SIGTERM and performs
mailman stop for graceful exit of mailman core.
2017-04-07 00:56:04 -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
92add31f4a Put default configuration in mailman-web and copy only settings_local.py 2017-04-06 13:56:13 -07:00
Abhilash Raj
7f4cb3190a Create logs and copy settings_local.py
- If the logs file doesn't exist, create it so that django doesn't complain about
  non-existent log files.
- If the settings_local.py exist, copy it too along with settings.py
2017-04-06 13:26:49 -07:00
Abhilash Raj
c40fcbe3dd Enable security options in django settings. 2017-04-06 13:01:20 -07:00
Abhilash Raj
b863cb0767 Add a missing comma in settings. 2017-04-06 12:46:26 -07:00
Abhilash Raj
e050826abc Download mailman from wget rather than git. 2017-04-05 20:19:18 -07:00
Abhilash Raj
b614f46532 Remove postfix from the default core image. 2017-04-05 20:04:16 -07:00
Abhilash Raj
f45c754c7d Merge branch 'master' of github.com:maxking/docker-mailman 2017-04-05 02:01:35 -07:00
Abhilash Raj
3fa894bb34 Add License to readme. 2017-04-05 02:01:21 -07:00
Abhilash Raj
0f7262bff6 Create LICENSE 2017-04-05 02:00:29 -07:00
Abhilash Raj
97c6d1c2d8 Small changes in Readme. 2017-04-05 01:58:08 -07:00
Abhilash Raj
c135b427c2 Add a readme to the repository. 2017-04-05 01:56:41 -07:00
Abhilash Raj
1844d0412a Add configuration for exim4. 2017-04-05 00:41:31 -07:00
Abhilash Raj
d04f5b6dc8 Add sane mailman core configuration.
- Add configuration for exim to work with mailman core.
- Add configuration to enable hyperkitty in mailman core.
- Add configuration to enable mailman_hyperkitty plugin.
- Add mailman_hyperkitty plugin and ipython in the core container.
2017-04-05 00:35:42 -07:00
Abhilash Raj
add2ca06ea Add django settings file for mailman-web container. 2017-04-05 00:25:01 -07:00
Abhilash Raj
ed0756f9c9 Several changes
- Add hostnames to the container.
- Add a custom bridge network so that the containers and the host can have
  a static IP and that can be added in the configurations.
- Assign static IPs to all the containers in the new default configuration.
2017-04-05 00:11:33 -07:00
Abhilash Raj
aba3d0fb4a Add postfix to the core container. 2017-03-30 01:32:14 -07:00
Abhilash Raj
20d2708a0e Serve static files directly from uwsgi for now. 2017-03-29 23:11:13 -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
Abhilash Raj
5dd6b11660 Add a readme for the core. 2017-03-28 17:10:34 -07:00
Abhilash Raj
b5535d894d Initial mailman core docker container 2017-03-28 17:06:15 -07:00