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

Fixed error in path

parent d2277782
Branches
Tags
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 ...@@ -2,7 +2,7 @@ FROM opensearchproject/opensearch:2.8.0 as runtime
USER root USER root
RUN yum update -y && yum install -y jq RUN yum install -y jq
USER opensearch USER opensearch
...@@ -10,7 +10,7 @@ WORKDIR /app ...@@ -10,7 +10,7 @@ WORKDIR /app
COPY ./limits.conf /etc/security/limits.conf COPY ./limits.conf /etc/security/limits.conf
COPY ./indices/*.json ./indices COPY ./indices/*.json .
COPY ./create-indices.sh ./create-indices.sh COPY ./create-indices.sh ./create-indices.sh
COPY ./docker-entrypoint.sh ./docker-entrypoint.sh COPY ./docker-entrypoint.sh ./docker-entrypoint.sh
......
...@@ -6,7 +6,7 @@ do ...@@ -6,7 +6,7 @@ do
done done
echo "[create-indices.sh] OpenSearch ready" echo "[create-indices.sh] OpenSearch ready"
for index in "user" "view" "database" "identifier" "concept" "column" "table" "unit"; do 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) ACK=$(echo "$RES" | jq .acknowledged)
if [ $ACK ]; then if [ $ACK ]; then
echo "[create-indices.sh] Created $index index" 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