>
>
> Anyway, provide what options you are using so can see where things are at. 
> Can worry about other images you might use later. 
>
> Graham 
>

All noted. (Thought --include match was an unintended fallout of the 
parsing)

 apachectl: 
['/usr/local/python/bin/mod_wsgi-express', 'start-server', 
'--log-to-terminal', '--startup-log', '--port', '80', '--include', 
'extra.conf', '--socket-timeout', '3600', '--request-timeout', '60', 
'--debug-mode', 'pyramid.wsgi']

httpd.conf all default except inclusion of 
Include '/app/extra.conf' at end
as per the --include-file

extra.conf contains 
Timeout 21600
RequestReadTimeout header=300-360,MinRate=500 body=300-360,MinRate=500
LogLevel info

The RequestReadTimeout was my attempts to stop the Gateway Timeout errors 
and might ne superfluous. 
The --debug mode was the item that fixed to the Overrun/Truncated packet 
issue.

Dockerfile:
FROM grahamdumpleton/mod-wsgi-docker:python-3.4-onbuild
CMD [ "pyramid.wsgi" ]

pyramid.wsgi is a standard pyramid/pylons framework app using SQAlchemy for 
DB accesses.
Contains:

from pyramid.paster import get_app, setup_logging
ini_path = 'production.ini'
setup_logging(ini_path)
application = get_app(ini_path, 'main')


docker-compose (extract)
  wsgi:
    build:
      context: ./wsgi
    env_file:
      - ./db/.env # contains common DB environment vars
    environment:
      - MYSQL_DATABASE=CICodeAnalysis
    container_name: wsgi
    restart: always
    links:
      - "db"
    ports:
      - "88:80"
    depends_on:
      - db
    networks:
      - back

.whiskey/pre_build
:
#!/usr/bin/env bash
set -eo pipefail
# required packages to allow pip to install lxml
apt-get update
apt-get install -y libxml2-dev libxslt-dev
rm -r /var/lib/apt/lists/*
pip install -e .

server_args (cited in previous post and result in conf just given in the 
container)


Any more that you need that I have missed?

Dave

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to modwsgi+unsubscr...@googlegroups.com.
To post to this group, send email to modwsgi@googlegroups.com.
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to