-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile.rhel8prereq
57 lines (49 loc) · 1.85 KB
/
Dockerfile.rhel8prereq
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
FROM registry.access.redhat.com/ubi8
# The host RHEL 8 machine must have a subscription-manager registration
# and the following repos enabled subscription-manager repos --enable <repo>
# - rhel-8-for-x86_64-appstream-rpms (default for cmake, llvm-toolset.x86_64)
# - codeready-builder-for-rhel-8-x86_64-rpms (for lttng-ust-devel)
# Also buildah/podman must be in rooted mode to acces the above host repos.
# Install the base toolchain we need to build anything (clang, cmake, make and the like)
RUN yum updateinfo && \
yum install -y cmake \
llvm-toolset.x86_64 \
llvm-devel.x86_64 \
lldb-devel.x86_64 \
wget \
which \
python36 \
make && \
yum clean all
# Install tools used by the source-build build. procps-ng is for pkill, used in smoke-test.sh
RUN yum updateinfo && \
yum install -y git \
zip \
tar \
patch \
procps-ng && \
yum clean all
# Dependencies of runtime.
RUN yum updateinfo && \
yum install -y libicu-devel \
libuuid-devel \
libcurl-devel \
openssl-devel && \
yum clean all
# Dependencies of runtime from codeready
RUN yum updateinfo && \
yum install -y --enablerepo=codeready-builder-for-rhel-8-x86_64-rpms lttng-ust-devel.x86_64 && \
yum clean all
# Dependencies of runtime from EPEL (Extra Packages fro Enterprise Linux)
RUN yum updateinfo && \
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
yum install -y libunwind-devel.x86_64 && \
yum clean all
#
# Define the en_US.UTF-8 locale (without this, processes MSBuild trys to launch complain about
# being unable to use the en_US.UTF-8 locale which can cause downstream failures if you capture
# the output of a run)
RUN yum updateinfo && \
yum install -y glibc-locale-source glibc-langpack-en && \
yum clean all
RUN localedef -c -i en_US -f UTF-8 en_US.UTF-8