diff --git a/docker/README.md b/docker/README.md index ecf2d954a3..c5b0608c42 100644 --- a/docker/README.md +++ b/docker/README.md @@ -9,5 +9,5 @@ sudo docker build -f {DOCKER_FILE_NAME}.dockerfile -t {DOCKER_IMAGE_NAME} . ## Run - docker ``` -sudo docker run -it --device=/dev/kfd --device=/dev/dri --cap-add=SYS_RAWIO --device=/dev/mem --group-add video --network host --env DISPLAY=unix$DISPLAY --privileged --volume $XAUTH:/root/.Xauthority --volume /tmp/.X11-unix/:/tmp/.X11-unix {DOCKER_IMAGE_NAME} +sudo docker run -it --device=/dev/kfd --device=/dev/dri --cap-add=SYS_RAWIO --device=/dev/mem --group-add video --network host --privileged {DOCKER_IMAGE_NAME} ``` \ No newline at end of file diff --git a/docker/rocDecode-on-ubuntu20.dockerfile b/docker/rocDecode-on-ubuntu20.dockerfile index 5dfd8019f9..1e8f2d86cf 100644 --- a/docker/rocDecode-on-ubuntu20.dockerfile +++ b/docker/rocDecode-on-ubuntu20.dockerfile @@ -8,11 +8,10 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get -y install gcc g++ cmake pkg-config g # install ROCm RUN DEBIAN_FRONTEND=noninteractive apt-get -y install initramfs-tools libnuma-dev wget keyboard-configuration && \ wget https://repo.radeon.com/amdgpu-install/6.1/ubuntu/focal/amdgpu-install_6.1.60100-1_all.deb && \ - sudo apt-get install ./amdgpu-install_6.1.60100-1_all.deb && \ + sudo apt-get install -y ./amdgpu-install_6.1.60100-1_all.deb && \ sudo amdgpu-install -y --usecase=multimediasdk,rocm --no-32 WORKDIR /workspace -# clone rocDecode and build -RUN git clone https://github.com/ROCm/rocDecode.git && \ - cd rocDecode && mkdir build && cd build && cmake .. && make -j8 && sudo make install \ No newline at end of file +# install rocDecode package +RUN DEBIAN_FRONTEND=noninteractive sudo apt install -y rocdecode rocdecode-dev rocdecode-test \ No newline at end of file diff --git a/docker/rocDecode-on-ubuntu22.dockerfile b/docker/rocDecode-on-ubuntu22.dockerfile index 02ae4db363..5eb98b612e 100644 --- a/docker/rocDecode-on-ubuntu22.dockerfile +++ b/docker/rocDecode-on-ubuntu22.dockerfile @@ -8,11 +8,10 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get -y install gcc g++ cmake pkg-config g # install ROCm RUN DEBIAN_FRONTEND=noninteractive apt-get -y install initramfs-tools libnuma-dev wget keyboard-configuration && \ wget https://repo.radeon.com/amdgpu-install/6.1/ubuntu/jammy/amdgpu-install_6.1.60100-1_all.deb && \ - sudo apt-get install ./amdgpu-install_6.1.60100-1_all.deb && \ + sudo apt-get install -y ./amdgpu-install_6.1.60100-1_all.deb && \ sudo amdgpu-install -y --usecase=multimediasdk,rocm --no-32 WORKDIR /workspace -# clone rocDecode and build -RUN git clone https://github.com/ROCm/rocDecode.git && \ - cd rocDecode && mkdir build && cd build && cmake .. && make -j8 && sudo make install \ No newline at end of file +# install rocDecode package +RUN DEBIAN_FRONTEND=noninteractive sudo apt install -y rocdecode rocdecode-dev rocdecode-test \ No newline at end of file