-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
59 lines (51 loc) · 1.78 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM ubuntu:latest
LABEL org.opencontainers.image.description "Nystrom Boundary Integral library"
LABEL org.opencontainers.image.source https://github.com/mjcarley/nbi
LABEL org.opencontainers.image.licenses GPL
## all these packages are required for compiling, etc, except for
##
## libblas-dev, liblapack-dev: BLAS and LAPACK
## git: downloading packages
## bc: used in an NBI example to set wavenumber from rotor data
RUN apt-get update && apt-get install -y build-essential libgtk2.0-dev \
pkg-config libtool autoconf gcc gfortran libblas-dev liblapack-dev \
git libgmsh-dev cmake bc
## PETSc needs to be installed without MPI, so Ubuntu packages are not
## suitable
RUN git clone -b release https://gitlab.com/petsc/petsc.git petsc
WORKDIR petsc
RUN git pull
RUN git checkout v3.18.5
## install to /usr to make it easy to find later
RUN ./configure --with-mpi=0 --with-scalar-type=real --with-threadsafety \
--with-debugging=0 --with-log=0 --with-openmp --prefix=/usr
RUN make
RUN make install
## wrappers for BLAS and LAPACK libraries, with a config file for
## setting flags
RUN git clone https://github.com/mjcarley/blaswrap.git
WORKDIR blaswrap
RUN bash autogen.sh
RUN ./configure
RUN make
RUN make install
WORKDIR /
## this is required by AGG
RUN git clone https://github.com/wo80/Triangle/
WORKDIR Triangle/src
RUN mkdir build
WORKDIR build
RUN cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=Release ..
RUN make install
WORKDIR /
## main set of libraries, including submodules distributed with NBI
RUN git clone --recursive https://github.com/mjcarley/nbi
WORKDIR nbi
RUN bash autogen.sh
RUN ./configure --prefix=/usr/
RUN make
RUN make install
WORKDIR /nbi/examples
## run one Laplace and one Helmholtz example as a test of installation
RUN ./docker-laplace
RUN ./docker-helmholtz