cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
New Contributor

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
Tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
Member

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

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

View solution in original post

5 REPLIES 5
Community Manager

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

Hi @Chry007,

Please take a look at the Required license paragraph of the Functional Tests in Docker article. Does it answer your question?

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Contributor

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

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.

 

 

Community Manager

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

Hi @Chry007,

Sorry to hear that the issue still persists. I recommend that you submit a ticket to our Support Case - I'm sure they will help you figure out this licensing issue. You can reach out to them here:

https://support.smartbear.com/message/?prod=readyapi

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Member

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

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

View solution in original post

Community Manager

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

Thanks for sharing your solution with us, @dbuchanan.

@Chry007, does it work for you?

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors