Sign inSign up

mrazavi1/opensearch-seed

By mrazavi1

•Updated over 2 years ago

Creates the OpenSearch index and inserts multiple documents at once by using the bulk API

Image
Developer tools
Databases & storage
0

1.0K

mrazavi1/opensearch-seed repository overview

⁠opensearch-seed

Creates the opensearch index and inserts multiple documents at once by using the bulk API, plus leveraging the wait- for-it pattern to run the commands only after the opensearch cluster is green - useful for local development and E2E CI testing scenarios.

Source code: https://github.com/M-Razavi/opensearch-seed/tree/main⁠

⁠Docker image

The docker image can be found at https://hub.docker.com/repository/docker/mrazavi1/opensearch-seed/⁠

You can use it as follows:

  opensearch-seed:
    container_name: opensearch-seed
    image: mrazavi1/opensearch-seed
    environment:
      - OPENSEARCH_URL=http://opensearch:9200
      - INDEX_NAME=my-index
    volumes:
      - ./my-custom-index-settings.json:/seed/index-settings.json
      - ./my-custom-index-bulk-payload.json:/seed/index-bulk-payload.json

More details at the example⁠ directory.

Tag summary

Content type

Image

Digest

sha256:6a05a99a6…

Size

5.2 MB

Last updated

over 2 years ago

docker pull mrazavi1/opensearch-seed