-
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
7b96151
commit 417d605
Showing
1 changed file
with
21 additions
and
7 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,15 +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 | ||
|
||
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 | ||
|
||
USER root | ||
RUN pip install awscli faker | ||
COPY docker-entrypoint.sh / | ||
|
||
WORKDIR /locust | ||
|
||
ENTRYPOINT [ "/entrypoint" ] | ||
EXPOSE 8089 5557 5558 | ||
|
||
CMD [ "locust" ] | ||
ENTRYPOINT ["/docker-entrypoint.sh"] | ||
|
||
COPY docker-entrypoint.sh /entrypoint | ||
CMD ["locust"] |