From 2b7acc23898f229e2d04fed77e39b904f4afdafd Mon Sep 17 00:00:00 2001 From: cristianpb <18708179+cristianpb@users.noreply.github.com> Date: Sat, 29 Mar 2025 09:54:42 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=8B=20Use=20artillery=20docker=20image?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- performance/Dockerfile | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/performance/Dockerfile b/performance/Dockerfile index cd2bf44..d69f15a 100644 --- a/performance/Dockerfile +++ b/performance/Dockerfile @@ -1,7 +1,7 @@ ############################ # Artillery.io load tester # ############################ -FROM node:14-alpine +FROM artilleryio/artillery:2.0.21 ARG http_proxy ARG https_proxy ARG no_proxy @@ -13,16 +13,5 @@ WORKDIR /artillery VOLUME /artillery/reports/ -# use proxy & private npm registry -RUN if [ ! -z "$http_proxy" ] ; then \ - npm config delete proxy; \ - npm config set proxy $http_proxy; \ - npm config set https-proxy $https_proxy; \ - npm config set no-proxy $no_proxy; \ - fi ; \ - [ -z "$npm_registry" ] || npm config set registry=$npm_registry - -RUN npm install -g artillery@1.6.0-2 ENV PERF_MAX_USERS=40 -ENTRYPOINT [ "artillery" ] CMD ["run -e development", "-o reports/report.json", "scenario.yml"]