forked from EduardRosert/locust-wms-load-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (31 loc) · 1.41 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM locustio/locust:0.14.6
# Install Python run-time dependencies.
COPY requirements.txt /
RUN set -ex \
&& pip install -r /requirements.txt
# copy wms load test
COPY locustfile.py /app/wms-load-test/
COPY testdata /app/wms-load-test/testdata
# locust will listen at http://0.0.0.0:8089 by default
EXPOSE 8089/tcp
CMD locust -f /app/wms-load-test/locustfile.py --host=https://example.com/wms
#CMD python /app/wms-load-test/locustfile.py
# METADATA
# Build-time metadata as defined at http://label-schema.org
# --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"`
ARG BUILD_DATE
# --build-arg VCS_REF=`git rev-parse --short HEAD`, e.g. 'c30d602'
ARG VCS_REF
# --build-arg VCS_URL=`git config --get remote.origin.url`, e.g. 'https://github.com/eduardrosert/docker-skinnywms'
ARG VCS_URL
# --build-arg VERSION=`git tag`, e.g. '0.2.1'
ARG VERSION
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="Locust WMS Load Test" \
org.label-schema.description="Requests GetCapabilities document and sends GetMap and GetLegendGraphic requests to random WMS layers using https://locust.io load testing framework" \
org.label-schema.url="https://github.com/EduardRosert/locust-wms-load-test" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url=$VCS_URL \
org.label-schema.vendor="" \
org.label-schema.version=$VERSION \
org.label-schema.schema-version="1.0"