Skip to content

Commit

Permalink
Upgrade Elasticsearch from 8.6.1 to 8.17.0
Browse files Browse the repository at this point in the history
- Added UseSVE to docker-compose.yml to work around this issue with the Elasticsearch Docker container
  • Loading branch information
loren committed Jan 14, 2025
1 parent a784070 commit 4f3c8a8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ELASTICSEARCH_VERIFY_CERTS=False
ELASTICSEARCH_TIMEOUT=600

# Version of Elastic products
STACK_VERSION=8.6.1
STACK_VERSION=8.17.0

# Set the cluster name
CLUSTER_NAME=docker-cluster
Expand Down
2 changes: 1 addition & 1 deletion .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ ELASTICSEARCH_SCHEME=http
ELASTICSEARCH_TIMEOUT=600

# Version of Elastic products
STACK_VERSION=8.6.1
STACK_VERSION=8.17.0
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,9 @@ and [`docker-compose`](https://docs.docker.com/compose/install/) installed.

```shell
% docker-compose --version
Docker Compose version v2.15.1
Docker Compose version v2.31.0
% poetry --version
Poetry (version 1.4.0)
Poetry (version 1.8.4)
```

Clone the repo:
Expand All @@ -334,6 +334,7 @@ docker-compose --env-file=.env.test up -d
Run tests (with -s option to allow more verbose output):

```shell
cp .env.test .env # copy the test environment variables
poetry run pytest -s
```

Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.9'

services:
postgres:
image: postgres:15
Expand All @@ -22,6 +20,8 @@ services:
- xpack.security.enabled=false
- discovery.type=single-node
- action.auto_create_index=false
- ES_JAVA_OPTS=-XX:UseSVE=0
- CLI_JAVA_OPTS=-XX:UseSVE=0
ulimits:
memlock:
soft: -1
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ sinker = "sinker.__main__:main"

[tool.poetry.dependencies]
python = "^3.9"
elasticsearch = "^8.6.1"
elasticsearch = "^8.17.0"
environs = ">=9.5,<12.0"
psycopg = "^3.1.8"
pytest-mock = "^3.10.0"
Expand Down

0 comments on commit 4f3c8a8

Please sign in to comment.