#!/usr/bin/env bash # Runs a docker container to create an opensearch cluster, # fills the ES cluster with data, # processes all the files in the 'movies' index in the cluster using the `unstructured` library. # Structured outputs are stored in opensearch-ingest-output # shellcheck source=/dev/null sh scripts/opensearch-test-helpers/source_connector/create-fill-and-check-opensearch.sh wait # Kill the container so the script can be repeatedly run using the same ports trap 'echo "Stopping opensearch Docker container"; docker stop os-test' EXIT PYTHONPATH=. ./unstructured/ingest/main.py \ opensearch \ --hosts "" \ --index-name "" \ --username "" \ --password "" \ --fields "" \ --num-processes "" \ --ca-certs "" \ --client-cert "" \ --client-key "" \ --use-ssl \ --verify-certs \ --ssl-show-warn