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

Add .gitignore and .dockerignore behavior to ImageSpec #2369

Merged
merged 9 commits into from
Apr 24, 2024

Conversation

pingsutw
Copy link
Member

Tracking issue

NA

Why are the changes needed?

Pycache, Venv, and some other irreverent files are copied to the docker image.

What changes were proposed in this pull request?

Use .dockerignore file to exclude files and directories from images built from ImageSpec

How was this patch tested?

local sandbox

Setup process

Screenshots

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

NA

Docs link

NA

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Apr 22, 2024
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Copy link

codecov bot commented Apr 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.67%. Comparing base (d32ce8f) to head (74e88ea).
Report is 4 commits behind head on master.

❗ Current head 74e88ea differs from pull request most recent head d2c466d. Consider uploading reports for the commit d2c466d to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #2369       +/-   ##
===========================================
+ Coverage   75.95%   88.67%   +12.71%     
===========================================
  Files         181       27      -154     
  Lines       18295     1536    -16759     
  Branches     3788        0     -3788     
===========================================
- Hits        13896     1362    -12534     
+ Misses       3807      174     -3633     
+ Partials      592        0      -592     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
wild-endeavor
wild-endeavor previously approved these changes Apr 24, 2024
Signed-off-by: Kevin Su <[email protected]>
@eapolinario eapolinario merged commit 7ba8f35 into master Apr 24, 2024
47 checks passed
austin362667 pushed a commit to austin362667/flytekit that referenced this pull request May 9, 2024
* Add .gitignore and .dockerignore behavior to ImageSpec

Signed-off-by: Kevin Su <[email protected]>

* Add a test

Signed-off-by: Kevin Su <[email protected]>

* Fix CI

Signed-off-by: Kevin Su <[email protected]>

* fix test

Signed-off-by: Kevin Su <[email protected]>

* fix tests

Signed-off-by: Kevin Su <[email protected]>

* fix test

Signed-off-by: Kevin Su <[email protected]>

* nit

Signed-off-by: Kevin Su <[email protected]>

* test

Signed-off-by: Kevin Su <[email protected]>

* nit

Signed-off-by: Kevin Su <[email protected]>

---------

Signed-off-by: Kevin Su <[email protected]>
austin362667 pushed a commit to austin362667/flytekit that referenced this pull request May 10, 2024
* Add .gitignore and .dockerignore behavior to ImageSpec

Signed-off-by: Kevin Su <[email protected]>

* Add a test

Signed-off-by: Kevin Su <[email protected]>

* Fix CI

Signed-off-by: Kevin Su <[email protected]>

* fix test

Signed-off-by: Kevin Su <[email protected]>

* fix tests

Signed-off-by: Kevin Su <[email protected]>

* fix test

Signed-off-by: Kevin Su <[email protected]>

* nit

Signed-off-by: Kevin Su <[email protected]>

* test

Signed-off-by: Kevin Su <[email protected]>

* nit

Signed-off-by: Kevin Su <[email protected]>

---------

Signed-off-by: Kevin Su <[email protected]>
fiedlerNr9 pushed a commit that referenced this pull request Jul 25, 2024
* Add .gitignore and .dockerignore behavior to ImageSpec

Signed-off-by: Kevin Su <[email protected]>

* Add a test

Signed-off-by: Kevin Su <[email protected]>

* Fix CI

Signed-off-by: Kevin Su <[email protected]>

* fix test

Signed-off-by: Kevin Su <[email protected]>

* fix tests

Signed-off-by: Kevin Su <[email protected]>

* fix test

Signed-off-by: Kevin Su <[email protected]>

* nit

Signed-off-by: Kevin Su <[email protected]>

* test

Signed-off-by: Kevin Su <[email protected]>

* nit

Signed-off-by: Kevin Su <[email protected]>

---------

Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Jan Fiedler <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants