-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile.fedora
64 lines (56 loc) · 1.48 KB
/
Dockerfile.fedora
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
60
61
62
63
64
# Fedora-based Docker build
###########################
FROM fedora:36 AS fetk_base_fedora
RUN dnf -y groupinstall 'Development Tools' && \
dnf -y install \
unzip \
g++ \
cmake3 \
git \
wget \
arpack-devel \
arpack-static \
f2c \
eigen3-devel \
boost-devel \
python3-pip \
python3-devel \
openblas-serial64 \
openblas-static \
openblas-devel \
lapack-devel \
lapack-static \
suitesparse-devel \
suitesparse-static \
&& \
g++ --version && \
ln -s /usr/bin/cmake3 /usr/local/bin/cmake && \
wget http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz && \
gunzip metis-5.1.0.tar.gz && \
tar -xf metis-5.1.0.tar && \
cd metis-5.1.0 && \
make config prefix=/usr/local && \
make install && \
/bin/true
#########################################
FROM fetk_base_fedora
ARG CREATE_PACKAGE=FALSE
ARG FETK_STATIC_BUILD=ON
ARG MAKEJOBS="-j"
COPY cmake /src/cmake
COPY gamer /src/gamer
COPY maloc /src/maloc
COPY mc /src/mc
COPY punc /src/punc
COPY CMakeLists.txt /src/CMakeLists.txt
COPY VERSION /src/VERSION
RUN cd /src && \
export CC=gcc && \
mkdir build && \
cd build && \
cmake \
-DCREATE_PACKAGE:BOOL=${CREATE_PACKAGE} \
-DFETK_STATIC_BUILD:BOOL=${FETK_STATIC_BUILD} \
.. && \
make ${MAKEJOBS} install && \
if [ "${CREATE_PACKAGE,,}" = true ]; then cpack; fi