Skip to content

Commit

Permalink
cherry pick build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sverhoeven committed Oct 31, 2023
1 parent 20c44c1 commit c657142
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,18 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt clean && apt autoclean && apt update --fix-missing && apt upgrade -y && apt install -y libnetcdf-dev build-essential autoconf automake libtool gfortran gdb tzdata m4 git
WORKDIR /usr/src/sfincs
ARG SFINCS_VERSION=feature/48-extend-bmi-functionality
RUN git clone -b ${SFINCS_VERSION} --depth 1 https://github.com/Deltares/SFINCS .
RUN git clone -b ${SFINCS_VERSION} https://github.com/Deltares/SFINCS . \
&& git config --global user.email "[email protected]" && git config --global user.name "Your Name" \
&& git cherry-pick 2651b47b797c9acd05ccd8e6d737db19b0670217
WORKDIR /usr/src/sfincs/source
RUN chmod -R 777 autogen.sh
# -fallow-argument-mismatch needed for https://github.com/Unidata/netcdf-fortran/issues/212
ENV FCFLAGS="-fopenmp -O3 -fallow-argument-mismatch -w"
ENV FFLAGS="-fopenmp -O3 -fallow-argument-mismatch -w"
RUN autoreconf -ivf && ./autogen.sh && ./configure --disable-openacc && make && make install

# End of copy of Dockerfile at https://github.com/Deltares/SFINCS/blob/feature/48-extend-bmi-functionality/source/Dockerfile

# Inherit from the same base as sfincs to get compatible library versions
FROM ubuntu:jammy AS sfincs_bmi_container

Expand Down

0 comments on commit c657142

Please sign in to comment.