Skip to content

fix(docker): resolve compose file from repository root - #394

Open
promiseeuler wants to merge 1 commit into
peaqnetwork:devfrom
promiseeuler:fix/docker-compose-path
Open

fix(docker): resolve compose file from repository root#394
promiseeuler wants to merge 1 commit into
peaqnetwork:devfrom
promiseeuler:fix/docker-compose-path

Conversation

@promiseeuler

Copy link
Copy Markdown

Summary

  • resolve the repository root from the script location
  • pass the Compose file and project directory explicitly
  • preserve forwarded command arguments

Problem

While using the documented Docker workflow, I found that ./scripts/docker_run.sh cargo check exits immediately with:

no configuration file provided: not found

The helper changes to the repository root, while the Compose file is stored at scripts/docker-compose.yml. Compose therefore cannot discover the project configuration.

Testing

  • bash -n scripts/docker_run.sh
  • docker-compose --project-directory "$PWD" -f "$PWD/scripts/docker-compose.yml" config
  • ./scripts/docker_run.sh cargo --versioncargo 1.82.0 (8f40fc59f 2024-08-21)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant