Forum Discussion

Chry007's avatar
Chry007
New Contributor
5 years ago

Aquiring Floating License from within docker container in gitlab-ci pipeline

Hi, 

I am starting the ready-api-soapui-testrunner (https://hub.docker.com/r/smartbear/ready-api-soapui-testrunner) from within a git pipeline. The container starts and connects to the license server, but the license server asks which license type i want to aquire. At this point I am running in a git runner and there is no way to provide input to the container.

Is there any way to provide this in the docker run command or something alike?

 

Heres where the pipeline times out waiting for input:

 running image

 

 

$ docker run -v="testproject":/project -v="testprojectr":/reports -e LICENSE_SERVER="xx.xx.xx.xx:9999" -i smartbear/ready-api-soapui-testrunner:latest
Please select the tool for which you want to get the floating license:
1. SoapUI Pro
2. LoadUI Pro
3. Secure (if you have an old license)
4. ServiceV Pro
5. VirtServer
6. ReadyAPI Bundle
7. TestEngine
8. swaggerhub
9. swaggerhub2

 

 

Obviously at this point i cannot provide console input.
 
Kind regards
  • We had a similar issue and after a few online sessions this is what we have working now.

     

    Run docker pull ***.dkr.ecr.us-east-1.amazonaws.com/badbear:latest
    docker pull ***.dkr.ecr.us-east-1.amazonaws.com/badbear:latest
    mkdir -p /tmp/reports
    mkdir -p /tmp/ext
    PWD=`pwd`
    PROJ='radigio-automated-tests'
    PROJECT="${PWD}/${PROJ}"
    REPORT="/tmp/reports"
    EXTN="/tmp/ext"
    docker run -v="${PROJECT}":/project -v="${REPORT}":/reports -v="${EXTN}":/ext -e "JAVA_OPTS=-Xms128m -Xmx8192m -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:MaxPermSize=256m -Dsoapui.properties=soapui.properties" -e LICENSE_SERVER="sblicense.net:1099" -e COMMAND_LINE=" -f/reports '-RJUnit-Style HTML Report' -FHTML '-EMSP_QA1' '-TTestSuite Proposals' '-TTestCase Proposals' '/project' " ***.dkr.ecr.us-east-1.amazonaws.com/badbear:latest

    • Chry007's avatar
      Chry007
      New Contributor

      This is still not resolved. By now I get an error message though. It looks like the license Server is contacted succesfully, but still no license can be aquired, even though there are floating licenses remaining on the server.

       

      The error Message from the log is as attached.

       

       

      • dbuchanan's avatar
        dbuchanan
        Member

        We had a similar issue and after a few online sessions this is what we have working now.

         

        Run docker pull ***.dkr.ecr.us-east-1.amazonaws.com/badbear:latest
        docker pull ***.dkr.ecr.us-east-1.amazonaws.com/badbear:latest
        mkdir -p /tmp/reports
        mkdir -p /tmp/ext
        PWD=`pwd`
        PROJ='radigio-automated-tests'
        PROJECT="${PWD}/${PROJ}"
        REPORT="/tmp/reports"
        EXTN="/tmp/ext"
        docker run -v="${PROJECT}":/project -v="${REPORT}":/reports -v="${EXTN}":/ext -e "JAVA_OPTS=-Xms128m -Xmx8192m -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:MaxPermSize=256m -Dsoapui.properties=soapui.properties" -e LICENSE_SERVER="sblicense.net:1099" -e COMMAND_LINE=" -f/reports '-RJUnit-Style HTML Report' -FHTML '-EMSP_QA1' '-TTestSuite Proposals' '-TTestCase Proposals' '/project' " ***.dkr.ecr.us-east-1.amazonaws.com/badbear:latest