Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions api/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,5 @@ set -e
# run migrations
poetry run alembic upgrade head

# create admin org and user
poetry run python -m app.cli create-organisation ADMIN
poetry run python -m app.cli create-user admin@admin.test admin 1 1

# start API
poetry run uvicorn app.main:app --host 0.0.0.0 --port 80
4 changes: 4 additions & 0 deletions api/opensearch/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ for file in "${MAPPINGS_DIR}"/*.json; do
echo "Creating index '$INDEX_NAME' using mapping file '$file'..."
curl -s -X PUT "${OPENSEARCH_URL}/${INDEX_NAME}" \
-H "Content-Type: application/json" \
--user admin:${OPENSEARCH_INITIAL_ADMIN_PASSWORD} \
--cacert /usr/share/opensearch/config/root-ca.pem \
-d @"$file"
echo "Index '$INDEX_NAME' created."
fi
Expand All @@ -46,6 +48,8 @@ for file in "${PIPELINES_DIR}"/*.json; do
echo "Creating pipeline '$PIPELINE_NAME' using mapping file '$file'..."
curl -s -X PUT "${OPENSEARCH_URL}/_ingest/pipeline/${PIPELINE_NAME}" \
-H "Content-Type: application/json" \
--user admin:${OPENSEARCH_INITIAL_ADMIN_PASSWORD} \
--cacert /usr/share/opensearch/config/root-ca.pem \
-d @"$file"
echo "Pipeline '$PIPELINE_NAME' created."
fi
Expand Down
Loading
Loading