Skip to content

Commit

Permalink
remove elastic index creation
Browse files Browse the repository at this point in the history
  • Loading branch information
euanmillar authored and github-actions committed Dec 6, 2024
1 parent f51defd commit 020b2c0
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -368,28 +368,6 @@ fi
DOCKER_STARTED=1
echo "wait-on tcp:3447" && wait-on -l tcp:3447
echo "wait-on http://localhost:9200" && wait-on -l http://localhost:9200
function create_elastic_index {
local body=$1
local index_name=$2

local -i result=1
local output

output=$(curl -s -D- -m15 -w "%{http_code}" -X PUT "http://localhost:9200/$index_name" -H 'Content-Type: application/json' -d "$body")

echo "${output}"

if [[ "${output: -3}" -eq 200 ]]; then
result=0
fi

if ((result)); then
echo -e "\n${output::-3}\n"
fi

return $result
}
create_elastic_index "{\"settings\":{\"number_of_replicas\":0}}" "ocrvs"
echo "wait-on tcp:9200" && wait-on -l tcp:9200
echo "wait-on tcp:27017" && wait-on -l tcp:27017
echo "wait-on tcp:6379" && wait-on -l tcp:6379
Expand Down

0 comments on commit 020b2c0

Please sign in to comment.