Skip to content

Commit

Permalink
Update Dockerfile for python3
Browse files Browse the repository at this point in the history
  • Loading branch information
coltrey authored May 29, 2023
1 parent 8873bc1 commit 2fca72b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM blazemeter/taurus

ADD test.jmx /tmp/test.jmx
RUN sed -ibkp -e 's/^.*bintray.*$//g' /etc/apt/sources.list ; cat /etc/apt/sources.list
RUN apt-get update && apt-get -y install python
RUN apt-get update && apt-get -y install python3
RUN curl https://jmeter-plugins.org/repo/ | python -c 'import json; import sys; sys.stdout.write(",".join([x["id"] for x in json.loads(sys.stdin.read()) if "id" in x.keys() and not x["id"].startswith("ulp")]))' > plugins.lst && cat plugins.lst
RUN bzt -o modules.jmeter.path=/jmeter /tmp/test.jmx -o modules.jmeter.plugins=[$(cat plugins.lst)] || true
RUN ls /jmeter/lib/ext/jmeter-plugins-casutg-*.jar && rm -rf /tmp/*
Expand Down

0 comments on commit 2fca72b

Please sign in to comment.