<commit_before>CommCare HQ docker
==================

Initial setup
-------------
* Install [Docker](http://docs.docker.com/installation)
* Install [Docker Compose](https://docs.docker.com/compose/install/)
* Bootstrap the setup:

    ```
      $ ./dockerhq.sh bootstrap
    ```
    
    This will do the following:
    
    * build all the images (if not already built)
    * run all the service containers
    * migrate the DB and sync the Couch views
    * bootstrap a superuser and domain:
      * username: <EMAIL>
      * password: password
      * domain: demo
    * run the Django dev server

    If all goes according to plan you should be able to log into CommCare: http://localhost:8000 using
    the login details above.<commit_msg>Update Docker docs for Mac<commit_after>CommCare HQ docker
==================

Initial setup
-------------
* Linux
   * Install [Docker](http://docs.docker.com/installation)
   * Install [Docker Compose](https://docs.docker.com/compose/install/)
* OS X
   * Install [Docker Toolbox](https://docs.docker.com/mac/step_one/). Go through the full tutorial, which will create a default machine.
   * If not using the Quick Start terminal, run `eval $(docker-machine env default)` to set up Docker's environment variables.
* Bootstrap the setup:

    ```
      $ ./dockerhq.sh bootstrap
    ```
    
    This will do the following:
    
    * build all the images (if not already built)
    * run all the service containers
    * migrate the DB and sync the Couch views
    * bootstrap a superuser and domain:
      * username: <EMAIL>
      * password: password
      * domain: demo
    * run the Django dev server

    If all goes according to plan you should be able to log into CommCare: http://localhost:8000 using
    the login details above.
    
    On Mac, run `docker-machine ip` to get the VM's IP address, which replaces `localhost` in the URL.
{'fraction_non_alphanumeric': 0.117740232312566, 'fraction_numerical': 0.004223864836325237, 'mean_word_length': 2.8282828282828283, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2798587', 'n_tokens_mistral': 551, 'n_tokens_neox': 505, 'n_words': 209}