Skip to content

Commit 1cde976

Browse files
authored
Merge pull request #96 from gold-kou/update_gatling
Upgrade gatling version to 3.9.5
2 parents 7d28b3f + da6bc34 commit 1cde976

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gatling/Dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,20 @@
22
# https://github.com/denvazh/gatling/tree/master/3.2.1
33
#
44
# Gatling is a highly capable load testing tool.
5-
#
6-
# Documentation: https://gatling.io/docs/3.2/
7-
# Cheat sheet: https://gatling.io/docs/3.2/cheat-sheet/
85

9-
FROM openjdk:8-jdk-alpine
6+
FROM openjdk:17-jdk-slim-bullseye
107

118
# working directory for gatling
129
WORKDIR /opt
1310

1411
# gating version
15-
ENV GATLING_VERSION 3.2.1
12+
ENV GATLING_VERSION 3.9.5
1613

1714
# create directory for gatling install
1815
RUN mkdir -p gatling
1916

2017
# install gatling
21-
RUN apk add --update wget bash libc6-compat && \
18+
RUN apt-get update && apt-get upgrade -y && apt-get install -y wget unzip && \
2219
mkdir -p /tmp/downloads && \
2320
wget -q -O /tmp/downloads/gatling-$GATLING_VERSION.zip \
2421
https://repo1.maven.org/maven2/io/gatling/highcharts/gatling-charts-highcharts-bundle/$GATLING_VERSION/gatling-charts-highcharts-bundle-$GATLING_VERSION-bundle.zip && \

pkg/commands/commands.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ fi
6666
if [ ! -d ${RESULTS_DIR_PATH} ]; then
6767
mkdir -p ${RESULTS_DIR_PATH}
6868
fi
69-
gatling.sh -sf ${SIMULATIONS_DIR_PATH} -s %s -rsf ${RESOURCES_DIR_PATH} -rf ${RESULTS_DIR_PATH} %s
69+
gatling.sh -sf ${SIMULATIONS_DIR_PATH} -s %s -rsf ${RESOURCES_DIR_PATH} -rf ${RESULTS_DIR_PATH} %s %s
7070
7171
GATLING_EXIT_STATUS=$?
7272
if [ $GATLING_EXIT_STATUS -ne 0 ]; then
@@ -81,14 +81,17 @@ exit $GATLING_EXIT_STATUS
8181
generateLocalReportOption = ""
8282
}
8383

84+
runModeOptionLocal := "-rm local"
85+
8486
return fmt.Sprintf(template,
8587
simulationsDirectoryPath,
8688
tempSimulationsDirectoryPath,
8789
resourcesDirectoryPath,
8890
resultsDirectoryPath,
8991
startTime,
9092
simulationClass,
91-
generateLocalReportOption)
93+
generateLocalReportOption,
94+
runModeOptionLocal)
9295
}
9396

9497
func GetGatlingTransferResultCommand(resultsDirectoryPath string, provider string, region string, storagePath string) string {

0 commit comments

Comments
 (0)