-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(build): Add builder image Dockerfile for building kepler with l…
…ibbpf (#1110) - Adds Dockerfile.builder which installs everything required to build kepler code - Updated github workflow to build and push the builder image Signed-off-by: Vimal Kumar <[email protected]> Signed-off-by: Huamin Chen <[email protected]>
- Loading branch information
Showing
2 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM registry.access.redhat.com/ubi9/go-toolset:1.20 as builder | ||
|
||
USER 0 | ||
|
||
RUN yum -y install yum-utils | ||
RUN yum-config-manager --enable ubi-9-baseos-source | ||
|
||
WORKDIR /elfutils-source | ||
RUN yumdownloader --source elfutils | ||
RUN yum -y install cpio | ||
RUN rpm2cpio elfutils-0.189-3.el9.src.rpm | cpio -iv | ||
RUN tar xjvf elfutils-0.189.tar.bz2 | ||
WORKDIR /elfutils-source/elfutils-0.189 | ||
RUN ./configure --disable-debuginfod | ||
RUN make install | ||
|
||
|
||
WORKDIR /libbpf-source | ||
RUN yumdownloader --source libbpf | ||
RUN rpm2cpio libbpf-1.2.0-1.el9.src.rpm | cpio -iv | ||
RUN tar xf ./linux-*el9.tar.xz | ||
WORKDIR /libbpf-source/linux-5.14.0-333.el9/tools/lib/bpf | ||
RUN make install_headers | ||
RUN prefix=/usr BUILD_STATIC_ONLY=y make install | ||
WORKDIR /libbpf-source/linux-5.14.0-333.el9/tools/bpf | ||
RUN make bpftool | ||
|
||
RUN yum -y install clang | ||
|
||
# enable EPEL and install cpuid | ||
RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm | ||
RUN yum install -y cpuid | ||
RUN yum clean all |