Skip to content

Commit

Permalink
Merge pull request #1188 from shreddedbacon/elastic-config
Browse files Browse the repository at this point in the history
Even more configuration for elasticsearch
  • Loading branch information
Schnitzel authored Aug 16, 2019
2 parents 3baa468 + 383d078 commit fca014e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion images/elasticsearch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ ENV ES_JAVA_OPTS="-Xms200m -Xmx200m" \
NODE_INGEST=true \
NODE_ML=true \
XPACK_ML_ENABLED=true \
CLUSTER_REMOTE_CONNECT=true
CLUSTER_REMOTE_CONNECT=true \
EXTRA_OPTS=""


VOLUME [ "/usr/share/elasticsearch/data" ]
Expand Down
6 changes: 5 additions & 1 deletion images/elasticsearch/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

set -eo pipefail

if [ ! -z "$EXTRA_OPTS" ]; then
echo -e "${EXTRA_OPTS}" >> /usr/share/elasticsearch/config/elasticsearch.yml
fi

if [ -z "$POD_NAMESPACE" ]; then
# Single container runs in docker
echo "POD_NAMESPACE not set, spin up single node"
Expand All @@ -13,4 +17,4 @@ else
echo "Using service name: ${K8S_SVC_NAME}"
# copy the pristine version to the one that can be edited
/usr/bin/peer-finder -on-start="/lagoon/configure-es.sh" -service=${K8S_SVC_NAME}
fi
fi

0 comments on commit fca014e

Please sign in to comment.