nv-morpheus/Morpheus

[BUG]: `doca.sh` not found when building Docker container

Opened this issue · 0 comments

Version

24.06

Which installation method(s) does this occur on?

Docker

Describe the bug.

Dockerfile can't find ./docker/optional_deps/doca.sh causing failure when building docker container using build_container_dev.sh or build_container_release.sh.

Minimum reproducible example

./docker/build_container_dev.sh

Relevant log output

Click here to see error details

Building morpheus: with args...
CUDA_MAJOR_VER : 12
CUDA_MINOR_VER : 1
CUDA_REV_VER : 1
FROM_IMAGE : nvidia/cuda
LINUX_DISTRO : ubuntu
LINUX_VER : 22.04
MORPHEUS_ROOT_HOST : .
MORPHEUS_SUPPORT_DOCA: OFF
PYTHON_VER : 3.10

COMMAND: docker build -t morpheus:dev-240614 --target development --build-arg CUDA_MAJOR_VER=12 --build-arg CUDA_MINOR_VER=1 --build-arg CUDA_REV_VER=1 --build-arg FROM_IMAGE=nvidia/cuda --build-arg LINUX_DISTRO=ubuntu --build-arg LINUX_VER=22.04 --build-arg MORPHEUS_ROOT_HOST=. --build-arg MORPHEUS_SUPPORT_DOCA=OFF --build-arg PYTHON_VER=3.10 --network=host -f /home/nfs/yuchenz/projects/test/morpheus/docker/Dockerfile .
Note: add '--progress plain' to DOCKER_EXTRA_ARGS to show all container build output
[+] Building 1.5s (19/24)
=> [internal] load .dockerignore 0.0s
=> => transferring context: 268B 0.0s
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 12.80kB 0.0s
=> resolve image config for docker.io/docker/dockerfile:1.3 0.6s
=> CACHED docker-image://docker.io/docker/dockerfile:1.3@sha256:42399d4635eddd7a9b8a24be879d2f9a930d0ed040a61324cfdf59ef1357b3b2 0.0s
=> [internal] load metadata for docker.io/condaforge/mambaforge:latest 0.4s
=> [internal] load metadata for docker.io/nvidia/cuda:12.1.1-base-ubuntu22.04 0.5s
=> [base 1/6] FROM docker.io/nvidia/cuda:12.1.1-base-ubuntu22.04@sha256:457a4076c56025f51217bff647ca631c7880ad3dbf546b03728ba98297ebbc22 0.0s
=> FROM docker.io/condaforge/mambaforge:latest@sha256:9c9310ac23f44a86b33c635014a80901112dca1175130b2d9948913755a7bd1d 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 338B 0.0s
=> CACHED [base 2/6] RUN rm -f /etc/apt/apt.conf.d/docker-clean 0.0s
=> CACHED [base 3/6] RUN --mount=type=cache,id=apt,target=/var/cache/apt apt-get update && apt-get upgrade -y && apt-get install --no-install-recommends -y bc build-e 0.0s
=> CACHED [base 4/6] WORKDIR /workspace 0.0s
=> CACHED [base 5/6] COPY --from=condaforge/mambaforge:latest /opt/conda /opt/conda 0.0s
=> CACHED [base 6/6] RUN --mount=type=cache,id=conda_pkgs,target=/opt/conda/pkgs,sharing=locked conda config --set ssl_verify false && conda config --add pkgs_dirs /opt/conda/pkgs && 0.0s
=> CACHED [conda_env 1/3] RUN --mount=type=cache,id=conda_pkgs,target=/opt/conda/pkgs,sharing=locked CONDA_ALWAYS_YES=true /opt/conda/bin/mamba create -n morpheus -c conda-forge pyt 0.0s
=> CACHED [conda_env 2/3] RUN source activate morpheus && conda config --env --add channels conda-forge && conda config --env --add channels nvidia && conda config --env --add channel 0.0s
=> CACHED [conda_env 3/3] COPY ./docker/entrypoint.sh ./docker/ 0.0s
=> CACHED [base_extended 1/2] COPY ./docker/optional_deps docker/optional_deps 0.0s
=> ERROR [base_extended 2/2] RUN --mount=type=cache,id=doca,target=/tmp/doca,sharing=locked --mount=type=cache,id=apt,target=/var/cache/apt ./docker/optional_deps/doca.sh /tmp/doca 0.1s

[base_extended 2/2] RUN --mount=type=cache,id=doca,target=/tmp/doca,sharing=locked --mount=type=cache,id=apt,target=/var/cache/apt ./docker/optional_deps/doca.sh /tmp/doca:
#0 0.089 /bin/bash: line 1: ./docker/optional_deps/doca.sh: No such file or directory


Dockerfile:160

159 | # Install DOCA (If requested)
160 | >>> RUN --mount=type=cache,id=doca,target=/tmp/doca,sharing=locked
161 | >>> --mount=type=cache,id=apt,target=/var/cache/apt
162 | >>> ./docker/optional_deps/doca.sh /tmp/doca
163 |

ERROR: failed to solve: process "/bin/bash -c ./docker/optional_deps/doca.sh /tmp/doca" did not complete successfully: exit code: 127

Full env printout

Click here to see environment details

[Paste the results of print_env.sh here, it will be hidden by default]

Other/Misc.

No response

Code of Conduct

  • I agree to follow Morpheus' Code of Conduct
  • I have searched the open bugs and have found no duplicates for this bug report