No Project File Specified error when running a composite project in Docker container
I am trying to run a composite project in the ReadyAPI Docker container found here:
I am using the newer SmartBear ID-based licenses and therefore using the relevant syntax as can be seen in the docs:
docker run -v="C:\Projects\GitLab\Integrations\my-api\readyapi":/project -v="C:\Projects\GitLab\Integrations\my-api\readyapi\reports":/reports -e SLM_LICENSE_SERVER="https://api.slm.manage.smartbear.com:443" -e API_KEY="#####" -e COMMAND_LINE=" -Edevelopment -c/My Test Name" -it smartbear/ready-api-soapui-testrunner:latest
When I run this command I get the error - 'No project file is specified.' However with this being a composite project, there is no xml file to reference in the Command Line Arguments. I have tried just specifying the readyapi folder again, but this doesn't work and i get the same error.
What am I missing from the arguments that would allow me to run a composite project via Docker?
Solved! Go to Solution.
I got the syntax wrong and the quotes were throwing it off.
Working version for anyone who encounters the same issue:
docker run -v="projectPath\readyapi":/project -v="pathToReportsFolder":/reports -e SLM_LICENSE_SERVER="https://api.slm.manage.smartbear.com:443" -e API_KEY="myApiKey" -e COMMAND_LINE="'-cmyTestName' -r -a '-fpathToReportsFolder' -EenvironmentName -x='projectPassword' '/%project%/'" -it smartbear/ready-api-soapui-testrunner:latest