mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
Revert "SEARCH-2318: Add Travis configuration to Insight Engine" (#872)
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eux
|
||||
|
||||
# Start Alfresco and Solr.
|
||||
|
||||
# The location for the docker-compose files.
|
||||
DOCKER_RESOURCE_FOLDER=$1
|
||||
# The search docker image.
|
||||
SEARCH_IMAGE=$2
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
export DOCKER_CLIENT_TIMEOUT=120
|
||||
export COMPOSE_HTTP_TIMEOUT=120
|
||||
|
||||
# Pull the image, to ensure we're not using a stale image from the build agent.
|
||||
docker pull "$SEARCH_IMAGE"
|
||||
|
||||
# Build the images and call docker-compose.
|
||||
cd "$DOCKER_RESOURCE_FOLDER"
|
||||
docker-compose up -d --build --force-recreate
|
||||
|
||||
$SCRIPT_DIR/wait-service-to-start.sh
|
||||
@@ -1,28 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e # exit if commands fails
|
||||
set -x # trace what gets exe
|
||||
|
||||
WAIT_INTERVAL=1
|
||||
COUNTER=0
|
||||
TIMEOUT=2000
|
||||
t0=`date +%s`
|
||||
|
||||
ENDPOINT="${1:-http://localhost:8081/alfresco}"
|
||||
|
||||
echo "Waiting for Service to start using endpoint: ${ENDPOINT}"
|
||||
|
||||
until $(curl --output /dev/null --silent --head --fail ${ENDPOINT}) || [ "$COUNTER" -eq "$TIMEOUT" ]; do
|
||||
printf '.'
|
||||
sleep $WAIT_INTERVAL
|
||||
COUNTER=$(($COUNTER+$WAIT_INTERVAL))
|
||||
done
|
||||
|
||||
if (("$COUNTER" < "$TIMEOUT")) ; then
|
||||
t1=`date +%s`
|
||||
delta=$((($t1 - $t0)/60))
|
||||
echo "Service ${ENDPOINT} Started in $delta minutes"
|
||||
else
|
||||
echo "Service ${ENDPOINT} could not start in time."
|
||||
echo "Waited $COUNTER seconds"
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user