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"]