Skip to content

Commit

Permalink
Disable index auto-creation by ElasticSearch (#133)
Browse files Browse the repository at this point in the history
Signed-off-by: BOUHOURS Antoine <antoine.bouhours@rte-france.com>
  • Loading branch information
antoinebhs authored Apr 29, 2024
1 parent 111e509 commit 6fc818a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public void postConstruct() {
envMap.put("xpack.security.enabled", Boolean.FALSE.toString());
envMap.put("ingest.geoip.downloader.enabled", Boolean.FALSE.toString());
envMap.put("ES_JAVA_OPTS", "-Xms128m -Xmx128m");
envMap.put("action.auto_create_index", "false");
elasticsearchContainer.start();

System.setProperty("spring.data.elasticsearch.embedded", Boolean.toString(true));
Expand Down

0 comments on commit 6fc818a

Please sign in to comment.