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 <blake.pettersson@gmail.com>
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) 😄 |
|
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 <blake.pettersson@gmail.com>
|
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 <blake.pettersson@gmail.com> * fix: also exclude `test/containers` Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> --------- Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
* 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 <blake.pettersson@gmail.com> * fix: also exclude `test/containers` Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> --------- Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
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 <blake.pettersson@gmail.com>
* 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 <blake.pettersson@gmail.com> * Update .github/workflows/image-reuse.yaml Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com> Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> --------- Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Add a bunch of directories to `.dockerignore` which are not required within the production image. Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
* 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 <blake.pettersson@gmail.com> * fix: also exclude `test/containers` Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> --------- Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
* 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 <blake.pettersson@gmail.com> * Update .github/workflows/image-reuse.yaml Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com> Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> --------- Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
* 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 <blake.pettersson@gmail.com> * Update .github/workflows/image-reuse.yaml Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com> Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> --------- Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Add a bunch of directories to
.dockerignorewhich 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: