-
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
95e04df
commit e492213
Showing
1 changed file
with
8 additions
and
20 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,28 +1,16 @@ | ||
FROM python:3.6-alpine | ||
FROM locustio/locust:2.23.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 \ | ||
locust \ | ||
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 ["/docker-entrypoint.sh"] | ||
ENTRYPOINT [ "/entrypoint" ] | ||
|
||
CMD [ "locust" ] | ||
|
||
CMD ["locust"] | ||
COPY docker-entrypoint.sh /entrypoint |