-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker: find RPM provides from symvers directly
Using the RPM macros to generate the symbols provided by the currently running kernel takes a lot of time: every module is manually unpacked, read and processed. However, the same information is already available in the "/lib/modules/*/symvers*" file. We just have to parse it to generate output compatible with the existing infrastructure. In a quick test, this reduces the load time for the DRBD module from minutes to one second.
- Loading branch information
Showing
4 changed files
with
24 additions
and
8 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 |
---|---|---|
|
@@ -3,7 +3,7 @@ FROM $EXTRAPKGS as extrapkgs | |
# by checking for /pkgs we can cache that step | ||
# and prepare images that already contain the packages. | ||
RUN mkdir /pkgs | ||
RUN dnf install -y 'dnf-command(download)' && cd /pkgs && dnf download elfutils-libelf-devel kernel-rpm-macros && rm -f *.i686.rpm # !lbbuild | ||
RUN dnf install -y 'dnf-command(download)' && cd /pkgs && dnf download elfutils-libelf-devel && rm -f *.i686.rpm # !lbbuild | ||
|
||
FROM registry.access.redhat.com/ubi8/ubi | ||
MAINTAINER Roland Kammerer <[email protected]> | ||
|
@@ -39,7 +39,7 @@ RUN yum -y update-minimal --security --sec-severity=Important --sec-severity=Cri | |
COPY --from=extrapkgs /pkgs /pkgs | ||
RUN yum install -y /pkgs/*.rpm # !lbbuild | ||
# or | ||
# =lbbuild RUN curl -fsSL https://nexus.at.linbit.com/repository/lbbuild/from_rhel_repos.sh | bash -s -- elfutils-libelf-devel kernel-rpm-macros | ||
# =lbbuild RUN curl -fsSL https://nexus.at.linbit.com/repository/lbbuild/from_rhel_repos.sh | bash -s -- elfutils-libelf-devel | ||
|
||
RUN rm -rf /pkgs | ||
|
||
|
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ FROM $EXTRAPKGS as extrapkgs | |
# by checking for /pkgs we can cache that step | ||
# and prepare images that already contain the packages. | ||
RUN mkdir /pkgs | ||
RUN dnf install -y 'dnf-command(download)' && cd /pkgs && dnf download elfutils-libelf-devel kernel-rpm-macros && rm -f *.i686.rpm # !lbbuild | ||
RUN dnf install -y 'dnf-command(download)' && cd /pkgs && dnf download elfutils-libelf-devel && rm -f *.i686.rpm # !lbbuild | ||
|
||
FROM registry.access.redhat.com/ubi9/ubi | ||
MAINTAINER Roland Kammerer <[email protected]> | ||
|
@@ -37,7 +37,7 @@ RUN dnf -y update-minimal --security --sec-severity=Important --sec-severity=Cri | |
COPY --from=extrapkgs /pkgs /pkgs | ||
RUN dnf install -y /pkgs/*.rpm # !lbbuild | ||
# or | ||
# =lbbuild RUN curl -fsSL https://nexus.at.linbit.com/repository/lbbuild/from_rhel_repos.sh | bash -s -- elfutils-libelf-devel kernel-rpm-macros | ||
# =lbbuild RUN curl -fsSL https://nexus.at.linbit.com/repository/lbbuild/from_rhel_repos.sh | bash -s -- elfutils-libelf-devel | ||
|
||
RUN rm -rf /pkgs | ||
|
||
|
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