Aquiring Floating License from within docker container in gitlab-ci pipeline
- 4 years ago
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