ReadyAPI docker错误,许可证无效:无法获取浮动许可证原因:无法为浮动许可证服务器创建HTTPS服务

问题描述

当尝试通过docker运行ready-api-soapui-testrunner时,出现上述错误,我使用的是浮动许可证,可以在本地ping服务器。

下面是docker run命令。

docker run --net=bridge --add-host=TESTDB:10.30.214.251 -v="$project_dir":/project -v="$project_dir":/reports -e LICENSE_SERVER="10.0.21.14:1099" -e COMMAND_LINE="-E TestEnv /readyapi-project" -it 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
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$2 (file:/usr/local/SmartBear/ready-api-license-manager-1.3.2.jar) to method java.lang.classLoader.defineClass(java.lang.String,byte[],int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$2
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
ERROR: The license is invalid: Failed to get floating license. Reason: Failed to create HTTPS service for floating license server.

任何帮助将不胜感激

解决方法

因此,此问题原来是容器映像与我公司的许可服务器版本不兼容。指定smartbear / ready-api-soapui-testrunner:{version}解决了该问题。