Skip to content

Bug: Docker build fails due to missing read_cosmos_data.py in migration directory #626

@normalian

Description

@normalian

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions