Skip to content
Snippets Groups Projects
Unverified Commit 6189e4d2 authored by Martin Weise's avatar Martin Weise
Browse files

Fixed error in path

parent d2277782
No related branches found
No related tags found
4 merge requests!231CI: Remove build for log-service,!228Better error message handling in the frontend,!223Release of version 1.4.0,!192Fixed the index generation on startup
......@@ -2,7 +2,7 @@ FROM opensearchproject/opensearch:2.8.0 as runtime
USER root
RUN yum update -y && yum install -y jq
RUN yum install -y jq
USER opensearch
......@@ -10,7 +10,7 @@ WORKDIR /app
COPY ./limits.conf /etc/security/limits.conf
COPY ./indices/*.json ./indices
COPY ./indices/*.json .
COPY ./create-indices.sh ./create-indices.sh
COPY ./docker-entrypoint.sh ./docker-entrypoint.sh
......
......@@ -6,7 +6,7 @@ do
done
echo "[create-indices.sh] OpenSearch ready"
for index in "user" "view" "database" "identifier" "concept" "column" "table" "unit"; do
RES=$(curl -sSL -X PUT "127.0.0.1:9200/$index" -H "Content-Type: application/json" --data "@indices/$index.json")
RES=$(curl -sSL -X PUT "127.0.0.1:9200/$index" -H "Content-Type: application/json" --data "@$index.json")
ACK=$(echo "$RES" | jq .acknowledged)
if [ $ACK ]; then
echo "[create-indices.sh] Created $index index"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment