Commit Graph

69 Commits

Author SHA1 Message Date
Abhilash Raj
d502b34f21 Bump Mailaman components. (#378)
* Bump Mailaman-web components.

* Bump mailman core
2020-06-12 19:03:50 -07:00
Abhilash Raj
9ebc27138e Fix issues with gunicorn 20.0.0 (#350)
* Fix latest version of gunicorn.

* Use older version of gunicorn.
2019-11-17 17:47:01 -08:00
Abhilash Raj
7965824453 Bump to latest 0.3.0 release. (#347) 2019-10-13 20:13:23 -07:00
Marvin Greenberg
6f26dc9145 Fix minor typo in docker-entrypoint.sh (#345) 2019-09-08 17:29:29 -07:00
Joren Vrancken
ffbdda51eb Rename non-existent HYPERKITTY_API_URL to HYPERKITTY_URL in core readme. 2019-06-20 20:19:45 +02:00
Abhilash Raj
d93dd4b02b Bump Core to 3.2.2 2019-03-29 14:28:26 -07:00
Abhilash Raj
0a7bbc1e87 Fix typo 2019-02-09 10:15:03 -08:00
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
Christoph Wagner
bf6689a45e fix mailman.cfg issue
We have to append ">>" to /etc/mailman.cfg and not to overwrite previously written content with ">".
Problem was that the database config made in setup_database was overriden.
2018-07-04 20:18:55 +02:00
richardbrinkman
ccf690b0a0 Fix #210: introduce MTA variable (#237)
* Fix #210: introduce MTA variable

* Fix: typo

* Fix: postfix configuration

* Del: temporary files
2018-06-19 09:09:00 -07:00
Andrew Hodgson
5b07e9278a Update Exim config file examples 2018-06-05 14:26:05 +01:00
Abhilash Raj
6af3c86832 Update README.md 2018-04-22 22:51:36 -07:00
skoranda
5a8e7f02fc Inject REST port, user, password from environment (#220)
Enable the port, user, and password used by Core for the REST API to be
injected using environment variables.
2018-03-09 23:24:20 -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
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
ba682509f4 Fix the URLs for development versions of images. 2017-10-09 23:14:22 -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
Jonas Thiem
8f702ee98e Add automatic rewrite of mysql:// database to add backend 2017-10-02 23:50:30 +02: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
Tatsuyuki Ishi
5b20021b91 Rename entrypoint script 2017-07-28 17:46:45 +09:00
Tatsuyuki Ishi
3525682741 Remove duplicated HYPERKITTY_URL default 2017-07-25 09:10:57 +09:00
Abhilash Raj
a7ab6509f1 Set MM_HOSTNAME to hostname -i. 2017-07-23 13:55:23 -07: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
Abhilash Raj
84dac7ae42 Database configuration should be set properly when using sqlite. (#78)
This will fix the default settings for sqlite database when running mailman-core image.
2017-07-20 15:01:23 -07:00
Abhilash Raj
fb5b8c8410 Run mailman aliases to generate LMTP files when running Core. (#77)
* Run mailman aliases to generate LMTP files when running Core.

* Change the order of commands in entrypoint.
2017-07-20 12:42:35 -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
Rémon S
17aede3614 Update run.sh (#68)
Fix a typo in Core's run.sh
2017-07-09 15:33:05 -07:00
maxking
b16e4aae82 Fix postfix configuration for core. 2017-06-11 14:17:18 -07:00
Abhilash Raj
bb93477b0d Add configuration for postfix to core image. Add docs. 2017-05-30 14:46:39 -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
dbd4b0d5fa Set the MAILMAN_CONFIG_FILE environement variable in Dockerfile. 2017-05-23 17:00:42 -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
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
2833647e06 Core should set hyperkitty url by default to the mailman-web container. 2017-04-21 12:13:19 -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