Hi Team
I am working on a project where we have so many API scripts (multiple team developing different APIs). So the requirement is I need to create a common docker image where they can pass a script name as an input and it has to run as docker container (probably in docker-compose with grafana/influxdb). So I created a shell script which accepts a script name as an input and execute k6 test.
#!/bin/bash
SCRIPTNAME=$1
k6_test='k6 run '$SCRIPTNAME''
$k6_test
sleep 10
Below is the snapshot of script folder structure
I wrote the docker file like below
FROM loadimpact/k6
COPY . .
ENTRYPOINT ["test.sh"]
But its not working. See the below error.
Can you please help me to create the docker file for this setup?
Thank you so much