-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
65 lines (56 loc) · 2.07 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
60
61
62
63
64
65
FROM --platform=linux/x86_64 quay.io/pypa/manylinux_2_28_x86_64:latest AS manylinux_2_28
COPY config.txt /tmp/config.txt
RUN \
--mount=type=tmpfs,target=/var/cache/dnf \
--mount=type=tmpfs,target=/var/lib/dnf \
dnf config-manager --set-enabled powertools && \
dnf -y --enablerepo=powertools install eigen3-devel && \
dnf -y clean all
#全部入り
FROM manylinux_2_28 AS openjij-builder
RUN \
--mount=type=bind,target=/etc/yum.repos.d/oneAPI.repo,source=oneAPI.repo \
--mount=type=tmpfs,target=/var/cache/dnf \
--mount=type=tmpfs,target=/var/lib/dnf \
dnf -y repository-packages "oneAPI" list --available && \
dnf -y install intel-basekit intel-hpckit && \
dnf -y clean all
#軽量バージョン
FROM manylinux_2_28 AS openjij-builder-minimum
RUN \
--mount=type=bind,target=/etc/yum.repos.d/oneAPI.repo,source=oneAPI.repo \
--mount=type=tmpfs,target=/var/cache/dnf \
--mount=type=tmpfs,target=/var/lib/dnf \
dnf -y install \
intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic \
intel-oneapi-compiler-fortran \
intel-oneapi-mkl \
intel-oneapi-mkl-devel \
intel-oneapi-openmp && \
dnf -y clean all
#古いバージョン
FROM --platform=linux/x86_64 quay.io/pypa/manylinux2014_x86_64:latest AS manylinux2014
COPY config.txt /tmp/config.txt
RUN \
--mount=type=tmpfs,target=/var/cache/yum \
--mount=type=tmpfs,target=/var/lib/yum \
yum -y install eigen3-devel
#全部入り
FROM manylinux2014 AS openjij-builder-old
RUN \
--mount=type=bind,target=/etc/yum.repos.d/oneAPI.repo,source=oneAPI.repo \
--mount=type=tmpfs,target=/var/cache/yum \
--mount=type=tmpfs,target=/var/lib/yum \
yum -y install intel-basekit intel-hpckit
#軽量バージョン
FROM manylinux2014 AS openjij-builder-old-minimum
RUN \
--mount=type=bind,target=/etc/yum.repos.d/oneAPI.repo,source=oneAPI.repo \
--mount=type=tmpfs,target=/var/cache/yum \
--mount=type=tmpfs,target=/var/lib/yum \
yum -y install \
intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic \
intel-oneapi-compiler-fortran \
intel-oneapi-mkl \
intel-oneapi-mkl-devel \
intel-oneapi-openmp