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

[chore/docs] Add /gotosocial/.cache to Docker container, document GTS_WAZERO_COMPILATION_CACHE #3425

Merged
merged 2 commits into from
Oct 13, 2024

Conversation

tsmethurst
Copy link
Contributor

Description

If this is a code change, please include a summary of what you've coded, and link to the issue(s) it closes/implements.

If this is a documentation change, please briefly describe what you've changed and why.

This pull request adds the optional /gotosocial/.cache volume in the Dockerfile, and documents usage of GTS_WAZERO_COMPILATION_CACHE to set the compilation cache dir, for both Docker and binary deployments (with systemd).

Closes #3233

@NyaaaWhatsUpDoc
Copy link
Member

NyaaaWhatsUpDoc commented Oct 13, 2024

i think it would be better to further specify what this cache is for in this directory, in case we ever have further need for using /gotosocial/.cache.

so making GTS_WAZERO_COMPILATION_CACHE=/gotosocial/.cache/wazero

@tsmethurst
Copy link
Contributor Author

Mm, well wazero creates directories of its own inside that cache directory like wazero_vx.x.x or whatever, so I don't think it's really necessary, then it would end up being ~/gotosocial/.cache/wazero/wazero_vx.x.x

@NyaaaWhatsUpDoc NyaaaWhatsUpDoc merged commit 096767b into main Oct 13, 2024
3 checks passed
@NyaaaWhatsUpDoc NyaaaWhatsUpDoc deleted the wazero_compilation_cache branch October 13, 2024 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature/docs] Document GTS_WAZERO_COMPILATION_CACHE for caching pre-compiled WASM to disk
2 participants