Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added persistent Elasticsearch volume #306

Merged
merged 1 commit into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ java/registry/target/registry.jar: $(SOURCES)

test: build
@docker-compose -f docker-compose-v1.yml down
@sudo rm -rf db-data* || echo "no permission to delete"
@sudo rm -rf db-data* es-data* || echo "no permission to delete"
# test with distributed definition manager and native search
@docker-compose -f docker-compose-v1.yml --env-file test_environments/test_with_distributedDefManager_nativeSearch.env up -d db keycloak registry certificate-signer certificate-api redis
@echo "Starting the test" && sh build/wait_for_port.sh 8080
Expand All @@ -46,7 +46,7 @@ test: build
@curl -v http://localhost:8081/health
@cd java/apitest && MODE=async ../mvnw -Pe2e test
@docker-compose -f docker-compose-v1.yml down
@sudo rm -rf db-data-2 || echo "no permission to delete"
@sudo rm -rf db-data-2 es-data-2 || echo "no permission to delete"
# make -C services/identity-service test
# make -C services/credential-schema test
# make -C services/credentials-service test
Expand Down
2 changes: 2 additions & 0 deletions docker-compose-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ version: '2.4'
services:
es:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.13
volumes:
- ./${ES_DIR-es-data}:/usr/share/elasticsearch/data/*
environment:
- discovery.type=single-node
- 'ES_JAVA_OPTS=-Xms512m -Xmx512m'
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ version: '2.4'
services:
es:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.13
volumes:
- ./${ES_DIR-es-data}:/usr/share/elasticsearch/data/*
environment:
- discovery.type=single-node
- 'ES_JAVA_OPTS=-Xms512m -Xmx512m'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ NOTIFICATION_URL=http://notification-ms:8765/notification-service/v1/notificatio
KEYCLOAK_IMPORT_DIR=java/apitest/src/test/resources
KEYCLOAK_SECRET=**********
DB_DIR=db-data-2
ES_DIR=es-data-2
Loading