Sha256: 7f5b3cbc287ed80c9cba3afcc123a72702f8e626221fa3bca2ae3a12e0fb9bbd

Contents?: true

Size: 1.12 KB

Versions: 3

Compression:

Stored size: 1.12 KB

Contents

#!/usr/bin/env bash
#
# Once called Elasticsearch and Enteprise Search should be up and running
#
script_path=$(dirname $(realpath -s $0))
source $script_path/functions/imports.sh
set -euo pipefail

export RUBY_VERSION=${RUBY_VERSION:-3.1}

echo "--- :telephone_receiver: Pinging Elasticsearch :elasticsearch:"
curl --insecure --fail $external_elasticsearch_url/_cluster/health?pretty

enterprise_search_url="http://localhost:3002"
echo "--- :telephone_receiver: Pinging Enterprise Search :elastic-enterprise-search:"
curl -I --fail $enterprise_search_url

echo "--- :docker: :ruby: Building Docker image"
docker build \
       --file $script_path/Dockerfile \
       --tag elastic/enterprise-search-ruby \
       --build-arg RUBY_VERSION=${RUBY_VERSION} \
       .

echo "--- :docker: :ruby: Running Client Container"
docker run \
       --network ${network_name} \
       --name enterprise-search-ruby \
       --env "ELASTIC_ENTERPRISE_HOST=http://${CONTAINER_NAME}:3002" \
       --env "BUILDKITE=true" \
       --rm \
       --volume `pwd`:/code/enterprise-search-ruby \
       elastic/enterprise-search-ruby \
       rake spec:integration

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
elastic-enterprise-search-8.9.0 .buildkite/run-client.sh
elastic-enterprise-search-8.8.0 .buildkite/run-client.sh
elastic-enterprise-search-8.7.0 .buildkite/run-client.sh