Created
December 6, 2020 02:26
-
-
Save esemeniuc/2220586ab34d419c8e035240fd33393f to your computer and use it in GitHub Desktop.
Ansys Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:xenial | |
WORKDIR /root | |
EXPOSE 1084 1055 2325 | |
#Ports in use: | |
#panel 1084 | |
#flexlm 1055 | |
#interconnect 2325 | |
RUN apt update && apt install -y wget lsb-core libfreetype6 libxext6 libsm6 libxrender1 libfontconfig1 && rm -rf /var/lib/apt/lists/*; | |
#for requesting a licence, not needed for operation | |
RUN wget http://www.ansys.com/-/media/ansys/corporate/files/pdf/solutions/it-professionals/licensing/linx64.tar; tar xf linx64.tar | |
#for licence server v19.0 | |
RUN wget -O ANSYSLICMAN_190_LINX64.tar https://ansys13.ansys.com/release190/ANSYSLICMAN_190_LINX64.tar?_auth_=1516421393_921315b1a2c165e9f90912b6b2c88be3 | |
#install ansys licence server, see page 29 of installHelp.pdf | |
RUN mkdir ansys_install; tar xf ANSYSLICMAN_190_LINX64.tar -C ansys_install; ansys_install/INSTALL -LM -silent; rm -r ansys_install ANSYSLICMAN_190_LINX64.tar | |
#modify config file of tomcat to listen on all interfaces, see page 35 of installHelp.pdf | |
RUN sed -i 's/127\.0\.0\.1/0.0.0.0/g' /ansys_inc/shared_files/licensing/tools/tomcat/conf/server.xml | |
#fix for errors in flexnet log | |
RUN mkdir -p /usr/tmp/.flexlm | |
CMD /ansys_inc/shared_files/licensing/start_lmcenter | tee /root/ansys_start.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment