opensearch-project/OpenSearch

[DEV] Allow developers to have a local/modify opensearch.yml or ENV

オープン

#594 opened on 2021/04/21

 (5 件のコメント) (0 件のリアクション) (1 人の担当者)Java (1,505 件のフォーク)batch import
Build Libraries & InterfacesPriority-Lowenhancementgood first issuehacktoberfest

Repository metrics

Stars
 (8,123 個のスター)
PR merge metrics
 (平均マージ 5d 9h) (30d で 266 merged PRs)

説明

Is your feature request related to a problem? Please describe.

I was trying to figure out how to expose 0.0.0.0 from my EC2 test instance on which I do development. What worked was to run ./gradlew -Dtests.opensearch.http.host=0.0.0.0 run.

Describe the solution you'd like

I'd like to be able to do any (combination) of these:

a) modify distribution/src/config/opensearch.yml or another yml and have it get picked up by ./gradlew run b) use an equivalent of dotenv to permanently override settings, e.g. OPENSEARCH_HTTP_HOST=0.0.0.0 ./gradlew run which would allow one to create .env and run dotenv ./gradlew run c) some other set it and forget it mechanism

Describe alternatives you've considered

Run ./gradlew assemble to build the ZIP for the distribution. Extract the zip and edit config/opensearch.yml. But this is more time consuming.

Additional context

コントリビューターガイド