Skip to content

docs: Add documentation on local cache export - #2035

Merged
gerhard merged 7 commits into
dagger:mainfrom
TomChv:docs/permanent-cache-with-dagger
May 5, 2022
Merged

gerhard merged 7 commits into
dagger:mainfrom
TomChv:docs/permanent-cache-with-dagger

Conversation

@TomChv

@TomChv TomChv commented Apr 4, 2022 •

Copy link
Copy Markdown
Member

Add documentation on export cache, it still requires improvement and work before merge but local cache is complete

@TomChv TomChv added area/documentation Improvements or additions to documentation kind/enhancement labels Apr 4, 2022
@TomChv TomChv self-assigned this Apr 4, 2022
@dolanor

dolanor commented Apr 6, 2022

Copy link
Copy Markdown
Contributor

Is it still WIP?

@TomChv

TomChv commented Apr 7, 2022

Copy link
Copy Markdown
Member Author

Is it still WIP?

The first part can be reviewed but until GitHub and Registry are not finished, it's not mergeable.
Indeed I welcome any comment on the Local part

@TomChv
TomChv force-pushed the docs/permanent-cache-with-dagger branch 2 times, most recently from 2d7c062 to 1b0636a Compare April 15, 2022 16:51
@TomChv
TomChv force-pushed the docs/permanent-cache-with-dagger branch from 1b0636a to efdf641 Compare April 26, 2022 13:55
@TomChv
TomChv marked this pull request as ready for review April 26, 2022 14:21
@TomChv
TomChv requested a review from a team as a code owner April 26, 2022 14:21
@TomChv
TomChv requested review from gerhard and shykes April 26, 2022 14:21
@TomChv
TomChv force-pushed the docs/permanent-cache-with-dagger branch from 6600a88 to f8afa2d Compare April 26, 2022 14:24
@TomChv
TomChv requested a review from sipsma April 26, 2022 15:28
@TomChv

TomChv commented Apr 26, 2022

Copy link
Copy Markdown
Member Author

Related to #2035

Comment thread docs/guides/1230-persistent-cache.md Resolved
Comment thread docs/guides/1230-persistent-cache.md Resolved
Comment thread docs/guides/1230-persistent-cache.md Resolved
Comment thread docs/guides/1230-persistent-cache.md Resolved
Comment thread docs/guides/1230-persistent-cache.md Resolved
Comment thread docs/guides/1230-persistent-cache.md Resolved
Comment thread docs/guides/1230-persistent-cache.md Resolved
Comment thread docs/guides/1230-persistent-cache.md Resolved
Comment thread docs/guides/1230-persistent-cache.md Resolved
Comment thread docs/guides/1230-persistent-cache.md Resolved
@TomChv

TomChv commented Apr 27, 2022

Copy link
Copy Markdown
Member Author

Thanks for your amazing review, it's really helpful! I'll work on test case!

I did not directly applied your suggestion because it would create issue on DCO.

Signed-off-by: Vasek - Tom C <[email protected]>
@TomChv
TomChv force-pushed the docs/permanent-cache-with-dagger branch from d916466 to 0fce839 Compare April 27, 2022 10:21
@TomChv
TomChv force-pushed the docs/permanent-cache-with-dagger branch from 18aea2f to e415536 Compare April 27, 2022 10:36
Comment thread docs/guides/1230-persistent-cache.md Resolved
Comment thread docs/guides/1230-persistent-cache.md Resolved
Comment thread docs/guides/1230-persistent-cache.md Resolved
Comment thread docs/guides/1230-persistent-cache.md Resolved
Comment thread docs/guides/1230-persistent-cache.md Resolved
Comment thread docs/guides/1230-persistent-cache.md Resolved
Comment thread docs/guides/1230-persistent-cache.md Resolved
Comment thread docs/guides/1230-persistent-cache.md Resolved
Comment thread docs/guides/1230-persistent-cache.md Resolved
Comment thread docs/guides/1230-persistent-cache.md Outdated
## Persistent cache in your local filesystem

To store cache in your local filesystem, you don't need much effort : just
add `--cache-from type=local,mode=max,dest=<output folder>` to `dagger do build`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personally think it would be fine to just put it in the actual tests dir of our repo. We need tests for cache import/export there anyways.

Comment thread docs/guides/1230-persistent-cache.md Resolved
@TomChv

TomChv commented May 2, 2022

Copy link
Copy Markdown
Member Author

Thank guys for your reviews! 🚀

I updated my docs, feel free to review it again until it's perfect :D

@TomChv
TomChv requested a review from sipsma May 2, 2022 17:58
Comment thread docs/guides/1230-persistent-cache.md Resolved
@gerhard

gerhard commented May 5, 2022

Copy link
Copy Markdown
Contributor

👀

@gerhard

gerhard commented May 5, 2022

Copy link
Copy Markdown
Contributor

FWIW, NOOP

My test:
image

Your docs example Tom:
image

Nice!
image

@gerhard gerhard left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job @TomChv!

Your feedback @sipsma made a huge difference 👍

@gerhard
gerhard merged commit b4f934a into dagger:main May 5, 2022
TomChv pushed a commit to TomChv/dagger that referenced this pull request May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants