lau / tzdata

tzdata for Elixir. Born from the Calendar library.
MIT License
298 stars 71 forks source link

feat: support running on a read-only filesystem #131

Open paulswartz opened 1 year ago

paulswartz commented 1 year ago

Docker containers can run on a read-only filesystem, which has some security benefits. The current updater implementation writes the .tgz file to the filesystem, so it does not work in such an environment.

This provides a read_only_fs? configuration which stores the data in memory while loading, and does not write the ETS table to disk for future loading.

paulswartz commented 1 year ago

Tests pass: https://github.com/paulswartz/tzdata/actions/runs/3788868708

paulswartz commented 11 months ago

Rebased on top of the latest master, and remove the other implementation of the GitHub CI.