create basic structure

This commit is contained in:
Paul Brodner
2019-03-05 10:53:37 +02:00
parent 46cfc592e3
commit 562bd419ef
5 changed files with 45 additions and 4 deletions
+14 -4
View File
@@ -1,8 +1,11 @@
include ../Makefile
ALFRESCO_URL?=http://localhost:8081
export ALFRESCO_URL
update:
# this will override existing data on your machine
# only use it if you want to get the latest version from github
# this will override existing files that you have already in this folder
# use it only if you want to get the latest version from github
@wget -O .env https://raw.githubusercontent.com/Alfresco/alfresco-bm-manager/master/server/docker-compose/.env
@wget -O docker-compose-drivers.yml https://raw.githubusercontent.com/Alfresco/alfresco-bm-manager/master/server/docker-compose/docker-compose-drivers.yml
@wget -O docker-compose-drivers.yml https://raw.githubusercontent.com/Alfresco/alfresco-bm-manager/master/server/docker-compose/docker-compose-drivers.yml
@@ -15,8 +18,15 @@ start-manager: ## 1 - start BM Manager
start-drivers: ## 2 - start BM Drivers
$(dc) -f docker-compose-drivers.yml pull && docker-compose -f docker-compose-manager.yml -f docker-compose-drivers.yml up -d
all: start-manager start-drivers ## 0 - start BM Manager and Driver
start-all: start-manager start-drivers ## 3 - start BM Manager and Driver
clean: ## clean BM Manager and Drivers
$(dc) -f docker-compose-manager.yml -f docker-compose-drivers.yml kill && \
$(dc) -f docker-compose-manager.yml -f docker-compose-drivers.yml rm -fv
$(dc) -f docker-compose-manager.yml -f docker-compose-drivers.yml rm -fv
benchmark-prepare: ## 1 - prepare data with users/sites for benchmark
./prepare-users.sh
./prepare-data.sh
benchmark-run: ## 2 - here we will actually execute the RestAPI for Search
./bechmark-search.sh
+5
View File
@@ -0,0 +1,5 @@
# About
Starting BM Server and BM Drivers automatically on your machine
# How to use it ?
TBD
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -ex
echo "Benchmark Search RestAPI"
# add here content of https://git.alfresco.com/search_discovery/BuildScripts/blob/feature/search-1506/qa/benchmark/search-data.sh
# use ALFRESCO_URL for full http+alfresco+port =>http://localhost:8081 (see Makefile)
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -ex
REQ_HOST="localhost:9080"
REQ_TESTS_API="http://$REQ_HOST/alfresco-bm-manager/api/v1/tests"
TEST_NAME="DataTest"
# add here content of https://git.alfresco.com/search_discovery/BuildScripts/blob/feature/search-1506/qa/benchmark/create-data.sh
# use ALFRESCO_URL for full http+alfresco+port =>http://localhost:8081 (see Makefile)
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -ex
REQ_HOST="localhost:9080"
REQ_TESTS_API="http://$REQ_HOST/alfresco-bm-manager/api/v1/tests"
TEST_NAME="SearchTest"
curl -s ${REQ_TESTS_API} -H 'Host: ${REQ_HOST}' -H 'Content-Type: application/json;charset=utf-8' --data '{"name":"'$TEST_NAME'","description":"Users","release":"alfresco-bm-rest-api-3.0.1-SNAPSHOT","schema":"12"}'
# add here content of https://git.alfresco.com/search_discovery/BuildScripts/blob/feature/search-1506/qa/benchmark/create-users.sh
# use ALFRESCO_URL for full http+alfresco+port =>http://localhost:8081 (see Makefile)