forked from dokku/dokku-elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config
24 lines (22 loc) · 922 Bytes
/
config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash
export ELASTICSEARCH_IMAGE=${ELASTICSEARCH_IMAGE:="elasticsearch"}
export ELASTICSEARCH_IMAGE_VERSION=${ELASTICSEARCH_IMAGE_VERSION:="2.3.5"}
export ELASTICSEARCH_ROOT=${ELASTICSEARCH_ROOT:="/var/lib/dokku/services/elasticsearch"}
export PLUGIN_COMMAND_PREFIX="elasticsearch"
export PLUGIN_DATA_ROOT=$ELASTICSEARCH_ROOT
export PLUGIN_DATASTORE_PORTS=(9200 9300)
export PLUGIN_DATASTORE_WAIT_PORT=9200
export PLUGIN_DEFAULT_ALIAS="ELASTICSEARCH"
export PLUGIN_ALT_ALIAS="DOKKU_ELASTICSEARCH"
export PLUGIN_IMAGE=$ELASTICSEARCH_IMAGE
export PLUGIN_IMAGE_VERSION=$ELASTICSEARCH_IMAGE_VERSION
export PLUGIN_SCHEME="http"
export PLUGIN_SERVICE="Elasticsearch"
export PLUGIN_VARIABLE="ELASTICSEARCH"
export PLUGIN_BASE_PATH="$PLUGIN_PATH"
if [[ -n $DOKKU_API_VERSION ]]; then
export PLUGIN_BASE_PATH="$PLUGIN_ENABLED_PATH"
fi
if [[ -d "$PLUGIN_DATA_ROOT/*" ]]; then
rm -rf "${PLUGIN_DATA_ROOT:?}/*"
fi