Fix docker testing instructions (#813)

[ROCm/rocprofiler-compute commit: ccb34e8a91]
This commit is contained in:
vedithal-amd
2025-07-15 17:06:22 -04:00
committed by GitHub
parent 10ead63735
commit 9a442748ea
3 changed files with 4 additions and 46 deletions
@@ -1,27 +0,0 @@
# Use a base image
FROM rocm/dev-ubuntu-22.04
# Set the working directory
WORKDIR /app
# Update package list and install prerequisites
RUN apt-get update && apt-get install -y \
software-properties-common cmake locales git \
&& add-apt-repository ppa:deadsnakes/ppa \
&& apt-get update
# Allows running git commands in /app
RUN git config --global --add safe.directory /app
# Install Python 3.10 and pip
RUN apt-get install -y python3.10 python3.10-venv python3.10-dev python3-pip libsqlite3-dev
# Set Python 3.10 as the default python3
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1
# Install any dependencies specified in requirements.txt
# Run interactive bash shell
CMD ["/bin/bash", "-c", "\
python3 -m pip install -r requirements.txt -r requirements-test.txt \
&& exec /bin/bash \
"]
@@ -1,17 +0,0 @@
services:
test:
build:
context: ../
dockerfile: docker/Dockerfile.test
devices:
- /dev/kfd
- /dev/dri
security_opt:
- seccomp:unconfined
volumes:
- ../:/app
- ../../rocprofiler-sdk:/rocprofiler-sdk
ports:
- 8050:8050
tty: true
stdin_open: true