<commit_before>## Docker

### Build

    mvn -Pdocker

### Pushing

Pushing with default settings:

    mvn -Pdocker-push

Pushing to a specific docker registry:

    mvn -Pdocker-push -Ddocker.push.registry=registry.hub.docker.com
    
Pushing to a specific docker registry under a specific account:

    mvn -Pdocker-push -Ddocker.push.registry=registry.hub.docker.com -Ddocker.account=eclipse

### Run

    docker run -td --name kapua-sql -p 8181:8181 -p 3306:3306 kapua/kapua-sql
    docker run -td --name kapua-broker --link kapua-sql:db -p 1883:1883 kapua/kapua-broker
    docker run -td --name kapua-console --link kapua-sql:db -p 8080:8080 kapua/kapua-console
    docker run -td --name kapua-api --link kapua-sql:db -p 8081:8080 kapua/kapua-api

### Access<commit_msg>A bit more documentation, tell about '-nsu'<commit_after>## Docker

The section describes how Eclipse Kapua docker images can be used.

### Build

    mvn -Pdocker

If you want to speed up the build process you can ask Maven to ignore `-SNAPSHOT` updates
force it to use only locally present artifacts with the argument `-nsu`:

    mvn -Pdocker -nsu

### Pushing

Pushing with default settings:

    mvn -Pdocker-push

Pushing to a specific docker registry:

    mvn -Pdocker-push -Ddocker.push.registry=registry.hub.docker.com

Pushing to a specific docker registry under a specific account:

    mvn -Pdocker-push -Ddocker.push.registry=registry.hub.docker.com -Ddocker.account=eclipse

### Run

    docker run -td --name kapua-sql -p 8181:8181 -p 3306:3306 kapua/kapua-sql
    docker run -td --name kapua-broker --link kapua-sql:db -p 1883:1883 kapua/kapua-broker
    docker run -td --name kapua-console --link kapua-sql:db -p 8080:8080 kapua/kapua-console
    docker run -td --name kapua-api --link kapua-sql:db -p 8081:8080 kapua/kapua-api

### Access
{'fraction_non_alphanumeric': 0.10583742498636116, 'fraction_numerical': 0.0436442989634479, 'mean_word_length': 3.235565819861432, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '6155728', 'n_tokens_mistral': 721, 'n_tokens_neox': 610, 'n_words': 202}