Abhilash Raj
052ffa4eec
Merge pull request #41 from maxking/dev
...
Improve testing and push to docker hub only if testing succeeds.
2017-05-28 19:52:49 -07:00
Abhilash Raj
98e6401334
Test if the postorius/hk is available too.
2017-05-28 19:34:59 -07:00
Abhilash Raj
7b4376dd1b
Push to docker hub only if the build succeeds.
2017-05-28 17:49:01 -07:00
Abhilash Raj
41ecfb35ba
Merge pull request #40 from maxking/uwsgi
...
- Use a config file for uwsgi
- Add qcluster commands to uwsgi as daemons
- Add cron jobs for hyperkitty to uwsgi as crons
- Add a mailman user and run uwsgi as that user
2017-05-28 17:20:26 -07:00
Abhilash Raj
2025f733a9
Add a mailman user and setup loggers.
2017-05-28 17:11:41 -07:00
Abhilash Raj
0ae0a55a42
Specify the database type along with the URL.
2017-05-28 14:59:52 -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
f920f88165
Put the mailman.cfg in /etc instead of custom /config/ dir. ( #39 )
2017-05-28 13:17:13 -07:00
Abhilash Raj
f60511bc45
Pin down mailman release versions.
2017-05-28 12:54:52 -07:00
Abhilash Raj
d24bac22fe
Add psql client to check when postgres is up.
2017-05-24 16:04:21 -07:00
Abhilash Raj
f8126d90ba
Fix the location of var_dir to check for master lock.
2017-05-24 16:04:21 -07:00
Abhilash Raj
1923d27238
Mysql check still doesn't work.
2017-05-24 16:04:21 -07:00
Abhilash Raj
e5dc77b558
Use the postgres client to check if database is up.
2017-05-24 16:04:21 -07:00
Abhilash Raj
c7fee80c65
Install 3.1.0rc1 from PyPI for the stable image.
2017-05-24 16:04:21 -07:00
Abhilash Raj
8507eaeed2
Run mailman inside the container as a non-root process. ( #31 )
...
* Run as mailman user.
* Run mailman core process as a less-privileged mailman user.
* Add a `docker ps` to travis to know if any container died.
* Spit out more debug information in CI.
* Install su-exec properly.
2017-05-24 15:26:07 -07:00
Abhilash Raj
72b4abe894
Add space between image and its name.
2017-05-23 17:00:42 -07:00
Abhilash Raj
9db8b26c0c
Specify docker-compose version 2.
2017-05-23 17:00:42 -07:00
Abhilash Raj
a43239e6ec
Fix the generate_tests.sh to actually be executable.
2017-05-23 17:00:42 -07:00
Abhilash Raj
dbd4b0d5fa
Set the MAILMAN_CONFIG_FILE environement variable in Dockerfile.
2017-05-23 17:00:42 -07:00
Abhilash Raj
d4b0b74860
Test should test the current branch version and not the 'latest'.
2017-05-23 17:00:42 -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
74901ee51f
Update documentation for core image.
2017-05-22 21:41:13 -07:00
Abhilash Raj
ac7134801d
Point MAILMAN_CONFIG_FILE to the configuration mailman will use.
2017-05-22 21:41:13 -07:00
Abhilash Raj
d5be8baa32
Built on Travis instead of Dockerhub.
2017-05-22 16:51:00 -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
b747961ab1
Small tweak to reduce the image size.
...
Removing the build-deps package in a different layer doesn't really help because
of the way layered file systems work. They will exist in the image but appear to
be removed by whiteout files or something. This commit should reduce the size of
the mailman-core image considerably.
2017-04-25 19:49:31 -07:00
Abhilash Raj
23ad9f25b8
Use the build script while testing, it will also make sure that it works.
2017-04-25 19:49:31 -07:00
Abhilash Raj
dcc2ccb70e
Remove building from docker-compose and move that to a seperate script.
...
I want to be able to distribute docker-compose.yaml without any dependencies. In
order to do that, I should make it pull stable images from hub.docker.com
instead of trying to build them locally. This will avoid users running untested
code from the github repo instead of using the tested version on docker hub.
2017-04-25 19:49:31 -07:00
Abhilash Raj
2857394872
Move the mailman-core image to apline linux
2017-04-25 18:00:23 -07:00
Abhilash Raj
2e2b510364
Fix minor documentation bugs.
2017-04-22 14:54:43 -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
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