Permalink
Switch branches/tags
Nothing to show
Commits on Apr 15, 2016
Commits on Apr 13, 2016
  1. k8s image listens on port 8080

    jonathansick committed Apr 13, 2016
    Intention here is that in production on Kubernetes we will have another
    service (like a Ingress or a nginx SSL proxy) that listens on ports
    80/443 and sends traffic to this container over port 8080.
Commits on Apr 8, 2016
  1. Add k8s/ for sqrelsst/nginx-python:k8s image

    jonathansick committed Apr 8, 2016
    This image is intended to be used in a Kubernetes pod. It configures
    nginx to communicate to a uWSGI server on localhost, 127.0.0.1 port
    3031.
  2. Tag original image setup as 'compose'

    jonathansick committed Apr 8, 2016
    Having nginx talk to a uwsgi host is something we do on docker-compose,
    but not on Kubernetes where the network host is shared by all containers
    on the same pod.
Commits on Apr 7, 2016
  1. Rename image to lsstsqre/nginx-python

    jonathansick committed Apr 7, 2016
    No need to put -docker in an image's name on Docker Hub :)
Commits on Apr 5, 2016
  1. Create the Dockerfile based on python:3.5.1

    jonathansick committed Apr 4, 2016
    This docker file is intentionally built on the Python 3.5.1 official
    container to reduce the overall size of a nginx+uwsgi+Flask app
    deployment. The installation of nginx is adapted from nginx's official
    container, e.g.
    
    https://github.com/nginxinc/docker-nginx/blob/f48d943038eaafd1f69cb14d86db95b3044bd4d8/mainline/jessie/Dockerfile
    
    We also take hints from https://github.com/tiangolo/uwsgi-nginx-docker
    on how to install the nginx configuration.
  2. Add nginx configuration

    jonathansick committed Apr 4, 2016
    This nginx configuration talks acts as a reverse proxy to a uWSGI
    server. Incoming traffic on port 80 (because we intend to terminate TLS
    before this point), and traffic is forwarded to uWSGI on port 3031.
    
    This
    configuration is somewhat specialized for docker-compose since the uWSGI
    container's hostname matches its service name (i.e., uwsgi).
    
    For Kubernetes the hostname would be localhost since all containers in a
    pod share the same network namespace.
    
    This configuration is installed by the Dockerfile into the container. It
    tells nginx to setup a TCP-based socket to talk to a uWSGI server (that
    lives in another container).
Commits on Apr 4, 2016
  1. Initial commit

    jonathansick committed Apr 4, 2016