<commit_before># dokku elasticsearch (beta)

Official elasticsearch plugin for dokku. Currently installs elasticsearch 1.7.1.

## requirements

- dokku 0.3.25+
- docker 1.6.x

## installation

```
cd /var/lib/dokku/plugins
git clone https://github.com/dokku/dokku-elasticsearch-plugin.git elasticsearch
dokku plugins-install-dependencies
dokku plugins-install
```

## commands

```
elasticsearch:alias <name> <alias>     Set an alias for the docker link
elasticsearch:clone <name> <new-name>  NOT IMPLEMENTED
elasticsearch:connect <name>           NOT IMPLEMENTED
elasticsearch:create <name>            Create a elasticsearch service
elasticsearch:destroy <name>           Delete the service and stop its container if there are no links left
elasticsearch:export <name>            NOT IMPLEMENTED
elasticsearch:expose <name> <port>     NOT IMPLEMENTED
elasticsearch:import <name> <file>     NOT IMPLEMENTED
elasticsearch:info <name>              Print the connection information
elasticsearch:link <name> <app>        Link the elasticsearch service to the app
elasticsearch:list                     List all elasticsearch services
elasticsearch:logs <name> [-t]         Print the most recent log(s) for this service
elasticsearch:restart <name>           Graceful shutdown and restart of the service container
elasticsearch:unexpose <name> <port>   NOT IMPLEMENTED
elasticsearch:unlink <name> <app>      Unlink the elasticsearch service from the app
```

## usage

```shell
# create a elasticsearch service named lolipop
dokku elasticsearch:create lolipop<commit_msg>Remove -plugin suffix from clone url<commit_after># dokku elasticsearch (beta)

Official elasticsearch plugin for dokku. Currently installs elasticsearch 1.7.1.

## requirements

- dokku 0.3.25+
- docker 1.6.x

## installation

```
cd /var/lib/dokku/plugins
git clone https://github.com/dokku/dokku-elasticsearch.git elasticsearch
dokku plugins-install-dependencies
dokku plugins-install
```

## commands

```
elasticsearch:alias <name> <alias>     Set an alias for the docker link
elasticsearch:clone <name> <new-name>  NOT IMPLEMENTED
elasticsearch:connect <name>           NOT IMPLEMENTED
elasticsearch:create <name>            Create a elasticsearch service
elasticsearch:destroy <name>           Delete the service and stop its container if there are no links left
elasticsearch:export <name>            NOT IMPLEMENTED
elasticsearch:expose <name> <port>     NOT IMPLEMENTED
elasticsearch:import <name> <file>     NOT IMPLEMENTED
elasticsearch:info <name>              Print the connection information
elasticsearch:link <name> <app>        Link the elasticsearch service to the app
elasticsearch:list                     List all elasticsearch services
elasticsearch:logs <name> [-t]         Print the most recent log(s) for this service
elasticsearch:restart <name>           Graceful shutdown and restart of the service container
elasticsearch:unexpose <name> <port>   NOT IMPLEMENTED
elasticsearch:unlink <name> <app>      Unlink the elasticsearch service from the app
```

## usage

```shell
# create a elasticsearch service named lolipop
dokku elasticsearch:create lolipop
{'fraction_non_alphanumeric': 0.07682539682539682, 'fraction_numerical': 0.005714285714285714, 'mean_word_length': 3.9080996884735204, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, 'https://': 2, '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': '4679388', 'n_tokens_mistral': 841, 'n_tokens_neox': 862, 'n_words': 308}