Bugfixes for test failure (#1106)
- Bugfixes - Update test instructions using docker
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Use a base image
|
||||
FROM ubuntu:22.04
|
||||
FROM <rocm_build_image>
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /app
|
||||
@@ -18,33 +18,15 @@ 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 libsqlite3-dev
|
||||
|
||||
# Update pip
|
||||
RUN apt remove -y python3-wheel
|
||||
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
||||
RUN python3.10 get-pip.py
|
||||
RUN python3.10 -m pip install --upgrade pip setuptools wheel
|
||||
|
||||
# Set Python 3.10 as the default python3
|
||||
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1
|
||||
|
||||
# Remove blinker python package
|
||||
RUN apt-get remove -y python3-blinker
|
||||
|
||||
# Install rocm
|
||||
# Define custom version
|
||||
ARG DEB_FILE=""
|
||||
ARG AMDGPU_BUILD=""
|
||||
ARG ROCM_BUILD=""
|
||||
RUN curl -O "https://artifactory-cdn.amd.com/artifactory/list/amdgpu-deb/${DEB_FILE}"
|
||||
RUN apt-get install -y "./${DEB_FILE}"
|
||||
RUN amdgpu-repo --amdgpu-build="${AMDGPU_BUILD}" --rocm-build="compute-rocm-dkms-no-npi-hipclang/${ROCM_BUILD}"
|
||||
RUN DEBIAN_FRONTEND=noninteractive TZ="America/Toronto" amdgpu-install --yes --usecase=rocm
|
||||
RUN python3.10 -m venv venv
|
||||
ENV PATH="venv/bin:$PATH"
|
||||
RUN python -m pip install --upgrade pip
|
||||
|
||||
# Install any dependencies specified in requirements.txt
|
||||
WORKDIR /app/projects/rocprofiler-compute
|
||||
COPY projects/rocprofiler-compute/requirements.txt /app/projects/rocprofiler-compute/requirements.txt
|
||||
COPY projects/rocprofiler-compute/requirements-test.txt /app/projects/rocprofiler-compute/requirements-test.txt
|
||||
RUN python -m pip install -r requirements.txt -r requirements-test.txt
|
||||
|
||||
# Run interactive bash shell
|
||||
CMD ["/bin/bash", "-c", "\
|
||||
cd /app/projects/rocprofiler-compute \
|
||||
&& python3.10 -m pip install -r requirements.txt -r requirements-test.txt \
|
||||
&& exec /bin/bash \
|
||||
"]
|
||||
CMD ["/bin/bash"]
|
||||
|
||||
Reference in New Issue
Block a user