I am facing the issue while launching k6 via Docker.
Please find below the logs:-
Hi @Sugam !
Welcome to the community forums!
It seems like it’s not the issue with the k6 or the k6 in docker, as the error says it looks like a syntaxis issue in the script.
Hope that answers,
As per my project, I follow below steps to run k6 scenario:-
I have two scenarios -
FROM node:16 AS node
ADD ./k6 /usr/app/k6
RUN npm install
RUN npm run build
COPY --from=node /usr/app/k6 /go/src/
I first execute npm install and npm run build in node image, copies the app.bundle.js in k6 container and then executing the k6 script in k6 conatiner.
Do yo think it can be an issue as I generate app.bundle.js in node container and executing it in k6 container?