From 6f2a1d6bd829de52fd65ed6d40d01c38b45e7af7 Mon Sep 17 00:00:00 2001 From: German <28149841+germa89@users.noreply.github.com> Date: Wed, 27 Nov 2024 10:06:14 +0100 Subject: [PATCH] docs: update docker instructions (#3580) * docs: update docker instructions * chore: adding changelog file 3580.documentation.md [dependabot-skip] * docs: adding simutech link --------- Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> --- doc/changelog.d/3580.documentation.md | 1 + doc/source/links.rst | 1 + doc/source/user_guide/troubleshoot.rst | 2 + docker/.dockerignore | 244 +++++++++++++------------ docker/Dockerfile | 52 ++++-- docker/make_container.rst | 6 +- 6 files changed, 168 insertions(+), 138 deletions(-) create mode 100644 doc/changelog.d/3580.documentation.md diff --git a/doc/changelog.d/3580.documentation.md b/doc/changelog.d/3580.documentation.md new file mode 100644 index 0000000000..50f8ff2ab4 --- /dev/null +++ b/doc/changelog.d/3580.documentation.md @@ -0,0 +1 @@ +docs: update docker instructions \ No newline at end of file diff --git a/doc/source/links.rst b/doc/source/links.rst index 6d4cea20b0..ee717569a8 100644 --- a/doc/source/links.rst +++ b/doc/source/links.rst @@ -137,6 +137,7 @@ .. _lmod_docs: https://lmod.readthedocs.io/en/latest/ .. _pygad_docs: https://pygad.readthedocs.io/en/latest/ .. _ga_article: https://blog.derlin.ch/genetic-algorithms-with-pygad +.. _simutech_linux_dependencies: https://install.simutechgroup.com/info-required-linux-packages-and-libraries .. #Github links: diff --git a/doc/source/user_guide/troubleshoot.rst b/doc/source/user_guide/troubleshoot.rst index 74a2b63f35..aa60eefb05 100644 --- a/doc/source/user_guide/troubleshoot.rst +++ b/doc/source/user_guide/troubleshoot.rst @@ -412,6 +412,8 @@ dependencies. libxp6 +An useful resource is `HOW TO - Install Ansys' Required Linux Packages & Libraries `_. + .. _conflicts_student_version: Conflicts with student version diff --git a/docker/.dockerignore b/docker/.dockerignore index 801a0c3889..8de9f1e4ab 100644 --- a/docker/.dockerignore +++ b/docker/.dockerignore @@ -7,6 +7,7 @@ **/aisol/AUTODYN **/aisol/bin **/aisol/BladeModeler +**/aisol/CADIntegration **/aisol/CommonFiles **/aisol/DesignSpace **/aisol/dll @@ -20,18 +21,18 @@ **/aisol/lib/linx64/libaddress_sorting.so **/aisol/lib/linx64/libans.autodyn.adbatch.so **/aisol/lib/linx64/libans.autodyn.results_api.so -**/aisol/lib/linx64/libans.cadint.assemblycontainer231.so -**/aisol/lib/linx64/libans.cadint.assemblycontainerdrawing231.so -**/aisol/lib/linx64/libans.cadint.assemblycontainerdrawingold231.so -**/aisol/lib/linx64/libans.cadint.assemblycontainerserializer231.so -**/aisol/lib/linx64/libans.cadint.assemblycontainertesselation231.so -**/aisol/lib/linx64/libans.cadint.assemblycontainervirtualhelper231.so +**/aisol/lib/linx64/libans.cadint.assemblycontainer242.so +**/aisol/lib/linx64/libans.cadint.assemblycontainerdrawing242.so +**/aisol/lib/linx64/libans.cadint.assemblycontainerdrawingold242.so +**/aisol/lib/linx64/libans.cadint.assemblycontainerserializer242.so +**/aisol/lib/linx64/libans.cadint.assemblycontainertesselation242.so +**/aisol/lib/linx64/libans.cadint.assemblycontainervirtualhelper242.so **/aisol/lib/linx64/libans.cadint.autovt.so -**/aisol/lib/linx64/libans.cadint.brepcomponent231.so -**/aisol/lib/linx64/libans.cadint.brepcomponentmeshinghelper231.so -**/aisol/lib/linx64/libans.cadint.brepcomponenttesselation231.so -**/aisol/lib/linx64/libans.cadint.brepgeometry231.so -**/aisol/lib/linx64/libans.cadint.brepserializer231.so +**/aisol/lib/linx64/libans.cadint.brepcomponent242.so +**/aisol/lib/linx64/libans.cadint.brepcomponentmeshinghelper242.so +**/aisol/lib/linx64/libans.cadint.brepcomponenttesselation242.so +**/aisol/lib/linx64/libans.cadint.brepgeometry242.so +**/aisol/lib/linx64/libans.cadint.brepserializer242.so **/aisol/lib/linx64/libans.cadint.virtualtopo.so **/aisol/lib/linx64/libans.modelmanager.core.so **/aisol/lib/linx64/libans.modelmanager.engine.pm.so @@ -80,21 +81,7 @@ **/aisol/lib/linx64/libgpr.so **/aisol/lib/linx64/libgrpc.so **/aisol/lib/linx64/libgrpcpp_channelz.so -**/aisol/lib/linx64/libhdf5-gcc820-1_10_5.so -**/aisol/lib/linx64/libhdf5-gcc820-1_10_5.so.103 -**/aisol/lib/linx64/libhdf5-gcc820-1_10_5.so.103.1.0 -**/aisol/lib/linx64/libhdf5_cpp-gcc820-1_10_5.so -**/aisol/lib/linx64/libhdf5_cpp-gcc820-1_10_5.so.103 -**/aisol/lib/linx64/libhdf5_cpp-gcc820-1_10_5.so.103.1.0 -**/aisol/lib/linx64/libhdf5_hl-gcc820-1_10_5.so -**/aisol/lib/linx64/libhdf5_hl-gcc820-1_10_5.so.100 -**/aisol/lib/linx64/libhdf5_hl-gcc820-1_10_5.so.100.1.2 -**/aisol/lib/linx64/libhdf5_hl_cpp-gcc820-1_10_5.so -**/aisol/lib/linx64/libhdf5_hl_cpp-gcc820-1_10_5.so.100 -**/aisol/lib/linx64/libhdf5_hl_cpp-gcc820-1_10_5.so.100.1.3 -**/aisol/lib/linx64/libhdf5_tools-gcc820-1_10_5.so -**/aisol/lib/linx64/libhdf5_tools-gcc820-1_10_5.so.100 -**/aisol/lib/linx64/libhdf5_tools-gcc820-1_10_5.so.100.1.2 +**/aisol/lib/linx64/libhdf5* **/aisol/lib/linx64/libifcore.so.5 **/aisol/lib/linx64/libifport.so.5 **/aisol/lib/linx64/libimf.so @@ -151,32 +138,32 @@ **/aisol/StartPage **/aisol/WBAddins **/aisol/WBMWRegistry -**/ans_uninstall231 +**/ans_uninstall242 **/ansys/bin/.change_ansysdir2022r2 -**/ansys/bin/.change_ansysdir231 +**/ansys/bin/.change_ansysdir242 **/ansys/bin/about.admin **/ansys/bin/ans_admin -**/ansys/bin/ans_admin231 +**/ansys/bin/ans_admin242 **/ansys/bin/ansconnect -**/ansys/bin/ansconnect231 +**/ansys/bin/ansconnect242 **/ansys/bin/anshelp -**/ansys/bin/anshelp231 +**/ansys/bin/anshelp242 **/ansys/bin/ansslurm -**/ansys/bin/ansslurm231 +**/ansys/bin/ansslurm242 **/ansys/bin/anstclsh -**/ansys/bin/anstclsh231 +**/ansys/bin/anstclsh242 **/ansys/bin/ansuge -**/ansys/bin/ansuge231 +**/ansys/bin/ansuge242 **/ansys/bin/answish -**/ansys/bin/answish231 +**/ansys/bin/answish242 **/ansys/bin/ansysts -**/ansys/bin/ansysts231 +**/ansys/bin/ansysts242 **/ansys/bin/bintst -**/ansys/bin/bintst231 +**/ansys/bin/bintst242 **/ansys/bin/launcher -**/ansys/bin/launcher231 +**/ansys/bin/launcher242 **/ansys/bin/launchertcl -**/ansys/bin/launchertcl231 +**/ansys/bin/launchertcl242 **/ansys/bin/linx64/.ansys_installed **/ansys/bin/linx64/lsdyna_dp.e **/ansys/bin/linx64/lsdyna_dp_mpp.e @@ -185,33 +172,31 @@ **/ansys/bin/linx64/lsl2a.e **/ansys/bin/linx64/lsl2a_dp.e **/ansys/bin/lsdyna -**/ansys/bin/lsdyna231 +**/ansys/bin/lsdyna242 **/ansys/bin/lsl2a -**/ansys/bin/lsl2a231 +**/ansys/bin/lsl2a242 **/ansys/bin/lsrun -**/ansys/bin/lsrun231 +**/ansys/bin/lsrun242 **/ansys/bin/nlhist -**/ansys/bin/nlhist231 +**/ansys/bin/nlhist242 **/ansys/bin/rdresu -**/ansys/bin/rdresu231 +**/ansys/bin/rdresu242 **/ansys/bin/rdsubs -**/ansys/bin/rdsubs231 +**/ansys/bin/rdsubs242 **/ansys/bin/ResRdDemo -**/ansys/bin/ResRdDemo231 +**/ansys/bin/ResRdDemo242 **/ansys/bin/ResWrDemo -**/ansys/bin/ResWrDemo231 +**/ansys/bin/ResWrDemo242 **/ansys/bin/userprog -**/ansys/bin/userprog231 +**/ansys/bin/userprog242 **/ansys/bin/wrtres -**/ansys/bin/wrtres231 +**/ansys/bin/wrtres242 **/ansys/bin/wrtsub -**/ansys/bin/wrtsub231 +**/ansys/bin/wrtsub242 **/ansys/bin/xansadmin.tcl **/ansys/data **/ansys/docu/ansadmin.hlp -**/ansys/docu/LS-DYNA_Manual_Volume_I_R12.pdf -**/ansys/docu/LS-DYNA_Manual_Volume_II_R12_Ver2.pdf -**/ansys/docu/LS-DYNA_Manual_Volume_III_R12_Ver2.pdf +**/ansys/docu/LS-DYNA_Manual* **/ansys/gui/en-us/images **/ansys/gui/en-us/matlib **/ansys/gui/en-us/resources @@ -225,9 +210,12 @@ **/ansys/syslib/boost/libboost_thread.so.1 **/ansys/syslib/boost/libboost_thread.so.1.71.0 **/ansys/syslib/CPython +**/ansys/syslib/daal/*.a +**/ansys/syslib/daal/libonedal_dpc.so* +**/ansys/syslib/daal/libJavaAPI.so* **/ansys/syslib/PyQt -**/ansys/syslib/ubuntu **/builddate.txt +**/CADConfigLogs **/commonfiles/AAS/bin/linx64/AasAgentDotNetCore.dll **/commonfiles/AAS/bin/linx64/AnsysSessionManager.idl **/commonfiles/AAS/bin/linx64/APECSwizard.scm @@ -271,17 +259,29 @@ **/commonfiles/AAS/bin/linx64/scale001.jpg **/commonfiles/AAS/bin/linx64/SimulationAasDotNetStandard.dll **/commonfiles/AAS/bin/linx64/steer.scm +**/commonfiles/AMD/BLIS/v3.2.1 +**/commonfiles/AMD/BLIS/v4.1.0 +**/commonfiles/AMD/BLIS/v4.1.1 **/commonfiles/branch.txt +**/commonfiles/CAD/Hoops +**/commonfiles/CAD/Parasolid +**/commonfiles/CAD/Siemens +**/commonfiles/CAD/Spatial +**/commonfiles/CAD/examples **/commonfiles/CFX **/commonfiles/configs +**/commonfiles/CPython **/commonfiles/DebugControl **/commonfiles/examples **/commonfiles/fluids **/commonfiles/Fonts +**/commonfiles/globalsettings **/commonfiles/help **/commonfiles/images **/commonfiles/installer **/commonfiles/IronPython +**/commonfiles/language/de +**/commonfiles/language/en-us/CAD **/commonfiles/language/en-us/launcher **/commonfiles/language/fr **/commonfiles/language/ko @@ -289,13 +289,16 @@ **/commonfiles/launcher **/commonfiles/launcherQt **/commonfiles/MainWin +**/commonfiles/MPI **/commonfiles/registry **/commonfiles/Stride **/commonfiles/SystemCoupling **/commonfiles/Textures **/commonfiles/tools **/commonfiles/UnitsLibrary +**/commonfiles/WBAddinConfiguration **/dcs +**/dpf **/Electronics **/Framework **/Images @@ -306,6 +309,9 @@ **/licensingclient/linx64/libFlxComm64.so.2020.12 **/licensingclient/linx64/libFlxCore64.so.2020.12 **/licensingclient/linx64/lmutil +**/licensingclient/linx64/LicensingSettingsUtility +**/licensingclient/linx64/LicensingSettings +**/meshing/Prime **/ProductConfig.sh **/RSM **/SEC @@ -322,76 +328,84 @@ **/tp/CUEUnits **/tp/d3 **/tp/ffmpeg -**/tp/hdf5/1_10_5/linx64/bin -**/tp/hdf5/1_10_5/linx64/include -**/tp/hdf5/1_10_5/linx64/lib/libhdf5.a -**/tp/hdf5/1_10_5/linx64/lib/libhdf5.settings -**/tp/hdf5/1_10_5/linx64/lib/libhdf5_cpp.a -**/tp/hdf5/1_10_5/linx64/lib/libhdf5_hl.a -**/tp/hdf5/1_10_5/linx64/lib/libhdf5_hl_cpp.a -**/tp/hdf5/1_10_5/linx64/lib/libhdf5_tools.a -**/tp/hdf5/1_10_5/linx64/lib/libhdf5_tools.so -**/tp/hdf5/1_10_5/linx64/lib/libhdf5_tools.so.100 -**/tp/hdf5/1_10_5/linx64/lib/libhdf5_tools.so.100.1.2 -**/tp/hdf5/1_10_5/linx64/lib/pkgconfig -**/tp/hdf5/1_10_5/linx64/share -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_avx.so -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_avx2.so -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_blacs_intelmpi_ilp64.a -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_blacs_intelmpi_ilp64.so -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_blacs_intelmpi_lp64.a -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_blacs_openmpi_ilp64.a -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_blacs_openmpi_ilp64.so -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_blacs_openmpi_lp64.a -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_blacs_sgimpt_ilp64.a -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_blacs_sgimpt_ilp64.so -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_blacs_sgimpt_lp64.a -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_blacs_sgimpt_lp64.so -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_blas95_ilp64.a -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_blas95_lp64.a -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_cdft_core.a -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_cdft_core.so -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_core.a -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_gf_ilp64.a -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_gf_ilp64.so -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_gf_lp64.a -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_gf_lp64.so -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_gnu_thread.a -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_intel_ilp64.a -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_intel_ilp64.so -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_intel_lp64.a -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_intel_thread.a -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_lapack95_ilp64.a -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_lapack95_lp64.a -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_mc.so -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_mc3.so -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_pgi_thread.a -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_pgi_thread.so -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_rt.so -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_scalapack_ilp64.a -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_scalapack_ilp64.so -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_scalapack_lp64.a -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_sequential.a -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_sequential.so -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_tbb_thread.a -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_tbb_thread.so -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_vml_avx.so -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_vml_avx2.so -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_vml_cmpt.so -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_vml_def.so -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_vml_mc.so -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_vml_mc2.so -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/libmkl_vml_mc3.so -**/tp/IntelMKL/2020.0.166/linx64/lib/intel64/locale +**/tp/hdf5/1_12_2/linx64/bin +**/tp/hdf5/1_12_2/linx64/include +**/tp/hdf5/1_12_2/linx64/lib/libhdf5-serial.a +**/tp/hdf5/1_12_2/linx64/lib/libhdf5.settings +**/tp/hdf5/1_12_2/linx64/lib/libhdf5_cpp-serial.a +**/tp/hdf5/1_12_2/linx64/lib/libhdf5_hl-serial.a +**/tp/hdf5/1_12_2/linx64/lib/libhdf5_hl_cpp-serial.a +**/tp/hdf5/1_12_2/linx64/lib/libhdf5_tools-serial.a +**/tp/hdf5/1_12_2/linx64/lib/libhdf5_tools-serial.so +**/tp/hdf5/1_12_2/linx64/lib/libhdf5_tools-serial.so.200 +**/tp/hdf5/1_12_2/linx64/lib/libhdf5_tools-serial.so.200.1.1 +**/tp/hdf5/1_12_2/linx64/lib/pkgconfig +**/tp/hdf5/1_12_2/linx64/share +**/tp/IntelMKL/2020.0.166 **/tp/IntelMKL/2021.3.0 +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_avx.so.2 +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_avx2.so.2 +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_avx512.so.2 +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_blacs_intelmpi_ilp64.so +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_blacs_intelmpi_ilp64.so.2 +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_blacs_openmpi_ilp64.so +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_blacs_openmpi_ilp64.so.2 +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_cdft_core.so +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_cdft_core.so.2 +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_gf_ilp64.so +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_gf_ilp64.so.2 +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_gf_lp64.so +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_gf_lp64.so.2 +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_intel_ilp64.so +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_intel_ilp64.so.2 +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_mc.so.2 +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_mc3.so.2 +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_pgi_thread.so +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_pgi_thread.so.2 +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_rt.so +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_rt.so.2 +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_scalapack_ilp64.so +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_scalapack_ilp64.so.2 +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_sequential.so +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_sequential.so.2 +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_sycl.so* +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_tbb_thread.so +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_tbb_thread.so.2 +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_vml_avx.so.2 +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_vml_avx2.so.2 +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_vml_cmpt.so.2 +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_vml_def.so.2 +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_vml_mc.so.2 +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/libmkl_vml_mc3.so +**/tp/IntelMKL/2023.1.0/linx64/lib/intel64/locale **/tp/jquery +**/tp/MPI/Intel/2018.3.222 +**/tp/MPI/Intel/2019.12.320 +**/tp/MPI/Intel/2021.5.0 +**/tp/MPI/Intel/2021.6.0 +**/tp/MPI/Intel/2021.8.0 +**/tp/MPI/Intel/2021.10.0 +**/tp/MPI/Intel/2021.11.0/linx64/lib/debug +**/tp/MPI/Intel/2021.11.0/linx64/lib/mpi/debug +**/tp/MPI/Intel/2021.11.0/linx64/lib/release/libmpi.a +**/tp/MPI/Intel/2021.11.0/linx64/lib/release/libmpi.dbg +**/tp/MPI/OpenMPI/5.0.0 **/tp/ngInfiniteScroll +**/tp/nss **/tp/nvd3 **/tp/openjre **/tp/qt **/tp/qt* **/tp/signalr **/tp/zlib +*_Certified_artifactory/ +*_Certified_artifactory/**/* +*_docker +*_docker/**/* +workdir +.workdir +*swp +*swo # working directories .dockerignore diff --git a/docker/Dockerfile b/docker/Dockerfile index a756c98f0b..41f7ed03fb 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -11,8 +11,7 @@ ENV ANSYS_VERSION=$VERSION # Location env var # This var needs to be updated when version changes. -ENV AWP_ROOT222=/ansys_inc - +ENV AWP_ROOT242=/ansys_inc # LABELS LABEL description="MAPDL on Ubuntu" @@ -23,16 +22,25 @@ LABEL org.opencontainers.image.documentation="https://mapdl.docs.pyansys.com" # Update packages before packing and # installing dependencies +# libxp.so missing. This is a workaround +#https://bugs.launchpad.net/ubuntu/+source/libxp/+bug/1517884 RUN apt-get update && \ apt-get install -y \ sudo \ git \ python3.10-venv \ + python3-pip \ openssh-client \ + libgomp1 \ libgl1 \ libglu1 \ libxm4 \ - libxi6 + libxi6 && \ + apt install -y software-properties-common \ + && add-apt-repository -y ppa:zeehio/libxp \ + && apt-get update \ + && apt-get install -y libxp6 && \ + mkdir -p /ansys_inc # libxp.so missing. This is a workaround #https://bugs.launchpad.net/ubuntu/+source/libxp/+bug/1517884 @@ -41,35 +49,37 @@ RUN apt install -y software-properties-common \ && apt-get update \ && apt-get install -y libxp6 +# Setting home directory +ENV HOME=/home/$USERNAME -# Create the user -RUN groupadd --gid $USER_GID $USERNAME \ - && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME - +# Setting working directory +ENV WORKING_DIRECTORY=/jobs # Copying files -RUN mkdir -p /ansys_inc COPY $MAPDL_PATH /ansys_inc +# Adding locales +RUN apt-get install -y locales && \ + locale-gen 'en_US.UTF-8' && \ + update-locale LC_ALL='en_US.UTF-8' && \ + sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ + locale-gen && \ + echo -e '\nexport LANG=en_US.UTF-8\nexport LANGUAGE=en_US:en\nexport LC_ALL=en_US.UTF-8' >> ~/.bashrc + # Cleaning RUN rm -rf .dockerignore \ && rm -rf Dockerfile \ && rm -rf *.log - -# Setting working directory -ENV WORKING_DIRECTORY=/jobs - -# Setting home directory -ENV HOME=/home/$USERNAME - # License server # (Optional) # ENV LICENSE_SERVER=111.222.333.444 # ENV ANSYSLMD_LICENSE_FILE=1055@$LICENSE_SERVER -# Add a working directory and make it accessible to any user -RUN mkdir -p /home/$USERNAME/$WORKING_DIRECTORY \ +# Add username, create the working directory and make it accessible to any user +RUN groupadd --gid $USER_GID $USERNAME \ + && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME && \ + mkdir -p /home/$USERNAME/$WORKING_DIRECTORY \ && \ chown -R $USERNAME:$USERNAME /home/$USERNAME/$WORKING_DIRECTORY \ && \ @@ -78,14 +88,16 @@ RUN mkdir -p /home/$USERNAME/$WORKING_DIRECTORY \ # Setting other env vars ## For MAPDL awareness ENV ON_DOCKER=TRUE +ENV DEBIAN_FRONTEND=noninteractive ENV OMPI_ALLOW_RUN_AS_ROOT=1 ENV OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 # Adding alias to ansys executable -RUN printf '#!/bin/bash\n/ansys_inc/v$ANSYS_VERSION/ansys/bin/mapdl "$@"' > /usr/bin/ansys && \ - chmod +x /usr/bin/ansys -RUN printf '#!/bin/bash\n/ansys_inc/v$ANSYS_VERSION/ansys/bin/mapdl -grpc "$@"' > /usr/bin/ansysgrpc && \ +RUN echo 'alias ansys="/ansys_inc/v$ANSYS_VERSION/ansys/bin/mapdl"' >> ~/.bashrc && \ + printf '#!/bin/bash\n/ansys_inc/v$ANSYS_VERSION/ansys/bin/mapdl "$@"' > /usr/bin/ansys && \ + chmod +x /usr/bin/ansys && \ + printf '#!/bin/bash\n/ansys_inc/v$ANSYS_VERSION/ansys/bin/mapdl -grpc "$@"' > /usr/bin/ansysgrpc && \ chmod +x /usr/bin/ansysgrpc # Setting user diff --git a/docker/make_container.rst b/docker/make_container.rst index 225f1e5d50..8ad141fc86 100644 --- a/docker/make_container.rst +++ b/docker/make_container.rst @@ -15,7 +15,7 @@ and then copy the generated files to the container. Requirements ============ -* A linux machine, preferable with Ubuntu 18.04 or later. +* A linux machine, preferable with Ubuntu 20.04 or later. CentOS Linux distribution is not supported anymore. This machine needs to have `Docker `_ installed. @@ -87,8 +87,8 @@ which you should modify to adapt it to your needs. cp ./path-to-pymapdl/pymapdl/docker/.dockerignore # Creating env vars for the Dockerfile - export VERSION=222 - export TAG="V222" + export VERSION=242 # MAPDL version + export TAG="V242" # docker container tag export MAPDL_PATH=/path_to_mapdl_installation/ansys_inc # Build Docker image