From 1731663ec6fe417fce1f6a40627dcd170e13aaab Mon Sep 17 00:00:00 2001 From: Jonathan Shimwell Date: Sat, 21 Aug 2021 18:51:53 +0100 Subject: [PATCH] fixed cubit lic issue --- Dockerfile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/Dockerfile b/Dockerfile index a502459d3..25bde27d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,6 +40,7 @@ ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 \ CC=/usr/bin/mpicc CXX=/usr/bin/mpicxx \ DEBIAN_FRONTEND=noninteractive +RUN apt-get --allow-releaseinfo-change update RUN apt-get update -y && \ apt-get upgrade -y @@ -55,6 +56,36 @@ RUN echo installing CadQuery version $cq_version && \ pip install jupyter-cadquery==2.2.0 && \ conda clean -afy +# Download Cubit +RUN wget -O coreform-cubit-2021.5.deb https://f002.backblazeb2.com/file/cubit-downloads/Coreform-Cubit/Releases/Linux/Coreform-Cubit-2021.5%2B15962_5043ef39-Lin64.deb + +# install Cubit dependencies +RUN apt-get install -y libx11-6 +RUN apt-get install -y libxt6 +RUN apt-get install -y libgl1 +RUN apt-get install -y libglu1-mesa +RUN apt-get install -y libgl1-mesa-glx +RUN apt-get install -y libxcb-icccm4 +RUN apt-get install -y libxcb-image0 +RUN apt-get install -y libxcb-keysyms1 +RUN apt-get install -y libxcb-render-util0 +RUN apt-get install -y libxkbcommon-x11-0 +RUN apt-get install -y libxcb-randr0 +RUN apt-get install -y libxcb-xinerama0 + +# Install cubit +RUN dpkg -i coreform-cubit-2021.5.deb + +# installs svalinn plugin for cubit +RUN wget https://github.com/svalinn/Cubit-plugin/releases/download/0.2.1/svalinn-plugin_debian-10.10_cubit_2021.5.tgz +RUN tar -xzvf svalinn-plugin_debian-10.10_cubit_2021.5.tgz -C /opt/Coreform-Cubit-2021.5 + +# writes a non commercial license file +RUN mkdir -p /root/.config/Coreform/licenses +RUN printf 'Fri May 28 2021' >> /root/.config/Coreform/licenses/cubit-learn.lic + +# helps to identify Cubit related errrors +ENV CUBIT_VERBOSE=5 # dagmc is needed as it includes the make_watertight command and moab # conda install -c conda-forge -c moab # now included with dagmc