Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel: Build a perf package for 4.11/4.9 kernels
Extract the perf binary from the kernel package and create a new perf package for each kernel. The perf package uses the same tags as the kernel package and only contains the perf binary under /usr/bin. The perf package can be added to the init section or included as a stage in a multi-stage build for other packages. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
- Loading branch information
Showing
2 changed files
with
42 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# This Dockerfile extracts the perf utility from a kernel package and | ||
# places it into a scratch image | ||
ARG IMAGE | ||
FROM ${IMAGE} AS kernel | ||
|
||
FROM scratch | ||
ENTRYPOINT [] | ||
CMD [] | ||
WORKDIR / | ||
COPY --from=kernel /perf /usr/bin/perf |
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