Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Production Containers #290

Closed
chouseknecht opened this issue Oct 5, 2017 · 4 comments
Closed

Production Containers #290

chouseknecht opened this issue Oct 5, 2017 · 4 comments
Assignees
Milestone

Comments

@chouseknecht
Copy link
Contributor

When we execute ansible-container run --production containers should take on a more "production-like" configuration. Specifically for now:

  • Django should run via WYSGI (green unicorn or uwysgi)
  • Requests should proxy through Nginx
  • Gulp should not be running
  • All javascript and frontend bits should be static files served by Nginx
  • Run celery as a separate container

We also talked about splitting Django and Celery into 2 container for both development and production.

@chouseknecht chouseknecht added this to the 2.3 milestone Oct 5, 2017
@chargio
Copy link

chargio commented Oct 6, 2017

👍

@chouseknecht
Copy link
Contributor Author

chouseknecht commented Oct 10, 2017

It's still hard to deploy a production Galaxy environment. I had to stand one up for DJ, and had trouble with the following:

  • Make var file dynamic, so that there is a version from development and one for production. We'll need to remove the reference from container.yml
  • Only load test data if environment is development
  • Enable HTTP redirect within nginx. This would be an optional configuration in the event that an external load balancer does not handle this. For example, the AWS load balancer does not seem to have this option.
  • Make email validation within the social auth pipeline optional.

@chouseknecht
Copy link
Contributor Author

chouseknecht commented Oct 11, 2017

One more thought on this...

We need to have the following:

  • Prebaked django and celery images available on Docker Hub
  • An installer playbook and documentation similar to AWX that deploys the pre-built images

@chouseknecht
Copy link
Contributor Author

This issue was moved to ansible/galaxy#35

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants