paramak icon indicating copy to clipboard operation
paramak copied to clipboard

Getting Cubit / Trelis into the CI

Open shimwell opened this issue 4 years ago • 9 comments

Currently we test about 99% of the code in the CI on github actions and circle CI but we are not able to test the Trelis scripts for making the faceted geometry.

This is because as far as I know there is no version (including the new free version) that can be downloaded from a URL without login to the website. Any suggestions appreciated here @GregVernon

Ideally the would be a public URL for Trelis download then we could incorporate it into the Dockerfiles that are used for CI

We have a dockerfile that makes use of locally downloaded installer files (.deb) but naturally we can't put these on the internet as that would be redistribution.

But here is the dockerfile that adds to the exisintg CI dockerfile for interest

FROM ukaea/paramak

# this section copies over the dagmc plugin for trelis, a public url can be made for this open source plugin
COPY trelis17.1_ubuntu18.04.tar.gz .
RUN mkdir -p /opt/Trelis-17.1/
RUN tar -xf trelis17.1_ubuntu18.04.tar.gz -C /opt/Trelis-17.1

#this command copies the locally downloaded trelis into the docker image but a wget command pointing to a public url would allow us to do this in the CI
COPY Trelis-17.1.0-Lin64.deb .
RUN dpkg -i Trelis-17.1.0-Lin64.deb

# this installs the dagmc plugin
RUN cd /opt/Trelis-17.1/bin && \
    ln -s plugins/svalinn/libdagmc.so . && \
    ln -s plugins/svalinn/libiGeom.so . && \
    ln -s plugins/svalinn/libmakeWatertight.so . && \
    ln -s plugins/svalinn/libmcnp2cad.so . && \
    ln -s plugins/svalinn/libMOAB.so . && \
    ln -s plugins/svalinn/libMOAB.so.5 .

# puts the path for trelis into the PATH env
ENV PATH=$PATH:/opt/Trelis-17.1/bin

shimwell avatar Feb 04 '21 10:02 shimwell