Skip to content

Commit 9c12561

Browse files
authored
[libs/go-kibana-rest] Update docker-compose (#674)
1 parent eb077fd commit 9c12561

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed
Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,38 @@
11
version: '2.3'
22
services:
33
elasticsearch:
4-
image: docker.elastic.co/elasticsearch/elasticsearch:8.5.0
4+
image: docker.elastic.co/elasticsearch/elasticsearch:8.14.1
55
environment:
66
cluster.name: test
77
discovery.type: single-node
88
ELASTIC_PASSWORD: changeme
99
xpack.security.enabled: "true"
10+
xpack.security.http.ssl.enabled: false
11+
xpack.license.self_generated.type: trial
1012
ports:
1113
- "9200:9200/tcp"
14+
set-kibana-password:
15+
image: docker.elastic.co/kibana/kibana:8.14.1
16+
restart: on-failure
17+
links:
18+
- elasticsearch
19+
# From https://www.elastic.co/guide/en/elasticsearch/reference/current/run-elasticsearch-locally.html
20+
command: |
21+
curl -u "elastic:changeme" "http://elasticsearch:9200/_security/user/kibana_system/_password" -d '{"password":"changeme"}' -H 'Content-Type: application/json'
22+
depends_on:
23+
elasticsearch:
24+
condition: service_started
1225
kibana:
13-
image: docker.elastic.co/kibana/kibana:8.5.0
26+
image: docker.elastic.co/kibana/kibana:8.14.1
1427
environment:
1528
ELASTICSEARCH_HOSTS: http://es:9200
1629
ELASTICSEARCH_USERNAME: kibana_system
1730
ELASTICSEARCH_PASSWORD: changeme
31+
xpack.license.self_generated.type: trial
1832
links:
1933
- elasticsearch:es
2034
ports:
21-
- "5601:5601/tcp"
35+
- "5601:5601/tcp"
36+
depends_on:
37+
set-kibana-password:
38+
condition: service_completed_successfully

libs/go-kibana-rest/kbapi/api.kibana_spaces_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func (s *KBAPITestSuite) TestKibanaSpaces() {
4242
Objects: []KibanaSpaceObjectParameter{
4343
{
4444
Type: "config",
45-
ID: "8.5.0",
45+
ID: "8.14.1",
4646
},
4747
},
4848
}

0 commit comments

Comments
 (0)