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

[CHEF-18291] Fix the kitchen failures on windows #4

Merged
merged 2 commits into from
Jan 22, 2025

Conversation

ashiqueps
Copy link

Description

The kitchen was failing when the kitchen-dokken was running on the windows machine where the docker host is remote. This PR fixes the issues with the kitchen-dokken driver on windows.

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

  • I have read the CONTRIBUTING document.
  • I have run the pre-merge tests locally and they pass.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • If Gemfile.lock has changed, I have used --conservative to do it and included the full output in the Description above.
  • All new and existing tests passed.
  • All commits have been signed-off for the Developer Certificate of Origin.

ashiqueps and others added 2 commits January 8, 2025 04:46

tar_io.rewind

Docker::Image.build_from_tar(tar_io)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What will be the size of tar_io? Everything is handled in memory. As tar_io is a StringIO, it may lead to high memory usage if memory is low in the system

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tar will contain only the Dockerfile and the authorized_keys file. 3584 is the length of the tar_io string created here.

@ashiqueps ashiqueps merged commit 31ea68b into main Jan 22, 2025
8 checks passed
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.

3 participants