You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compiling lightweight openfoam9 will decrease the size of the layer.
Currently we use it as below but it allocates 1.09 GB
RUN apt-get -y --no-install-recommends install openfoam9
But the source files are around 150 MB, so we can download source files to image and compile ourselves with lightweight version by eliminating unnessary builts.
# Download and compile OpenFOAM 9 manuallyWORKDIR /opt
RUN wget -O OpenFOAM-9.tar.gz http://dl.openfoam.org/source/9
RUN mkdir OpenFOAM-9
RUN tar -xzf OpenFOAM-9.tar.gz -C /opt/OpenFOAM-9 --strip-components=1
RUN echo "source /opt/openfoam9/etc/bashrc" >> /root/.bashrc
# Compiling script (tooks more than 1 hour with failed compiling, there is no enough error report why it happenned..)WORKDIR /opt/OpenFOAM-9
RUN Allwmake
# Cleanup unnecessary files to reduce the image sizeRUN rm -rf /opt/OpenFOAM-9.tar.g
The second option requires more know how to compile it properly and feasibilty analysis to understand is it really make sense or not.
The text was updated successfully, but these errors were encountered:
Compiling lightweight openfoam9 will decrease the size of the layer.
Currently we use it as below but it allocates 1.09 GB
RUN apt-get -y --no-install-recommends install openfoam9
But the source files are around 150 MB, so we can download source files to image and compile ourselves with lightweight version by eliminating unnessary builts.
The second option requires more know how to compile it properly and feasibilty analysis to understand is it really make sense or not.
The text was updated successfully, but these errors were encountered: