diff --git a/api/v1alpha1/zz_generated.deepcopy.go b/api/v1alpha1/zz_generated.deepcopy.go index fd84f47..d80112b 100644 --- a/api/v1alpha1/zz_generated.deepcopy.go +++ b/api/v1alpha1/zz_generated.deepcopy.go @@ -1,3 +1,4 @@ +//go:build !ignore_autogenerated // +build !ignore_autogenerated /* diff --git a/gatling/Dockerfile b/gatling/Dockerfile index d6cc9d3..f57fb50 100644 --- a/gatling/Dockerfile +++ b/gatling/Dockerfile @@ -2,23 +2,20 @@ # https://github.com/denvazh/gatling/tree/master/3.2.1 # # Gatling is a highly capable load testing tool. -# -# Documentation: https://gatling.io/docs/3.2/ -# Cheat sheet: https://gatling.io/docs/3.2/cheat-sheet/ -FROM openjdk:8-jdk-alpine +FROM openjdk:17-jdk-slim-bullseye # working directory for gatling WORKDIR /opt # gating version -ENV GATLING_VERSION 3.2.1 +ENV GATLING_VERSION 3.9.5 # create directory for gatling install RUN mkdir -p gatling # install gatling -RUN apk add --update wget bash libc6-compat && \ +RUN apt-get update && apt-get upgrade -y && apt-get install -y wget unzip && \ mkdir -p /tmp/downloads && \ wget -q -O /tmp/downloads/gatling-$GATLING_VERSION.zip \ https://repo1.maven.org/maven2/io/gatling/highcharts/gatling-charts-highcharts-bundle/$GATLING_VERSION/gatling-charts-highcharts-bundle-$GATLING_VERSION-bundle.zip && \ diff --git a/pkg/commands/commands.go b/pkg/commands/commands.go index e91333b..4fc4dd3 100644 --- a/pkg/commands/commands.go +++ b/pkg/commands/commands.go @@ -66,7 +66,7 @@ fi if [ ! -d ${RESULTS_DIR_PATH} ]; then mkdir -p ${RESULTS_DIR_PATH} fi -gatling.sh -sf ${SIMULATIONS_DIR_PATH} -s %s -rsf ${RESOURCES_DIR_PATH} -rf ${RESULTS_DIR_PATH} %s +gatling.sh -sf ${SIMULATIONS_DIR_PATH} -s %s -rsf ${RESOURCES_DIR_PATH} -rf ${RESULTS_DIR_PATH} %s %s if [ $? -ne 0 ]; then RUN_STATUS_FILE="${RESULTS_DIR_PATH}/FAILED" @@ -79,6 +79,8 @@ touch ${RUN_STATUS_FILE} generateLocalReportOption = "" } + runModeOptionLocal := "-rm local" + return fmt.Sprintf(template, simulationsDirectoryPath, tempSimulationsDirectoryPath, @@ -86,7 +88,8 @@ touch ${RUN_STATUS_FILE} resultsDirectoryPath, startTime, simulationClass, - generateLocalReportOption) + generateLocalReportOption, + runModeOptionLocal) } func GetGatlingTransferResultCommand(resultsDirectoryPath string, provider string, region string, storagePath string) string {