Commit Graph

18 Commits

Author SHA1 Message Date
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
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
5503fbf79d Use UWSGI_LOGTO environment var to set logging path 2017-05-22 21:41:13 -07:00
Abhilash Raj
70afa6daf7 Run uwsgi in CMD. 2017-04-21 16:06:23 -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
aec4ef4e03 Disable some security options in django settings. 2017-04-07 18:22:43 -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
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
add2ca06ea Add django settings file for mailman-web container. 2017-04-05 00:25:01 -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