Skip to content

Commit 98c3eaa

Browse files
authored
Merge pull request #143 from dlumbrer/integration-community-6.8.6
[docker] Fix ELASTICSEARCH_URL to accept an array in the compose for the Community version
2 parents aede655 + 7fadf37 commit 98c3eaa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ There are four Docker images of Kibiter, they have the following tags:
2828

2929
There are docker env variables for the secured image (`bitergia/kibiter:secured-v6.8.6-X`) that should be defined:
3030

31-
- `ELASTICSEARCH_URL`: This env variable defines the URL of the ElasticSearch that Kibiter will connect.
31+
- `ELASTICSEARCH_URL`: This env variable defines the URL or URL's of the ElasticSearch that Kibiter will connect. This env variable must be an array of the endpoints, each one must be a string.
3232
- `BASE_PATH`: Enables you to specify a path to mount Kibiter at if you are running behind a proxy.
3333
- `PROJECT_NAME`: The name of the project that will be in the menu top bar and the page title.
3434
- `ELASTICSEARCH_USER`: Username that will use Kibiter to connect to ElasticSearch.

docker/docker_entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fi
1111
if [ "$1" = 'kibana' ]; then
1212
if [ "$ELASTICSEARCH_URL" -o "$ELASTICSEARCH_PORT_9200_TCP" ]; then
1313
: ${ELASTICSEARCH_URL:='http://elasticsearch:9200'}
14-
sed -ri "s!^(\#\s*)?(elasticsearch\.hosts:).*!\2 ['$ELASTICSEARCH_URL']!" /opt/kibana/config/kibana.yml
14+
sed -ri "s!^(\#\s*)?(elasticsearch\.hosts:).*!\2 $ELASTICSEARCH_URL!" /opt/kibana/config/kibana.yml
1515
else
1616
echo >&2 'warning: missing ELASTICSEARCH_PORT_9200_TCP or ELASTICSEARCH_URL'
1717
echo >&2 ' Did you forget to --link some-elasticsearch:elasticsearch'

0 commit comments

Comments
 (0)