Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 911 Bytes

File metadata and controls

29 lines (19 loc) · 911 Bytes

ElasticSearch container scripts

Scripts to run and interact with a local containerised ElasticSearch instance.

Intended for local dev and not for production environments!

Uses a local data volume to store the data.

See .env for details of the set up.

Prerequisites

General workflow

Note: make sure you run scripts from the root of your Rails app.

  • Create the container for the first time
    • bin/elasticsearch/create
  • Stop the container when you don't need it
    • bin/elasticsearch/stop
  • Start the container when you do need it again
    • bin/elasticsearch/start
  • Destroy the container if you want to recreate it or just don't need it anymore (note: the local data volume will NOT be deleted)
    • bin/elasticsearch/destroy

Run curl http://127.0.0.1:9200/_cat/health to check status.