<commit_before># Docker container of Cantas

Docker container based on the latest development version of Cantasn.

## Make image

    docker build -t [tag-you-prefer] .

## Accepted environment variables

- `AUTH_DEFAULT`: which authentication strategy is preferred to use. local
  would be the most proper one probably.
- `DEFAULT_USERNAME`: username of default user account used when local
  authentication strategy is enabled. Defaults to cantas.
- `DEFAULT_PASSWORD`: password of default user account used when local
  authentication strategy is enabled. Defaults to cantas.
- `REALM`: realm used for constructing user's email. This is useful when
  Kerberos authentication strategy is enabled.

## Dependencies

Both `redis` and `mongodb` should be running before Cantas container is
launched.

## Run

    docker run  -p 3000:3000 --link redis:redis --link mongo:mongo --rm --env AUTH_DEFAULT=local cantas:devel

This runs Cantas container tagged `cantas:devel` by `local` authentication
strategy is enabled. And anyone is able to login as `cantas:cantas`.

Open your Web browser, then navigate to `http://127.0.0.1:3000/`.<commit_msg>refine example command in README<commit_after># Docker container of Cantas

Docker container based on the latest development version of Cantasn.

## Make image

    docker build -t [tag-you-prefer] .

## Accepted environment variables

- `AUTH_DEFAULT`: which authentication strategy is preferred to use. local
  would be the most proper one probably.
- `DEFAULT_USERNAME`: username of default user account used when local
  authentication strategy is enabled. Defaults to cantas.
- `DEFAULT_PASSWORD`: password of default user account used when local
  authentication strategy is enabled. Defaults to cantas.
- `REALM`: realm used for constructing user's email. This is useful when
  Kerberos authentication strategy is enabled.

## Dependencies

Both `redis` and `mongodb` should be running before Cantas container is
launched.

## Run

    docker run --name cantas-devel -p 3000:3000 \
           --link redis:redis --link mongo:mongo --rm \
           --env AUTH_DEFAULT=local cantas:devel

This runs Cantas container tagged `cantas:devel` by `local` authentication
strategy is enabled. And anyone is able to login as `cantas:cantas`.

Open your Web browser, then navigate to `http://127.0.0.1:3000/`.
{'fraction_non_alphanumeric': 0.07459505541346974, 'fraction_numerical': 0.015345268542199489, 'mean_word_length': 4.069114470842333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2780476', 'n_tokens_mistral': 691, 'n_tokens_neox': 635, 'n_words': 289}