forked from opensearch-project/OpenSearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ground work to start up the docker image in the build (#37754)
This change adds a docker compose configuration that's used with the `elasticsearch.test.fixtures` plugin to start up the image and check that the TCP ports are up. We can build on this to add other checks for culster health, run REST tests, etc. We can add multiple containers and configurations to the compose file (e.x. test different env vars) and form clusters.
- Loading branch information
Showing
5 changed files
with
85 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,5 +44,4 @@ public void useFixture(String path) { | |
fixtures.add(fixtureProject); | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Only used for testing the docker images | ||
version: '3' | ||
services: | ||
elasticsearch-default: | ||
build: | ||
context: ./build/docker | ||
dockerfile: Dockerfile | ||
environment: | ||
- cluster.name=elasticsearch-default | ||
- discovery.type=single-node | ||
ports: | ||
- "9200" | ||
elasticsearch-oss: | ||
build: | ||
context: ./build/oss-docker | ||
dockerfile: Dockerfile | ||
environment: | ||
- cluster.name=elasticsearch-oss | ||
- discovery.type=single-node | ||
ports: | ||
- "9200" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
apply plugin: 'elasticsearch.build' | ||
apply plugin: 'elasticsearch.test.fixtures' | ||
|
||
unitTest.enabled = false |