Skip to content

Commit 604f1f5

Browse files
committed
Update to v9.0.0
List of changes impacting docker-elk: - [kibana]: Several features now require an encryption key for saved objects. Such key must be set via the configuration option `xpack.encryptedSavedObjects.encryptionKey`. Ref: https://www.elastic.co/guide/en/kibana/8.18/xpack-security-secure-saved-objects.html - [enterprise-search]: Discontinued in 9.x versions. Refs: - https://www.elastic.co/guide/en/enterprise-search/8.18/upgrading-to-9-x.html - https://www.elastic.co/blog/app-search-to-elasticsearch
1 parent c97a67e commit 604f1f5

File tree

21 files changed

+18
-303
lines changed

21 files changed

+18
-303
lines changed

.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ELASTIC_VERSION=8.17.4
1+
ELASTIC_VERSION=9.0.0
22

33
## Passwords for stack users
44
#

.github/workflows/ci.yml

+1-34
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ jobs:
3535
-f extensions/metricbeat/metricbeat-compose.yml
3636
-f extensions/filebeat/filebeat-compose.yml
3737
-f extensions/heartbeat/heartbeat-compose.yml
38-
-f extensions/enterprise-search/enterprise-search-compose.yml
3938
build
4039
4140
########################################################
@@ -58,9 +57,7 @@ jobs:
5857
.env
5958
6059
- name: Generate Kibana encryption keys
61-
run: |
62-
docker container run --rm docker-elk-kibana bin/kibana-encryption-keys generate -q >>kibana/config/kibana.yml
63-
sed -i '/Kibana is currently running with legacy OpenSSL providers enabled/d' kibana/config/kibana.yml
60+
run: docker container run --rm docker-elk-kibana bin/kibana-encryption-keys generate -q >>kibana/config/kibana.yml
6461

6562
- name: Set up users and roles
6663
run: docker compose up setup
@@ -123,33 +120,6 @@ jobs:
123120
docker compose -f docker-compose.yml -f extensions/heartbeat/heartbeat-compose.yml up --remove-orphans -d heartbeat
124121
.github/workflows/scripts/run-tests-heartbeat.sh
125122
126-
#
127-
# Enterprise Search
128-
#
129-
130-
- name: Execute Enterprise Search test suite
131-
run: |
132-
133-
# Set mandatory Elasticsearch settings
134-
135-
sed -i '$ a xpack.security.authc.api_key.enabled: true' elasticsearch/config/elasticsearch.yml
136-
137-
# Restart Elasticsearch for changes to take effect
138-
139-
docker compose restart elasticsearch
140-
141-
# Run Enterprise Search and execute tests
142-
143-
sed -i 's/\(secret_management.encryption_keys:\)/\1 [test-encrypt]/g' extensions/enterprise-search/config/enterprise-search.yml
144-
145-
docker compose -f docker-compose.yml -f extensions/enterprise-search/enterprise-search-compose.yml up --remove-orphans -d enterprise-search
146-
.github/workflows/scripts/run-tests-enterprise-search.sh
147-
148-
# Revert changes to Elasticsearch configuration
149-
150-
sed -i '/xpack.security.authc.api_key.enabled: true/d' elasticsearch/config/elasticsearch.yml
151-
docker compose restart elasticsearch
152-
153123
- name: Collect troubleshooting data
154124
id: debug-data
155125
if: failure()
@@ -163,7 +133,6 @@ jobs:
163133
-f extensions/metricbeat/metricbeat-compose.yml \
164134
-f extensions/filebeat/filebeat-compose.yml \
165135
-f extensions/heartbeat/heartbeat-compose.yml \
166-
-f extensions/enterprise-search/enterprise-search-compose.yml \
167136
ps >"$debug_data_dir"/docker_ps.log
168137
169138
docker compose \
@@ -173,7 +142,6 @@ jobs:
173142
-f extensions/metricbeat/metricbeat-compose.yml \
174143
-f extensions/filebeat/filebeat-compose.yml \
175144
-f extensions/heartbeat/heartbeat-compose.yml \
176-
-f extensions/enterprise-search/enterprise-search-compose.yml \
177145
logs >"$debug_data_dir"/docker_logs.log
178146
179147
echo "path=${debug_data_dir}" >>"$GITHUB_OUTPUT"
@@ -201,5 +169,4 @@ jobs:
201169
-f extensions/metricbeat/metricbeat-compose.yml
202170
-f extensions/filebeat/filebeat-compose.yml
203171
-f extensions/heartbeat/heartbeat-compose.yml
204-
-f extensions/enterprise-search/enterprise-search-compose.yml
205172
down -v

.github/workflows/scripts/run-tests-enterprise-search.sh

-53
This file was deleted.

.github/workflows/update-merge.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- update/main
1010
- update/tls
1111
- update/release-7.x
12-
- update/release-9.x
12+
- update/release-8.x
1313

1414
jobs:
1515

.github/workflows/update.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- main
1616
- tls
1717
- release-7.x
18-
- release-9.x
18+
- release-8.x
1919

2020
steps:
2121
- uses: actions/checkout@v4

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Elastic stack (ELK) on Docker
22

3-
[![Elastic Stack version](https://img.shields.io/badge/Elastic%20Stack-8.17.4-00bfb3?style=flat&logo=elastic-stack)](https://www.elastic.co/blog/category/releases)
4-
[![Build Status](https://github.com/deviantony/docker-elk/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/deviantony/docker-elk/actions/workflows/ci.yml?query=branch%3Amain)
3+
[![Elastic Stack version](https://img.shields.io/badge/Elastic%20Stack-9.0.0-00bfb3?style=flat&logo=elastic-stack)](https://www.elastic.co/blog/category/releases)
4+
[![Build Status](https://github.com/deviantony/docker-elk/actions/workflows/ci.yml/badge.svg?branch=release-9.x)](https://github.com/deviantony/docker-elk/actions/workflows/ci.yml?query=branch%3Arelease-9.x)
55
[![Join the chat](https://badges.gitter.im/Join%20Chat.svg)](https://app.gitter.im/#/room/#deviantony_docker-elk:gitter.im)
66

77
Run the latest version of the [Elastic stack][elk-stack] with Docker and Docker Compose.
@@ -268,7 +268,7 @@ docker compose down -v
268268
### Version selection
269269

270270
This repository stays aligned with the latest version of the Elastic stack. The `main` branch tracks the current major
271-
version (8.x).
271+
version (9.x).
272272

273273
To use a different version of the core Elastic components, simply change the version number inside the [`.env`](.env)
274274
file. If you are upgrading an existing stack, remember to rebuild all container images using the `docker compose build`
@@ -280,6 +280,7 @@ command.
280280

281281
Older major versions are also supported on separate branches:
282282

283+
* [`release-8.x`](https://github.com/deviantony/docker-elk/tree/release-8.x): 8.x series
283284
* [`release-7.x`](https://github.com/deviantony/docker-elk/tree/release-7.x): 7.x series
284285
* [`release-6.x`](https://github.com/deviantony/docker-elk/tree/release-6.x): 6.x series (End-of-life)
285286
* [`release-5.x`](https://github.com/deviantony/docker-elk/tree/release-5.x): 5.x series (End-of-life)

elasticsearch/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG ELASTIC_VERSION
22

33
# https://www.docker.elastic.co/
4-
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION:-8.17.4}
4+
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION:-9.0.0}
55

66
# Add your elasticsearch plugins setup here
77
# Example: RUN elasticsearch-plugin install analysis-icu

extensions/enterprise-search/.dockerignore

-6
This file was deleted.

extensions/enterprise-search/Dockerfile

-4
This file was deleted.

extensions/enterprise-search/README.md

-144
This file was deleted.

extensions/enterprise-search/config/enterprise-search.yml

-28
This file was deleted.

extensions/enterprise-search/enterprise-search-compose.yml

-18
This file was deleted.

extensions/filebeat/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
ARG ELASTIC_VERSION
22

3-
FROM docker.elastic.co/beats/filebeat:${ELASTIC_VERSION:-8.17.4}
3+
FROM docker.elastic.co/beats/filebeat:${ELASTIC_VERSION:-9.0.0}

0 commit comments

Comments
 (0)