<commit_before>Docker containers with fig
-------------------------

> NOTE! This section is under development

### Requirements

- [Docker](https://www.docker.com) (Linux) or [Boot2docker](http://boot2docker.io) (OS X, Windows)
- [fig](http://www.fig.sh)

### Get started!

[Download](https://github.com/phundament/app/tags) or clone:

    git clone https://github.com/phundament/app.git
    cd app

#### Initialize

Copy fig and Dotenv config to project root:

    cp ./platforms/fig/fig.yml .
    cp ./platforms/fig/.env .

You may edit the `.env` file to update environment parameters.

> Note: Entries in `fig.yml` are **not overwritten** by `.env`.

To initialize your application run the following commands once:

> Note: If you are developing on OS X or Windows, make sure your host-vm is running in VirtualBox Manager or with `boot2docker start`.

    fig run backend composer create-project --prefer-dist
    fig run backend ./yii app/setup --interactive=0

They will make the `vendor` folder available in your project directory on your host machine.
And sets up the database, along with an admin user.

> You can replace the [Phundament 4 Docker image](https://github.com/phundament/docker) with your custom base container.


#### Run

    fig up -d

You should now be able to access the container under `http://docker.local:40080` and `http://docker.local:40081`

> On Linux `docker.local` is usually equal to `localhost`, on OS X the command `echo $DOCKER_HOST` should print the IP of your host VM.

<commit_msg>update fig.md, notice for env variables<commit_after>Docker containers with fig
-------------------------

> NOTE! This section is under development

### Requirements

- [Docker](https://www.docker.com) (Linux) or [Boot2docker](http://boot2docker.io) (OS X, Windows)
- [fig](http://www.fig.sh)

### Get started!

[Download](https://github.com/phundament/app/tags) or clone:

    git clone https://github.com/phundament/app.git
    cd app

#### Initialize

Copy fig and Dotenv config to project root:

    cp ./platforms/fig/fig.yml .
    cp ./platforms/fig/.env .

You may edit the `.env` file to update environment parameters.

> Note: Entries in `.env` will be **overwritten** by `fig.yml`.

To initialize your application run the following commands once:

> Note: If you are developing on OS X or Windows, make sure your host-vm is running in VirtualBox Manager or with `boot2docker start`.

    fig run backend composer create-project --prefer-dist
    fig run backend ./yii app/setup --interactive=0

They will make the `vendor` folder available in your project directory on your host machine.
And sets up the database, along with an admin user.

> You can replace the [Phundament 4 Docker image](https://github.com/phundament/docker) with your custom base container.


#### Run

    fig up -d

You should now be able to access the container under `http://docker.local:40080` and `http://docker.local:40081`

> On Linux `docker.local` is usually equal to `localhost`, on OS X the command `echo $DOCKER_HOST` should print the IP of your host VM.


{'fraction_non_alphanumeric': 0.12288686605981794, 'fraction_numerical': 0.00975292587776333, 'mean_word_length': 3.4529667149059335, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 8, 'lorem ipsum': 0, 'www.': 4, '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': '2587386', 'n_tokens_mistral': 937, 'n_tokens_neox': 883, 'n_words': 371}