-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate eBPF files as part of the build process (#1666)
- Loading branch information
1 parent
837114e
commit 998ab56
Showing
244 changed files
with
36,289 additions
and
15,233 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 was deleted.
Oops, something went wrong.
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
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 was deleted.
Oops, something went wrong.
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,16 +1,15 @@ | ||
# Build the autoinstrumenter binary | ||
FROM golang:1.23 AS builder | ||
FROM ghcr.io/grafana/beyla-ebpf-generator:main AS builder | ||
|
||
# TODO: embed software version in executable | ||
|
||
ARG TARGETARCH | ||
|
||
ENV GOARCH=$TARGETARCH | ||
|
||
WORKDIR /opt/app-root | ||
WORKDIR /src | ||
|
||
RUN apt-get update | ||
RUN apt-get install -qy ca-certificates | ||
RUN apk add make git bash | ||
|
||
# Copy the go manifests and source | ||
COPY .git/ .git/ | ||
|
@@ -26,6 +25,7 @@ COPY NOTICE NOTICE | |
COPY third_party_licenses.csv third_party_licenses.csv | ||
|
||
# Build | ||
RUN /generate.sh | ||
RUN make compile | ||
|
||
# Create final image from minimal + built binary | ||
|
@@ -35,11 +35,11 @@ LABEL maintainer="Grafana Labs <[email protected]>" | |
|
||
WORKDIR / | ||
|
||
COPY --from=builder /opt/app-root/bin/beyla . | ||
COPY --from=builder /opt/app-root/LICENSE . | ||
COPY --from=builder /opt/app-root/NOTICE . | ||
COPY --from=builder /opt/app-root/third_party_licenses.csv . | ||
COPY --from=builder /src/bin/beyla . | ||
COPY --from=builder /src/LICENSE . | ||
COPY --from=builder /src/NOTICE . | ||
COPY --from=builder /src/third_party_licenses.csv . | ||
|
||
COPY --from=builder /etc/ssl/certs /etc/ssl/certs | ||
|
||
ENTRYPOINT [ "/beyla" ] | ||
ENTRYPOINT [ "/beyla" ] |
Oops, something went wrong.