Warning: this should not be used for production deployments.
Second warning: the Dockerfiles need improvement.
Third warning: this documentation is not complete.

/srv/debile is stored in a data-only container: debile-data

debile-data
-----------

This needs a tarball ``master-keys.tar.gz`` containing the PGP keys for the master. 
You can use this simple script:

 contrib/clemux/docker/debile-data $ ./debile-generate-master-pgp-keys


Then you can build the image:
 contrib/clemux/docker/debile-data $ docker build -t clemux/debile-data .

And create the container (no need to run it, as it is a data-only container):
 $ docker create --name debile-data -v /srv/debile clemux/debile-data

debile-master
-------------

This needs ``debile-master_1.3.2_all.deb``, ``python-debile_1.3.2_all.deb`` and ``python-firewoes_0.2+mux_all.deb`` in the same directory as Dockerfile.

You can find ``python-firewoes_0.2+mux_all.deb`` here:
http://www.mux.me/debile/python-firewoes_0.2+mux_all.deb

Or build it from https://github.com/clemux/firewoes, branch
``iterative_uniquify``.

Edit ``debile.yaml``.

Then you can build the image:
 contrib/clemux/docker/debile-master $ docker build -t clemux/debile-master .

If you're using systemd, a unit file is provided: ``debile-master.service``

debile-http
-----------

This should be straightforward. Systemd unit file also provided.

 $ docker build -t clemux/debile-http .

debile-pg
---------

Same here:

 $ docker build -t clemux/debile-pg .

debile-slave
------------

This requires ``debile-slave_1.3.2_all.deb`` and ``python-debile_1.3.2_all.deb``.

Create slave-keys.tar.gz:

 $ ./debile-generate-slave-keys

 $ docker build -t clemux/debile-slave .

A systemd unit file is provided: ``debile-slave.service``.


Add doc for clemux's docker images. (draft)
Add doc for clemux's docker images. (draft)
