Skip to content
Snippets Groups Projects
Commit 3e1911eb authored by Krzysztof Mochocki's avatar Krzysztof Mochocki Committed by Krzysztof Mochocki
Browse files

Add m2u as jmeter dependency in Dockerfile

parent c0d3b416
No related branches found
No related tags found
1 merge request!253Add template for benchmarking
......@@ -3,27 +3,33 @@
FROM alpine as jmeter_dependencies
# install all required dependencies
RUN apk add git bash openjdk8 python3 py3-pip
RUN apk add git bash openjdk8 python3 py3-pip maven
RUN python3 -m pip install --upgrade pip && pip install prettytable requests
# base enviroments
# base environments
ENV WDIR /jmeter
ENV BENCHMARK_DIR ${WDIR}/benchmarks
# set working direcotry in container
# set working directory in container
WORKDIR ${WDIR}
# get required resources from current build dir
ADD . ${BENCHMARK_DIR}
# configure java
ENV JAVA_ARGS -Xms4g -Xmx4g
# configure jmeter
RUN bash ${BENCHMARK_DIR}/setup_jmeter.bash
ENV JAVA_ARGS -Xms4g -Xmx4g
ENV JMETER="${WDIR}/jmeter/apache/bin/jmeter"
# configure file/dir server
RUN git clone https://github.com/simon-budig/woof.git
ENV WOOF "${WDIR}/woof/woof"
# configure M2U
RUN bash ${BENCHMARK_DIR}/setup_m2u.bash
ENV M2U="java -jar ${WDIR}/m2u/target/m2u.jar"
################################################################
# this image contains set of rules to start benchmark tests
FROM jmeter_dependencies AS benchmark_aio
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment