Sha256: ec0b15d0eec2b58152b72307e90cf6ce1bb88b509e535e44aa27277301359daf
Contents?: true
Size: 1.66 KB
Versions: 7
Compression:
Stored size: 1.66 KB
Contents
#!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd $DIR NAME=ArangoDB-$VERSION if [ ! -d "$DIR/$NAME" ]; then # download ArangoDB echo "wget http://www.arangodb.org/repositories/travisCI/$NAME.tar.gz" wget http://www.arangodb.org/repositories/travisCI/$NAME.tar.gz echo "tar zxf $NAME.tar.gz" tar zvxf $NAME.tar.gz mv `find . -type d -name "ArangoDB-*"` $NAME fi ARCH=$(arch) PID=$(echo $PPID) TMP_DIR="/tmp/arangodb.$PID" PID_FILE="/tmp/arangodb.$PID.pid" ARANGODB_DIR="$DIR/$NAME" ARANGOD="${ARANGODB_DIR}/bin/arangod_x86_64" # create database directory mkdir ${TMP_DIR} echo "Starting ArangoDB '${ARANGOD}'" ${ARANGOD} \ --database.directory ${TMP_DIR} \ --configuration none \ --server.endpoint tcp://127.0.0.1:8529 \ --javascript.app-path ${ARANGODB_DIR}/js/apps \ --javascript.startup-directory ${ARANGODB_DIR}/js \ --javascript.modules-path ${ARANGODB_DIR}/js/server/modules:${ARANGODB_DIR}/js/common/modules:${ARANGODB_DIR}/js/node \ --javascript.package-path ${ARANGODB_DIR}/js/npm:${ARANGODB_DIR}/js/common/test-data/modules \ --javascript.action-directory ${ARANGODB_DIR}/js/actions \ --database.maximal-journal-size 1048576 \ --server.disable-authentication ${ARANGODB_DISABLE_AUTHENTIFICATION} \ --javascript.gc-interval 1 & sleep 2 echo "Check for arangod process" process=$(ps auxww | grep "bin/arangod" | grep -v grep) if [ "x$process" == "x" ]; then echo "no 'arangod' process found" echo "ARCH = $ARCH" exit 1 fi echo "Waiting until ArangoDB is ready on port 8529" while [[ -z `curl --basic --user 'root:' -s 'http://127.0.0.1:8529/_api/version' ` ]] ; do echo -n "." sleep 2s done echo "ArangoDB is up"
Version data entries
7 entries across 7 versions & 2 rubygems