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
On some systems, /tmp is a small tmpfs partition. This creates 2 problems for putting Earthly's cache there:
/tmp
not enough space available for large builds
contents are lost on reboot
Consider checking for the /var/cache directory and putting Eartlhy's cache there if it is available.
/var/cache
related issue: Explore remote cache · Issue #11 · earthly/earthly
reference: Features/tmp-on-tmpfs - Fedora Project Wiki
The text was updated successfully, but these errors were encountered:
Good points.
A temporary workaround is to create a symbolic link from /tmp/earthly to some other location on the system.
/tmp/earthly
Sorry, something went wrong.
Yes, that's how I have it working, thank you.
@dmarti the next release of earthly will allow this to be changed by creating a file under ~/.earthly/config.yaml containing:
~/.earthly/config.yaml
global: cache_path: "/path/to/earthly/cache"
We also changed it to default to /var/cache/earthly as you suggested. Thanks for reporting the issue.
/var/cache/earthly
No branches or pull requests
On some systems,
/tmp
is a small tmpfs partition. This creates 2 problems for putting Earthly's cache there:not enough space available for large builds
contents are lost on reboot
Consider checking for the
/var/cache
directory and putting Eartlhy's cache there if it is available.related issue: Explore remote cache · Issue #11 · earthly/earthly
reference: Features/tmp-on-tmpfs - Fedora Project Wiki
The text was updated successfully, but these errors were encountered: