<commit_before>docker-mongodb
==============

### Installation

1. Install [Docker](https://www.docker.com/).

2. Download [automated build](https://registry.hub.docker.com/u/recipediary/mongodb/) from public [Docker Hub Registry](https://registry.hub.docker.com/): `docker pull recipediary/mongodb`


### Usage

#### Run `mongod`
``` bash
docker run -d -p 27017:27017 --name mongodb recipediary/mongodb
```
#### Run `mongod` w/ persistent/shared directory
``` bash
docker run -d \
    -p 27017:27017 \
    -v <db-dir>:/data/db \
    --name mongodb \
    recipediary/mongodb
```
#### Run `mongod` w/ HTTP support
``` bash
docker run -d \
    -p 27017:27017 \
    -p 28017:28017 \
    --name mongodb \
    recipediary/mongodb mongod --rest --httpinterface
```
#### Run `mongod` w/ Smaller default file size
``` bash
docker run -d \
    -p 27017:27017 \
    --name mongodb \
    recipediary/mongodb mongod --smallfiles
```
#### Run `mongo` cli
``` bash
docker run -it --rm \
    --link mongodb:mongodb \
    recipediary/mongodb bash -c 'mongo --host mongodb'
```<commit_msg>specify --name as the first parameter<commit_after>docker-mongodb
==============

### Installation

1. Install [Docker](https://www.docker.com/).

2. Download [automated build](https://registry.hub.docker.com/u/recipediary/mongodb/) from public [Docker Hub Registry](https://registry.hub.docker.com/): `docker pull recipediary/mongodb`


### Usage

#### Run `mongod`
``` bash
docker run -d \
    --name mongodb \
    -p 27017:27017 \
    recipediary/mongodb
```
#### Run `mongod` w/ persistent/shared directory
``` bash
docker run -d \
    --name mongodb \
    -p 27017:27017 \
    -v <db-dir>:/data/db \
    recipediary/mongodb
```
#### Run `mongod` w/ HTTP support
``` bash
docker run -d \
    --name mongodb \
    -p 27017:27017 \
    -p 28017:28017 \
    recipediary/mongodb mongod --rest --httpinterface
```
#### Run `mongod` w/ Smaller default file size
``` bash
docker run -d \
    --name mongodb \
    -p 27017:27017 \
    recipediary/mongodb mongod --smallfiles
```
#### Run `mongo` cli
``` bash
docker run -it --rm \
    --link mongodb:mongodb \
    recipediary/mongodb bash -c 'mongo --host mongodb'
```
{'fraction_non_alphanumeric': 0.1797804208600183, 'fraction_numerical': 0.04757548032936871, 'mean_word_length': 2.891459074733096, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, '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': '1387253', 'n_tokens_mistral': 913, 'n_tokens_neox': 750, 'n_words': 201}