...
Code Block |
---|
FROM redhat/ubi8 ### Update redhat libraries (libidn is needed to start iguana service) RUN yum -y update RUN yum -y install procps RUN yum -y install libidn.x86_64 RUN yum -y install jq ### Download, unzip, and run Iguana service RUN cd /mnt && \ curl --insecure -L -o iguana_6_1_5_linux_centos7_x64.tar.gz https://dl.interfaceware.com/iguana/linux/6_1_5/iguana_6_1_5_linux_centos7_x64.tar.gz && \ tar -xvzf iguana_6_1_5_linux_centos7_x64.tar.gz ENTRYPOINT ["/mnt/iNTERFACEWARE-Iguana/iguana", "--run"] |
...
Code Block |
---|
IguanaID=`$IguanaWorkingDir/6.1.5/iguana --id` IguanaToken=`curl -k --request PORTPOST "https://my.interfaceware.com/api?username=$InterfacewareUser&password=$InterfacewarePassword&method=session.login" 2>/dev/null | grep "Token" | sed 's/",//' | sed 's/.*"//'` EntitlementID=`curl -k --request POST "https://my.interfaceware.com/api?method=license.listentitlements&product=Iguana&token=$IguanaToken" 2>/dev/null | jq ".data[] | select(.name==\"$LicenseName\") | .id " | sed 's/"//g'` IguanaLicense=`curl -k --request POST "https://my.interfaceware.com/api?method=license.activate&product=Iguana&token=$IguanaToken&description=IguanaLicense&entitlementid=$EntitlementID&instanceid=$IguanaID " 2>/dev/null | jq ".data | .code" | sed 's/"//g'` |
...