Skip to content

Commit

Permalink
remove --no-reset-stats
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunmenon95 committed Jul 11, 2024
1 parent 417d605 commit 50fb00f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 23 deletions.
29 changes: 7 additions & 22 deletions locust/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,29 +1,14 @@
FROM python:3.6-alpine
FROM locustio/locust:2.23.1

ARG LOCUST_VERSION="2.31.1"
ENV LOCUST_VERSION $LOCUST_VERSION
LABEL org.opencontainers.image.source=https://github.com/base2Services/build-containers

RUN apk --no-cache add \
--virtual=.build-dep \
build-base \
linux-headers \
zeromq-dev \
libffi-dev \
&& apk --no-cache add \
libzmq \
&& pip install --no-cache-dir \
locustio==${LOCUST_VERSION} \
awscli \
pyzmq \
&& apk del .build-dep \
&& mkdir /locust

COPY docker-entrypoint.sh /
USER root
RUN pip install awscli faker

WORKDIR /locust

EXPOSE 8089 5557 5558
ENTRYPOINT [ "/entrypoint" ]

ENTRYPOINT ["/docker-entrypoint.sh"]
CMD [ "locust" ]

CMD ["locust"]
COPY docker-entrypoint.sh /entrypoint
2 changes: 1 addition & 1 deletion locust/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ LOCUST_MASTER_BIND_PORT=${LOCUST_MASTER_BIND_PORT:-5557}
LOCUST_FILE=${LOCUST_FILE:-locustfile.py}
LOCUST_LOG_LEVEL=${LOCUST_LOG_LEVEL:-INFO}

LOCUST_OPTS="-f ${LOCUST_FILE} --no-reset-stats"
LOCUST_OPTS="-f ${LOCUST_FILE}"

if [ -z ${HOST_URL+x} ] ; then
echo "No value set for (HOST_URL), falling back to host value in the locust class"
Expand Down

0 comments on commit 50fb00f

Please sign in to comment.