-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
99 additions
and
221 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
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,30 @@ | ||
# Use Ubuntu 22.04 (Jammy Jellyfish) as the base image | ||
FROM ubuntu:22.04 | ||
|
||
# Avoid prompts from apt | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Update and install wget and software-properties-common (for add-apt-repository) | ||
RUN apt-get update && apt-get install -y \ | ||
libgl1-mesa-glx \ | ||
libgl1-mesa-dri \ | ||
software-properties-common \ | ||
wget \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Add necessary repository for dependencies, if any (adjust as necessary) | ||
# For example, universe might contain some dependencies | ||
RUN add-apt-repository universe | ||
|
||
# Download the orbit package from the provided URL | ||
RUN wget https://github.com/google/orbit/releases/download/nightly-2024-03-21/orbit_1.86dev-478-g3493933c5-1.jammy1_amd64.deb | ||
|
||
# Install the package with dpkg, then use apt-get to install any missing dependencies | ||
# This step assumes all dependencies are available in the repositories added earlier | ||
RUN dpkg -i orbit_1.86dev-478-g3493933c5-1.jammy1_amd64.deb || apt-get update && apt-get install -f -y | ||
|
||
# Clean up | ||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
# Define the container's entry point | ||
ENTRYPOINT ["vglrun /opt/orbitprofiler/Orbit"] |
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,34 @@ | ||
# Use an Ubuntu base image | ||
FROM ubuntu:22.04 | ||
|
||
# Avoid warnings by switching to noninteractive | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Install build dependencies, X11 libraries, CA certificates, and Wayland protocols | ||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
cmake \ | ||
git \ | ||
libx11-dev \ | ||
libgl1-mesa-dev \ | ||
libgtk-3-dev \ | ||
xorg-dev \ | ||
ca-certificates \ | ||
wayland-protocols \ | ||
--no-install-recommends \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Clone the Tracy Profiler repository | ||
RUN git clone --depth 1 https://github.com/wolfpld/tracy.git | ||
|
||
# Build Tracy Profiler | ||
WORKDIR /tracy/profiler/build/unix | ||
RUN cmake ../.. && make | ||
|
||
# Use the `entrypoint.sh` to start the profiler | ||
COPY entrypoint.sh /entrypoint.sh | ||
RUN chmod +x /entrypoint.sh | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
|
||
# Reset the frontend to its default value | ||
ENV DEBIAN_FRONTEND= |
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,8 @@ | ||
#!/bin/bash | ||
# entrypoint.sh | ||
|
||
# Use the host's display server for the GUI | ||
export DISPLAY=host.docker.internal:0 | ||
|
||
# Start Tracy Profiler | ||
./tracy/profiler/build/unix/Tracy-release |
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