<commit_before>Docker for QA
=============
The following describes how to get a pre-built instance of Normandy for
testing. This is not suitable for development, or serving traffic on the
public internet.

Prerequisites
-------------
This guide assumes you have already installed and set up the following:

1. Docker_
2. `Docker Compose`_

.. _Docker: https://docs.docker.com/engine/installation/
.. _Docker Compose: https://docs.docker.com/compose/overview/

Getting the code
----------------
We'll be using Docker Compose to run Normandy and the need services. The
repository ``normandy-compose`` contains the ``docker-compose.yml`` file to
describe a Normandy system.

.. code-block:: shell

  $ git clone https://github.com/mozilla/normandy-compose.git
  $ cd normandy-compose

Starting the server, and initial setup
--------------------------------------

1. Generate keys to use for SSL.

   .. code-block:: shell

     $ ./bin/genkeys.sh

2. Start everything, in the background. This downloads Docker images if needed.
<commit_msg>Feedback<commit_after>Docker for QA
=============
The following describes how to get a pre-built instance of Normandy for
testing. This is not suitable for development, or serving traffic on the
public internet.

Prerequisites
-------------
This guide assumes you have already installed and set up the following:

1. Docker_
2. `Docker Compose`_

.. _Docker: https://docs.docker.com/engine/installation/
.. _Docker Compose: https://docs.docker.com/compose/overview/

Getting the code
----------------
We'll be using Docker Compose to run Normandy and the needed services. The
repository normandy-compose_ contains the ``docker-compose.yml`` file to
describe a Normandy system.

.. _normandy-compose: https://github.com/mozilla/normandy-compose.git

.. code-block:: shell

  $ git clone https://github.com/mozilla/normandy-compose.git
  $ cd normandy-compose

Starting the server, and initial setup
--------------------------------------

1. Generate keys to use for SSL.

   .. code-block:: shell

     $ ./bin/genkeys.sh

2. Start everything, in the background. This downloads Docker images if needed.

{'fraction_non_alphanumeric': 0.15413358243811304, 'fraction_numerical': 0.0037365716954694066, 'mean_word_length': 2.915904936014625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 7, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7345080', 'n_tokens_mistral': 619, 'n_tokens_neox': 579, 'n_words': 230}