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

Avoid unneeded file copying #235

Open
htj opened this issue Aug 7, 2020 · 3 comments
Open

Avoid unneeded file copying #235

htj opened this issue Aug 7, 2020 · 3 comments

Comments

@htj
Copy link
Contributor

htj commented Aug 7, 2020

Currently vmx and vqfx (maybe more), copy the image files from the base directory into the docker directory.

This often means copying a few gigabytes of files. While disk space is fairly cheap, it seems silly, and just makes the build process take longer time.

AFAIK there is no reason that a seperate docker directory is needed. I suggest we can simply move the files in docker/* to the base directory and build directly from the files there. There is typically very few files in both directories anyway, so I don't think it will clutter.

Thoughts?

@hellt
Copy link

hellt commented Jan 16, 2021

Agree, this seems like a viable approach

@plajjan
Copy link
Collaborator

plajjan commented Jan 18, 2021

The reason is that when you have 7 (pick a number!) VMX files, you don't want all of them included in your docker build context (that gets sent to the docker daemon). Copying the currently selected file over to the docker directory means we send less to the docker daemon (which is the slower step).

@hellt
Copy link

hellt commented Jan 18, 2021 via email

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

No branches or pull requests

3 participants