microsoft-foundry / microsoft-foundry/foundry-samples
Bug: Docker build fails due to missing read_cosmos_data.py in migration directory
@brandom-msft is already working on this.
Since Jun 19, 2026.
- Dominant language
- Bicep
- Stars
- 445
- Forks
- 494
- Avg merge
- 11h 35m
- Merged PRs (30d)
- 38
Description
Summary
The Docker build process fails at Step 8/17 because the file read_cosmos_data.py is missing from the migration directory, although it is referenced in the Dockerfile.
Steps to Reproduce
Navigate to the migration directory: cd foundry-samples/migration
Run the authentication and build script: ./setup-azure-auth.sh
Observe the build error during the Docker image creation.
Observed Behavior
The build fails with the following error message:
COPY failed: file not found in build context or excluded by .dockerignore: stat read_cosmos_data.py: file does not exist
Expected Behavior
The Docker image should build successfully. All files referenced in the Dockerfile (specifically read_cosmos_data.py) should be present in the repository or the reference should be removed if the file is no longer required.
Environment
OS: Ubuntu 24.04 LTS
Docker Version: 28.2.2
Repository Branch: main
Additional Context
A search of the repository history and current structure confirms that read_cosmos_data.py is not present anywhere in the project, suggesting a mismatch between the Dockerfile and the available source files.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.