It is possible to install the licensed Gurobi product in Domino. Gurobi is a licensed product and not provided or installed by Domino. The following is a brief outline of an example Gurobi install in to a Domino Compute Environment (CE) for use with R and Rstudio. Python is also available from Gurobi and the install will differ of course but the framework should be similar. Your mileage may vary as CE's are very dependent on the base image in use.
Dockerfile instructions:
USER root
RUN R --no-save -e "install.packages('slam')"
WORKDIR "/opt/gurobi"
RUN sudo chmod 777 /opt/gurobi
RUN sudo wget "https://packages.gurobi.com/9.5/gurobi9.5.1_linux64.tar.gz"
RUN tar -xzf "gurobi9.5.1_linux64.tar.gz"
RUN R --no-save -e "install.packages('/opt/gurobi/gurobi951/linux64/R/gurobi_9.5-1_R_4.1.1.tar.gz', repos=NULL)"
RUN echo "TOKENSERVER=10.200.13.203" > gurobi.lic
RUN echo "export GRB_LICENSE_FILE=/opt/gurobi/gurobi.lic" >> /home/${DOMINO_USER}/.domino-defaults
PRE-run script:
export GUROBI_HOME=/opt/gurobi/gurobi951/linux64/
export PATH=${PATH}:${GUROBI_HOME}/bin/
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GUROBI_HOME}/lib/
export GRB_LICENSE_FILE=/opt/gurobi/gurobi.lic
Comments
0 comments
Please sign in to leave a comment.