Using Gurobi in an Apptainer/Singularity Container
AnsweredI am trying to set up Gurobi in an apptainer(or singularity) image with my academic license to use it on the HPC server.
First, I have created an apptainer/singularity image from docker://gurobi-python-example.
apptainer pull test-gurobi.sif docker://gurobi/python-example
Then, I created a license in the Web License Manager and used the command
apptainer run --env GRB_WLSACCESSID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
,GRB_WLSSECRET=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx,GRB_LICENSEID=999999 test-gurobi.sif
(with the values from my license) to test it.
After running this code, I get the following output:
Set parameter CSClientLog to value 3
Set parameter WLSAccessID
Set parameter WLSSecret
Set parameter LicenseID
Error code 10024: Web license service only available for container environments
When I use docker on my local computer, it works well. Therefore, I was wondering if WLS can be applied to an apptainer/singularity container. If so, I would like to ask how to resolve this issue.
-
Official comment
Singularity has a closer connection to the host system, thus a WLS license will not work with it currently. You should be able to use a token license if your HPC has an academic site license installed.
Please sign in to leave a comment.
Comments
1 comment