Docker environment for testing (#515)
* Add instructions on how to use Docker for manual and automatic testing
[ROCm/rocprofiler-compute commit: 5e90797b24]
Este cometimento está contido em:
cometido por
Vignesh Edithal
ascendente
5a7cb724ce
cometimento
69283cb155
@@ -0,0 +1,29 @@
|
||||
# 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 \
|
||||
&& add-apt-repository ppa:deadsnakes/ppa \
|
||||
&& apt-get update
|
||||
|
||||
# Generate the desired locale
|
||||
RUN locale-gen en_US.UTF-8
|
||||
|
||||
# Install Python 3.10 and pip
|
||||
RUN apt-get install -y python3.10 python3.10-venv python3.10-dev python3-pip
|
||||
|
||||
# Set Python 3.10 as the default python3
|
||||
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1
|
||||
|
||||
# Copy your application code to the container
|
||||
COPY . .
|
||||
|
||||
# Install any dependencies specified in requirements.txt
|
||||
RUN pip3 install --no-cache-dir -r requirements.txt -r requirements-test.txt
|
||||
|
||||
# Command to run your application
|
||||
CMD ["/bin/bash"]
|
||||
@@ -0,0 +1,10 @@
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: ../../
|
||||
dockerfile: utils/docker_env/Dockerfile
|
||||
devices:
|
||||
- /dev/kfd
|
||||
- /dev/dri
|
||||
security_opt:
|
||||
- seccomp:unconfined
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador