feat: generalize siege task
This commit is contained in:
parent
6f61073d1f
commit
4d1ca1787c
8
Makefile
8
Makefile
|
@ -16,6 +16,9 @@ GOTEST_ARGS ?= -short
|
||||||
|
|
||||||
OPENWRT_DEVICE ?= 192.168.1.1
|
OPENWRT_DEVICE ?= 192.168.1.1
|
||||||
|
|
||||||
|
SIEGE_URLS_FILE ?= misc/siege/urls.txt
|
||||||
|
SIEGE_CONCURRENCY ?= 100
|
||||||
|
|
||||||
watch: tools/modd/bin/modd deps ## Watching updated files - live reload
|
watch: tools/modd/bin/modd deps ## Watching updated files - live reload
|
||||||
( set -o allexport && source .env && set +o allexport && tools/modd/bin/modd )
|
( set -o allexport && source .env && set +o allexport && tools/modd/bin/modd )
|
||||||
|
|
||||||
|
@ -105,7 +108,10 @@ grafterm: tools/grafterm/bin/grafterm
|
||||||
tools/grafterm/bin/grafterm -c ./misc/grafterm/dashboard.json -v job=bouncer-proxy -r 5s
|
tools/grafterm/bin/grafterm -c ./misc/grafterm/dashboard.json -v job=bouncer-proxy -r 5s
|
||||||
|
|
||||||
siege:
|
siege:
|
||||||
siege -i -c 100 -f ./misc/siege/urls.txt
|
$(eval TMP := $(shell mktemp))
|
||||||
|
cat $(SIEGE_URLS_FILE) | envsubst > $(TMP)
|
||||||
|
siege -i -b -c $(SIEGE_CONCURRENCY) -f $(TMP)
|
||||||
|
rm -rf $(TMP)
|
||||||
|
|
||||||
tools/gitea-release/bin/gitea-release.sh:
|
tools/gitea-release/bin/gitea-release.sh:
|
||||||
mkdir -p tools/gitea-release/bin
|
mkdir -p tools/gitea-release/bin
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
http://localhost:8080/blog/
|
${BASE_URL}/blog/
|
||||||
http://localhost:8080/services/
|
${BASE_URL}/services/
|
||||||
http://localhost:8080/
|
${BASE_URL}
|
||||||
http://localhost:8080/recrutement/
|
${BASE_URL}/recrutement/
|
||||||
http://localhost:8080/faq/
|
${BASE_URL}/faq/
|
||||||
http://localhost:8080/societe/histoire/
|
${BASE_URL}/societe/histoire/
|
Loading…
Reference in New Issue