How to cache a FoundryVTT release so it doesn't need to redownload #150
-
🐛 Bug ReportI installed using To Reproduce
Expected behaviorThe download and install are saved to a volume so I don't have to re-download and re-install every run. This may just be a documentation issue. Should I be mounting another volume besides |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Note: Reinstalling also requires me to accept license key again and configure admin password again. |
Beta Was this translation helpful? Give feedback.
-
If you recreate the container the Docker image needs to reinstall the FoundryVTT distribution. The installation of Foundry does not persist by design. Since you used the If you want to avoid this hassle you can do a few different things. First, I'd use the If you want to avoid enabling and disabling the I should probably make this clearer in the README by adding a list of the pros and cons for each approach. As for the EULA, you shouldn't need to re-accept it unless you move to a new version. (e.g.; For the Admin password: You'll need to set it with the Let me know if this makes sense or if I can provide any more clarity. |
Beta Was this translation helpful? Give feedback.
-
The data volume did persist, as I retained my modules, worlds, etc. |
Beta Was this translation helpful? Give feedback.
-
That is good news. I know what the likely cause is then... if you're not setting the container's |
Beta Was this translation helpful? Give feedback.
-
I tried your suggestion of using
|
Beta Was this translation helpful? Give feedback.
-
Worth noting, that after one more restarts it appears to have worked. |
Beta Was this translation helpful? Give feedback.
If you recreate the container the Docker image needs to reinstall the FoundryVTT distribution. The installation of Foundry does not persist by design. Since you used the
FOUNDRY_RELEASE_URL
method, you'll have to provide a fresh link.If you want to avoid this hassle you can do a few different things. First, I'd use the
CONTAINER_CACHE
environment variable to store the downloaded release somewhere in your/data
volume. I use/data/container_cache
. Once you have the release tarball cached you can remove theFOUNDRY_RELEASE_URL
. The container will use the tarball to install.If you want to avoid enabling and disabling the
FOUNDRY_RELEASE_URL
you can pass your credentials either with secrets …