-
Notifications
You must be signed in to change notification settings - Fork 40
/
Dockerfile.compile.template
50 lines (45 loc) · 1.4 KB
/
Dockerfile.compile.template
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
{% extends "Dockerfile.common.compile.template" %}
{% block install %}
{% set ver = get_ubi_version(Distro) | assert_not_none(
'ERROR: Unsupported Red Hat distribution - ' + Distro)
%}
COPY redhat.repo /etc/yum.repos.d/
COPY pki/entitlement/ /etc/pki/entitlement/
COPY redhat-uep.pem /etc/rhsm/ca/
# NOTE: meson v1.2.* has a bug that leads to Gramine build failure because of not found `libcurl.a`
RUN rm -rf /etc/rhsm-host \
&& microdnf install -y subscription-manager \
&& rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ver}}.noarch.rpm \
&& subscription-manager repos --enable codeready-builder-for-rhel-{{ver}}-x86_64-rpms \
&& microdnf install -y \
autoconf \
bison \
cmake \
elfutils-libelf-devel \
flex \
gawk \
gcc-c++ \
git \
httpd \
kernel-devel \
libevent-devel \
make \
nasm \
ncurses-devel \
ninja-build \
openssl-devel \
patch \
pkg-config \
protobuf-c-compiler \
protobuf-c-devel \
protobuf-compiler \
protobuf-devel \
python3 \
python3-cryptography \
python3-pip \
python3-protobuf \
python3-voluptuous \
rpm-build \
wget \
&& /usr/bin/python3 -B -m pip install 'tomli>=1.1.0' 'tomli-w>=0.4.0' 'meson>=0.56,!=1.2.*'
{% endblock %}