Skip to content

Commit

Permalink
try old dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunmenon95 committed Jul 12, 2024
1 parent 57f9ef7 commit 5e1a400
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions locust-distributed/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,29 @@
FROM locustio/locust:2.23.1
FROM python:3.6-alpine

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

USER root
RUN pip install awscli faker
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 /

WORKDIR /locust

EXPOSE 8089 5557 5558

ENTRYPOINT [ "/entrypoint" ]

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

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

0 comments on commit 5e1a400

Please sign in to comment.