Setup "elasticsearch-local" which runs an Elasticsearch instance usable by other applications.

Maven Dependency

<dependency>
  <groupId>io.yupiik.alveoli</groupId>
  <artifactId>elasticsearch-local</artifactId>
  <version>1.0.27-SNAPSHOT</version>
</dependency>

Default Configuration

discovery.type

{{elasticsearch-local.discoveryType:-single-node}}

cluster.name

{{elasticsearch-local.clusterName:-elasticsearch-local}}

ES_JAVA_OPTS

{{elasticsearch-local.javaOpts:--Dbundlebee=true}}

Ports

  • Name: elasticsearch

    • Port: 9200

    • Target Port: 9200

Sample Usage

{
  "alveoli": [
    {
      "//": "My alveolus.",
      "name": "com.company:my-app:1.0.0",
      "descriptors": [],
      "dependencies": [
        {
          "name": "io.yupiik.alveoli:elasticsearch-local:1.0.27-SNAPSHOT",
          "location": "io.yupiik.alveoli:elasticsearch-local:1.0.27-SNAPSHOT",
        }
      ],
      "patches": [{
        "descriptorName": "io.yupiik.alveoli:elasticsearch-local:1.0.27-SNAPSHOT",
        "interpolate": true
      }]
    }
  ]
}

Configuration

elasticsearch-local.clusterName

The Elasticsearch cluster name. Default value: elasticsearch-local.

elasticsearch-local.discoveryType

The discovery to use, default is for a single node so if you patch the descriptors to make it a cluster, ensure to tune it. Default value: single-node.

elasticsearch-local.image

The elasticsearch image to use. Default value: elasticsearch:7.10.1.

elasticsearch-local.javaOpts

The ES_JAVA_OPTS value. Default value: -Dbundlebee=true.

elasticsearch-local.mountPath

Where to store Elasticsearch data on the host. Default value: /data/elasticsearch-local.