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

Only copy git tracked files into test image on make ci #2970

Open
dmnks opened this issue Mar 14, 2024 · 1 comment
Open

Only copy git tracked files into test image on make ci #2970

dmnks opened this issue Mar 14, 2024 · 1 comment
Labels
RFE test Testsuite-related

Comments

@dmnks
Copy link
Contributor

dmnks commented Mar 14, 2024

While the "canonical" _build subdirectory in the source tree is ignored when copying the sources into the OCI image (when using make ci), there may be other directories and/or files and some of them may cause issues when copying them (e.g. if they're other overlayfs mounts).

The sane way would be to just copy the files tracked in git. I can't see a way to do that easily with the COPY instruction in the Dockerfile but there might be other ways.

@dmnks dmnks added RFE test Testsuite-related labels Mar 14, 2024
@dmnks dmnks changed the title Only copy git tracked files into test image Only copy git tracked files into test image on make ci Mar 14, 2024
@dmnks
Copy link
Contributor Author

dmnks commented Mar 14, 2024

The ADD command can copy archives (and unpacks them also) so we might as well just do a git archive beforehand and copy that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFE test Testsuite-related
Projects
Status: Todo
Development

No branches or pull requests

1 participant