-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
417d605
commit 50fb00f
Showing
2 changed files
with
8 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters