When trying to build the Morpheus Docker container using the runtime target, the build fails at the git_clone stage.
The relevant line in the error log is the following:
#0 0.570 fatal: not a git repository: /opt/host_repo/../../.git/modules/morpheus
I believe the issue is in Dockerfile lines 298-300. This command does a local clone from an existing cloned morpheus repo located at MORPHEUS_ROOT_HOST using the info in its .git/ directory. However, when morpheus is a submodule, the .git file points to the relative path ../../.git/modules/morpheus, which doesn't get mounted to the container and therefore doesn't exist.
Thanks for submitting this issue - our team has been notified and we'll get back to you as soon as we can!
In the meantime, feel free to add any relevant information to this issue.
Version
24.10
Which installation method(s) does this occur on?
Docker
Describe the bug.
When trying to build the Morpheus Docker container using the
runtime
target, the build fails at thegit_clone
stage.The relevant line in the error log is the following:
I believe the issue is in Dockerfile lines 298-300. This command does a local clone from an existing cloned morpheus repo located at
MORPHEUS_ROOT_HOST
using the info in its.git/
directory. However, when morpheus is a submodule, the.git
file points to the relative path../../.git/modules/morpheus
, which doesn't get mounted to the container and therefore doesn't exist.Minimum reproducible example
From within the submodule root:
Relevant log output
Click here to see error details
Full env printout
Click here to see environment details
Other/Misc.
Relevant PR and comment:
Code of Conduct