mirror of
https://codeberg.org/scip/esctl.git
synced 2026-08-24 10:54:18 +02:00
47 lines
917 B
Makefile
47 lines
917 B
Makefile
|
|
.PHONY: test clean cluster docs search up down delete
|
||
|
|
|
||
|
|
# docker stuff
|
||
|
|
up:
|
||
|
|
@echo "booting up docker containers"
|
||
|
|
docker compose up -d --remove-orphans
|
||
|
|
|
||
|
|
waitup:
|
||
|
|
@echo "wait til es cluster is up and running"
|
||
|
|
mosscap msc-actions.yaml msc-docker.yaml -n -t 300
|
||
|
|
|
||
|
|
down:
|
||
|
|
@echo "shutting down docker containers"
|
||
|
|
docker compose down
|
||
|
|
|
||
|
|
delete:
|
||
|
|
@echo "delete docker volumes"
|
||
|
|
docker volume rm t_certs t_esdata01 t_esdata02 t_esdata03
|
||
|
|
|
||
|
|
clean-docker: down delete
|
||
|
|
|
||
|
|
|
||
|
|
# mosscap esctl stuff
|
||
|
|
test: up waitup cluster docs wait search
|
||
|
|
|
||
|
|
cluster:
|
||
|
|
@echo "setting up elastisearch cluster"
|
||
|
|
mosscap msc-actions.yaml msc-cluster.yaml -n
|
||
|
|
|
||
|
|
docs:
|
||
|
|
@echo "put some docs"
|
||
|
|
mosscap msc-actions.yaml msc-docs.yaml -n -c 1000 -p 100
|
||
|
|
|
||
|
|
wait:
|
||
|
|
sleep 10
|
||
|
|
|
||
|
|
search:
|
||
|
|
@echo "make some searches"
|
||
|
|
mosscap msc-actions.yaml msc-search.yaml -n -t 60
|
||
|
|
|
||
|
|
clean:
|
||
|
|
@echo "cleaning up cluster"
|
||
|
|
mosscap msc-actions.yaml msc-clean.yaml -n
|
||
|
|
rm -f *.state debug.log
|
||
|
|
|
||
|
|
|