-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
chore: add directories to dockerignore (used to speed up local dev) #12620
chore: add directories to dockerignore (used to speed up local dev) #12620
Conversation
Add a bunch of directories to `.dockerignore` which are not required within the production image. Signed-off-by: Blake Pettersson <[email protected]>
Codecov ReportBase: 47.78% // Head: 47.78% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #12620 +/- ##
=======================================
Coverage 47.78% 47.78%
=======================================
Files 246 246
Lines 41921 41944 +23
=======================================
+ Hits 20031 20045 +14
- Misses 19891 19898 +7
- Partials 1999 2001 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
I do not see any of these directories in our final images or any |
@34fathombelow sorry that was sloppy phrasing from my side. What I meant to say was that when building the image locally, changes to any files that are within the directories that are now in To be clear this is an issue only for local development (see description for more context) 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Hi! I was trying to run Argo CD locally for development and I think this PR has impacted the build on I'm unfamiliar with the build setup but running Let me know if I can help.
|
@WitoDelnat sorry about that! If you add |
argoproj#12620 introduced the ignore of the `test/` directory, which had the unintended effect of breaking `make start`. To amend that, add an override for `test/fixture` in order to unbreak `test/container/dockerfile`. Signed-off-by: Blake Pettersson <[email protected]>
If so #12640 will fix it for everyone else that might be affected |
No worries! It was easy to work around. You missed a file to exclude (see PR) but after that it should be good to go! |
* fix: exclude test/fixtures from .dockerignore #12620 introduced the ignore of the `test/` directory, which had the unintended effect of breaking `make start`. To amend that, add an override for `test/fixture` in order to unbreak `test/container/dockerfile`. Signed-off-by: Blake Pettersson <[email protected]> * fix: also exclude `test/containers` Signed-off-by: Blake Pettersson <[email protected]> --------- Signed-off-by: Blake Pettersson <[email protected]> Co-authored-by: Michael Crenshaw <[email protected]>
* fix: exclude test/fixtures from .dockerignore argoproj#12620 introduced the ignore of the `test/` directory, which had the unintended effect of breaking `make start`. To amend that, add an override for `test/fixture` in order to unbreak `test/container/dockerfile`. Signed-off-by: Blake Pettersson <[email protected]> * fix: also exclude `test/containers` Signed-off-by: Blake Pettersson <[email protected]> --------- Signed-off-by: Blake Pettersson <[email protected]> Co-authored-by: Michael Crenshaw <[email protected]> Signed-off-by: rumstead <[email protected]>
Add the ability to specify `GIT_TAG`, `GIT_COMMIT`, `BUILD_DATE` and `GIT_TREE_STATE` as optional build-args. As well as resolving argoproj#13683 (which was caused by argoproj#12620), this has the bonus of making the `docker build` slightly more deterministic (since we now have the ability to specify the same inputs into the docker build which was hitherto computed on every `docker build`). Signed-off-by: Blake Pettersson <[email protected]>
* build: add build-args for git-commit etc Add the ability to specify `GIT_TAG`, `GIT_COMMIT`, `BUILD_DATE` and `GIT_TREE_STATE` as optional build-args. As well as resolving #13683 (which was caused by #12620), this has the bonus of making the `docker build` slightly more deterministic (since we now have the ability to specify the same inputs into the docker build which was hitherto computed on every `docker build`). Signed-off-by: Blake Pettersson <[email protected]> * Update .github/workflows/image-reuse.yaml Co-authored-by: Josh Soref <[email protected]> Signed-off-by: Blake Pettersson <[email protected]> --------- Signed-off-by: Blake Pettersson <[email protected]> Co-authored-by: Josh Soref <[email protected]>
Add a bunch of directories to `.dockerignore` which are not required within the production image. Signed-off-by: Blake Pettersson <[email protected]>
* fix: exclude test/fixtures from .dockerignore argoproj#12620 introduced the ignore of the `test/` directory, which had the unintended effect of breaking `make start`. To amend that, add an override for `test/fixture` in order to unbreak `test/container/dockerfile`. Signed-off-by: Blake Pettersson <[email protected]> * fix: also exclude `test/containers` Signed-off-by: Blake Pettersson <[email protected]> --------- Signed-off-by: Blake Pettersson <[email protected]> Co-authored-by: Michael Crenshaw <[email protected]>
* build: add build-args for git-commit etc Add the ability to specify `GIT_TAG`, `GIT_COMMIT`, `BUILD_DATE` and `GIT_TREE_STATE` as optional build-args. As well as resolving argoproj#13683 (which was caused by argoproj#12620), this has the bonus of making the `docker build` slightly more deterministic (since we now have the ability to specify the same inputs into the docker build which was hitherto computed on every `docker build`). Signed-off-by: Blake Pettersson <[email protected]> * Update .github/workflows/image-reuse.yaml Co-authored-by: Josh Soref <[email protected]> Signed-off-by: Blake Pettersson <[email protected]> --------- Signed-off-by: Blake Pettersson <[email protected]> Co-authored-by: Josh Soref <[email protected]>
* build: add build-args for git-commit etc Add the ability to specify `GIT_TAG`, `GIT_COMMIT`, `BUILD_DATE` and `GIT_TREE_STATE` as optional build-args. As well as resolving argoproj#13683 (which was caused by argoproj#12620), this has the bonus of making the `docker build` slightly more deterministic (since we now have the ability to specify the same inputs into the docker build which was hitherto computed on every `docker build`). Signed-off-by: Blake Pettersson <[email protected]> * Update .github/workflows/image-reuse.yaml Co-authored-by: Josh Soref <[email protected]> Signed-off-by: Blake Pettersson <[email protected]> --------- Signed-off-by: Blake Pettersson <[email protected]> Co-authored-by: Josh Soref <[email protected]>
Add a bunch of directories to
.dockerignore
which are not required when doing the initial build of the Argo images. The background is that when developing locally, I use Skaffold to incrementally rebuild the image on any changes (see #11980). When doing any changes to directories which do not strictly require a rebuild of the Docker image, Skaffold proceeds to rebuild the image. This PR just adds the directories which should not force a rebuild of the image.Note on DCO:
If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.
Checklist: