superseriousbusiness / gotosocial

Fast, fun, small ActivityPub server.
https://docs.gotosocial.org
GNU Affero General Public License v3.0
3.82k stars 331 forks source link

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

Closed tsmethurst closed 1 month ago

tsmethurst commented 1 month ago

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 https://github.com/superseriousbusiness/gotosocial/issues/3233

NyaaaWhatsUpDoc commented 1 month ago

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 commented 1 month ago

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