Gatling version: 3.13.103
Gatling flavor: typescript
Gatling build tool: npm
Hello Dear Community,
I wanted to work on a performance project using the Gatling-TS version but I have an issue creating a DockerFile.
Here are the steps to reproduce :
-
I downloaded the “gatling-js-demo-main” installed the project (npm install) and launched it to verify the installation. It worked perfectly.
-
I created a really simple DockerFile :
FROM node:22-alpine as base
WORKDIR /app
#copy package.json to docker container
COPY . .
#install package.json dependency
RUN npm i
#launch gatling cmd
RUN npx gatling run
- Build the Docker Container using
docker build -t gatling-demo . --no-cache
I have the following error :
node:internal/errors:983
const err = new Error(message);
^
Error: Command failed: "/root/.gatling/coursier/2.1.12/cs" fetch --classpath "io.gatling.highcharts:gatling-charts-highcharts:3.13.1" "io.gatling:gatling-jvm-to-js-adapter:3.13.103" "io.gatling:gatling-enterprise-plugin-commons:1.9.8" "org.graalvm.polyglot:js-community:24.1.1"
/root/.gatling/coursier/2.1.12/cs: exec: line 26: /root/.gatling/graalvm/23.0.0/bin/java: not found
at genericNodeError (node:internal/errors:983:15)
at wrappedFn (node:internal/errors:537:14)
at ChildProcess.exithandler (node:child_process:419:12)
at ChildProcess.emit (node:events:518:28)
at maybeClose (node:internal/child_process:1104:16)
at ChildProcess._handle.onexit (node:internal/child_process:304:5) {
code: 127,
killed: false,
signal: null,
cmd: '"/root/.gatling/coursier/2.1.12/cs" fetch --classpath "io.gatling.highcharts:gatling-charts-highcharts:3.13.1" "io.gatling:gatling-jvm-to-js-adapter:3.13.103" "io.gatling:gatling-enterprise-plugin-commons:1.9.8" "org.graalvm.polyglot:js-community:24.1.1"',
stdout: '',
stderr: '/root/.gatling/coursier/2.1.12/cs: exec: line 26: /root/.gatling/graalvm/23.0.0/bin/java: not found\n'
}
Node.js v22.11.0
Does anyone encounter the same issue ?
Thank you and have a good day,
Victor