Commit Graph

30 Commits

Author SHA1 Message Date
Abhilash Raj
c5d84bfeab Use alpine images instead of Python. (#290)
* Use alpine images instead of Python.

* Minor fix to use python3 -m pip

* Fix settings for paintstore.
2019-01-20 16:39:11 -08:00
Abhilash Raj
274965cced Update stable containers to 3.2 suite release. 2018-07-26 20:53:07 -07:00
Christoph Wagner
6d1ea69bb1 fix container build by adding libffi-dev 2018-07-04 20:25:53 +02:00
Abhilash Raj
735f8746dc Update Core and Postorius to new releases. 2017-11-21 01:27:01 -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
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
a74497d21e Pin the version of alembic to 0.9.5 to prevent errors. 2017-10-23 22:04:49 -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
Tatsuyuki Ishi
5b20021b91 Rename entrypoint script 2017-07-28 17:46:45 +09:00
Abhilash Raj
5fb1a19d18 Add pymysql to the Core container to interact with MySQL db. (#80)
Add pymysql to the Core container to interact with MySQL db.
2017-07-20 15:31:10 -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
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
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
dbd4b0d5fa Set the MAILMAN_CONFIG_FILE environement variable in Dockerfile. 2017-05-23 17:00:42 -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
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
2857394872 Move the mailman-core image to apline linux 2017-04-25 18:00:23 -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
2907087057 Don't add pidproxy.py since it is not needed anymore. 2017-04-07 02:12:09 -07:00
Abhilash Raj
9a0421ea6d Run mailman using ENTRYPOINT instead of CMD. 2017-04-07 00:51:02 -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
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
aba3d0fb4a Add postfix to the core container. 2017-03-30 01:32:14 -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
b5535d894d Initial mailman core docker container 2017-03-28 17:06:15 -07:00