Skip to content

dockerignore - ignore Windows build files#994

Merged
mehah merged 1 commit intoopentibiabr:mainfrom
gesior:docker-ignore-windows-build-files
Dec 16, 2024
Merged

dockerignore - ignore Windows build files#994
mehah merged 1 commit intoopentibiabr:mainfrom
gesior:docker-ignore-windows-build-files

Conversation

@gesior
Copy link
Contributor

@gesior gesior commented Dec 16, 2024

Description

docker build . transfers all files from OTC directory into build container as "build context".
Only files listed in .dockerignore are skipped.

Behavior

Actual

If you build multiple targets in Visual Studio and using CMake (ex. in CLion IDE) and then run docker build .
It may transfer up to 17 GB of data ("transferring context: 16.75GB") into Docker container, before it even start build process.
On Windows it may take few minutes, because there is a problem with files transfer speed Windows -> Linux.

Expected

Only files required to build and run OTC should be transferred into container.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

@sonarqubecloud
Copy link

@mehah mehah merged commit faa1f74 into opentibiabr:main Dec 16, 2024
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.

2 participants