From 0aca3d0cc0efece37a148b7a4ed3538e18e1371b Mon Sep 17 00:00:00 2001 From: cortadocodes Date: Tue, 2 Apr 2024 11:45:30 +0100 Subject: [PATCH] ENH: Build FAST.Farm in docker image by default --- share/docker/openfast_ubuntu/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/docker/openfast_ubuntu/Dockerfile b/share/docker/openfast_ubuntu/Dockerfile index e4774eb803..d8b7951042 100644 --- a/share/docker/openfast_ubuntu/Dockerfile +++ b/share/docker/openfast_ubuntu/Dockerfile @@ -50,10 +50,11 @@ WORKDIR /openfast/build # will require about 6GB of memory. Otherwise, the gfortran compiler will exit with an # "internal error" ENV FC=/usr/bin/gfortran -ARG CMAKE_OPTIONS="-DBUILD_TESTING=OFF -DDOUBLE_PRECISION=ON -DCMAKE_BUILD_TYPE=RELEASE" +ARG CMAKE_OPTIONS="-DBUILD_TESTING=OFF -DBUILD_FASTFARM=ON -DDOUBLE_PRECISION=ON -DCMAKE_BUILD_TYPE=RELEASE" RUN cmake .. ${CMAKE_OPTIONS} ARG BUILD_CORES=4 +RUN make -j${BUILD_CORES} FAST.Farm RUN make -j${BUILD_CORES} install # Build stage 2: provides built openfast in a small image.