Docker Community Forums

Share and learn in the Docker community.

Docker command for Katalon in Linux container in Azure


As can be seen from the title, I am trying to run Katalon Studio in a Docker Linux container in Azure.
Perhaps I’m trying a tad too much regarding integration.
I integrated Docker into Azure and copied my whole Katalon project into the container through git clone from a git repository. It seems to be working, since I can run docker commands in the container and see the files in the container using ls.
However, when I try to run a test suite which is located in the container, I keep getting an error.

The command I run is

docker run -t --rm -v /home/docker/katalontest:/katalon/katalon/source katalonstudio/katalon -browserType=“Chrome” -retry=0 -statusDelay=15 -testSuitePath=“Test Suites/Test”

The error I get is as follows:

  • echo ‘Starting Katalon Studio’
    Starting Katalon Studio
  • cat /katalon/version
    Google Chrome 72.0.3626.109
    Mozilla Firefox 65.0
    Katalon Studio 5.10.1
    ++ pwd
  • current_dir=/
  • workspace_dir=/tmp/katalon_execute/workspace
  • mkdir -p /tmp/katalon_execute/workspace
  • chmod -R 777 /tmp/katalon_execute/workspace
  • source_dir=/katalon/katalon/source
  • ‘[’ -d /katalon/katalon/source ‘]’
  • project_dir=/tmp/katalon_execute/project
  • mkdir -p /tmp/katalon_execute/project
  • cp -r /katalon/katalon/source/report /tmp/katalon_execute/project
  • touch /tmp/katalon_execute/project/.classpath
  • chmod -R 777 /tmp/katalon_execute/project
  • rm -rf /tmp/katalon_execute/project/bin
  • rm -rf /tmp/katalon_execute/project/Libs
  • ls -la /tmp/katalon_execute/project
    total 12
    drwxrwxrwx 3 root root 4096 Feb 18 14:22 .
    drwxr-xr-x 4 root root 4096 Feb 18 14:22 …
    -rwxrwxrwx 1 root root 0 Feb 18 14:22 .classpath
    drwxrwxrwx 2 root root 4096 Feb 18 14:22 report
  • report_dir=/katalon/katalon/report
  • ‘[’ -d /katalon/katalon/report ‘]’
  • report_dir=/katalon/katalon/source/report
  • mkdir -p /katalon/katalon/source/report
  • args=("KATALON_KATALON_INSTALL_DIR/katalon" “@”)
  • args+=("-runMode=console")
  • args+=("-reportFolder=$report_dir")
  • args+=("-projectPath=$project_dir")
  • cd /tmp/katalon_execute/workspace
  • xvfb-run -s ‘-screen 0 1024x768x24’ /opt/katalonstudio/katalon -browserType=Chrome -retry=0 -statusDelay=15 ‘-testSuitePath=Test Suites/Test’ -runMode=console -reportFolder=/katalon/katalon/source/report -projectPath=/tmp/katalon_execute/project
    Opening project file: /tmp/katalon_execute/project
    Invalid argument: Cannot find project ‘/tmp/katalon_execute/project’.
    Request sent successfully.
  • ret_code=4
    ++ id -u
    ++ id -g
  • chown -R 0:0 /katalon/katalon/source/report
  • chmod -R 777 /katalon/katalon/source/report
  • ls /katalon/katalon/source/report
  • cd /
  • exit 4

It seems the project can’t be found. I can’t figure out why. Any help would be greatly appreciated.