Skip to content

Commit 3f7d4ee

Browse files
committed
refactor: simplify Docker configuration for local development
- Consolidate docker-compose files into single simplified configuration - Use standard Elasticsearch ports (9200/9300) instead of custom ports - Remove multi-version local testing scripts (handled by CI matrix) - Clean up package.json scripts removing unused docker:multi and test:es* commands - CI multi-version testing remains unchanged and functional
1 parent e2f25c3 commit 3f7d4ee

File tree

4 files changed

+4
-165
lines changed

4 files changed

+4
-165
lines changed

docker-compose-multi.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ services:
1010
- xpack.security.enrollment.enabled=false
1111
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
1212
ports:
13-
- "9201:9200"
14-
- "9301:9300"
13+
- "9200:9200"
14+
- "9300:9300"
1515
healthcheck:
1616
test: ["CMD-SHELL", "curl -f http://localhost:9200/_cluster/health || exit 1"]
1717
interval: 30s
@@ -23,4 +23,4 @@ services:
2323

2424
volumes:
2525
elasticsearch_data:
26-
driver: local
26+
driver: local

package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,7 @@
4646
"docker:logs": "docker-compose logs -f elasticsearch",
4747
"docker:test": "npm run docker:up && npm run docker:wait && npm run test:integration && npm run docker:down",
4848
"docker:wait": "node scripts/wait-for-elasticsearch.js",
49-
"test:integration": "ES_VERSION=8.15.0 ELASTICSEARCH_URL=http://localhost:9201 npm run test",
50-
"test:es8": "ES_VERSION=8.15.0 ELASTICSEARCH_URL=http://localhost:9201 npm run mocha",
51-
"test:es9": "ES_VERSION=9.0.0 ELASTICSEARCH_URL=http://localhost:9202 npm run mocha",
52-
"test:multi": "./test-es-versions.sh",
53-
"test:all-versions": "npm run lint && npm run build && npm run test:multi"
49+
"test:integration": "ES_VERSION=8.15.0 ELASTICSEARCH_URL=http://localhost:9200 npm run test"
5450
},
5551
"directories": {
5652
"lib": "lib"

test-es-versions.sh

Lines changed: 0 additions & 99 deletions
This file was deleted.

0 commit comments

Comments
 (0)