-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release: build multi-arch docker image (#50)
* release: build multi-arch docker image * docker: add entrypoint that mounts debugfs if it's not mounted
- Loading branch information
Showing
3 changed files
with
61 additions
and
0 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,18 @@ | ||
# syntax=docker.io/docker/dockerfile:1.7-labs | ||
FROM ubuntu:24.04 | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends binutils ca-certificates | ||
|
||
COPY docker/entrypoint.sh /entrypoint.sh | ||
COPY --parents agent-** /tmp/ | ||
|
||
RUN mv /tmp/agent-$(uname -p)/otel-profiling-agent /usr/local/bin/otel-profiling-agent \ | ||
&& chmod +x /usr/local/bin/otel-profiling-agent \ | ||
&& rm -rf /tmp/agent* | ||
|
||
RUN apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] | ||
CMD ["/usr/local/bin/otel-profiling-agent"] |
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,11 @@ | ||
#! /usr/bin/env sh | ||
set -e | ||
|
||
# Wrapper to ensure debugfs is mounted | ||
|
||
# Mount debugfs if not already mounted | ||
if [ ! -d /sys/kernel/debug/tracing ]; then | ||
mount -t debugfs none /sys/kernel/debug | ||
fi | ||
|
||
exec "$@" |