one-click-apps icon indicating copy to clipboard operation
one-click-apps copied to clipboard

Data in jsreport now persists container restart

Open gpistotnik opened this issue 2 years ago • 7 comments

Corrected in app volume from /jsreport to /app.

First of all, thank you for your contribution! 😄

Please note that this repo is mostly for popular apps with thousands of stars and tens of thousands of downloads. If you'd like to add a less popular app, you can always create your own 3rd party repo and add your app there.

☑️ Self Check before Merge

  • ☑️ I have tested the template using the method described in README.md thoroughly

gpistotnik avatar Oct 03 '23 20:10 gpistotnik

Mounting app directory is /jsreport according to their document. Where do you see this new volume?

sudo docker run -p 80:5488 -v /myapp:/jsreport jsreport/jsreport:4.0.0

https://jsreport.net/learn/docker

githubsaturn avatar Oct 04 '23 03:10 githubsaturn

Also, it may be just for the newer versions. The default version needs to be updated as well.

githubsaturn avatar Oct 04 '23 03:10 githubsaturn

I have version jsreport/jsreport:3.9.0-full and data does not persist if mapped to /jsreport. I have manually checked in container where the report templates are.

gpistotnik avatar Oct 04 '23 06:10 gpistotnik

The official docs suggest mapping /app/data - at least for version 4+

image

githubsaturn avatar Oct 05 '23 03:10 githubsaturn

Mapping /app/data did not work for me, on existing jsreport container /app/data worked but on new installation it didn't, when I changed to /app - according to log file, it did.

gpistotnik avatar Oct 07 '23 10:10 gpistotnik

Interesting! Okay then, let's do this!

githubsaturn avatar Oct 07 '23 16:10 githubsaturn

Can you just update the version to the version you tested with?

githubsaturn avatar Oct 07 '23 16:10 githubsaturn