Dockerfile for Jia and some convenience tooling

This Dockerfile expects a settings.py in /etc/jia/settings.py on the host machine.  I'll include some init.d or supervisord tooling to run the docker instance on the host machine once I figure that out.
My vote would be to check the precompute setting.  I don't know of a way to
conditionally run stuff in docker instances, and settings.py seems like the
right place to disable it. If you agree I'll merge this PR.
On Oct 8, 2014 3:23 PM, "Derek Schultz" <notifications@github.com> wrote:

> In jia/docker/0.6.0/supervisord.conf:
>
> > @@ -0,0 +1,8 @@
> > +[supervisord]
> > +nodaemon=true
> > +
> > +[program:jia]
> > +command=python /chronology/jia/runserver.py --config /etc/jia/settings.py
> > +
> > +[program:scheduler]
>
> In settings.py the scheduler can be disabled. What are your thoughts on
>
> [program:scheduler]
> command=python /chronology/jia/runscheduler.py --config /etc/jia/settings.py
> autostart=false
>
> and conditionally executing /usr/bin/supervisorctl start scheduler? The
> simpler solution is to put in a single if jia.config['PRECOMPUTE'] check
> in views.py before making any scheduler calls. Then the scheduler will
> always run but at least it won't be reachable.
>
> I thought that the PRECOMPUTE setting currently only toggles the display
> of the UI control, but after reviewing it just now, I don't think it
> actually does anything at all. [image: :disappointed:] So I need to fix
> that anyway.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Locu/chronology/pull/247/files#r18605983>.
>