I’m building an addon that caches data in /tmp, but the cache writes are failing, and unfortunately the code I’m packaging doesn’t log a specific exception. I have a PR in to improve logging around that failure, but in studying the addon configuration, I’m wondering if /tmp isn’t available to addons by default?
Specifically, I’m looking at the tmpfs
option. If /tmp is indeed available, why is this option needed?
And if /tmp is not available, I assume I need the tmpfs
option? I’d like a disk-based cache for things that aren’t written very often but that can vanish between container restarts. Since these files may be a bit large (cached TTS output) I’d rather they not be in a RAM-based tmpfs. But they’re only occasionally written/read, so they shouldn’t be too hard on flash storage.
Thanks.