Create Dockerfile for Kronos

Docker has 3 kronos services, one for all, one for readonly, one for collector. When docker is run, all three are started. Three ports are mapped. The log directory is mapped to `/var/log/kronos`. Settings file at `/etc/kronos/settings.py` is mapped into the docker.
for it not working, we should figure out why.  it seems weird that you
would have the option for a mapping if you had to have the host:container
be equal.

for /etc/kronos:/etc/kronos---you may run multiple containers with
different settings.py from the same host machine, so you don't want to use
the same directory on the host machine for all three.

On Fri, Dec 12, 2014 at 11:31 AM, Derek Schultz <notifications@github.com>
wrote:
>
> In kronos/docker/Makefile
> <https://github.com/Locu/chronology/pull/334#discussion-diff-21755017>:
>
> > +SHELL := /bin/bash
> > +
> > +ifndef KRONOS_VERSION
> > +$(error Please specify a KRONOS_VERSION, like `KRONOS_VERSION=v0.7.0 make build`)
> > +endif
> > +
> > +generate_dockerfile:
> > +	mkdir -p $(KRONOS_VERSION)
> > +	sed -e "s/__TAG__/$(KRONOS_VERSION)/" Dockerfile.template > $(KRONOS_VERSION)/Dockerfile
> > +	cp supervisord.conf $(KRONOS_VERSION)
> > +build:
> > +	cd $(KRONOS_VERSION) && sudo docker build -t chronology/kronos:$(KRONOS_VERSION) .
> > +build_nocache:
> > +	cd $(KRONOS_VERSION) && sudo docker build --no-cache -t chronology/kronos:$(KRONOS_VERSION) .
> > +run:
> > +	sudo docker run -d -p 8550:8150 -v /etc/kronos:/etc/kronos -v /var/log/kronos:/var/log/kronos chronology/kronos:$(KRONOS_VERSION)
>
> @marcua <https://github.com/marcua> /var/log/kronos:/var/log doesn't work.
>
> Also, I thought we were using 1 docker per instance, so what is the
> problem with /etc/kronos:/etc/kronos?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Locu/chronology/pull/334/files#r21755017>.
>