Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] deployDockerImageToACR does not handle context directory for the build #218

Open
markmassad opened this issue Jan 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@markmassad
Copy link

markmassad commented Jan 7, 2025

Describe the bug
The deployDockerImageToACR() function errors out due to directory not found. This is the context directory for the build. Here is the command that errors out line 649 of deploy.sh

az acr build --only-show-errors
--registry $containerRegistry
--file $scriptDir/../docker/Dockerfile-backend
--image $GRAPHRAG_IMAGE
$scriptDir/../

The problem is in the $scriptDir/../ as it produces the following error:
'/mnt/c/Dev/Projects/CES/graphrag-accelerator-main/infra/../' doesn't exist.

To Reproduce
Steps to reproduce the behavior:
I have the GIT project at c:\Dev\Projects\CES\graphragMin\

Workaround is to run from the base directory "infra":
az acr build --registry $containerRegistry --file ../docker/Dockerfile-backend --image graphrag:backend ../

@markmassad markmassad added the bug Something isn't working label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant