Coder Social home page Coder Social logo

TZ updates with read only file system about tzdata HOT 3 CLOSED

lau avatar lau commented on July 22, 2024
TZ updates with read only file system

from tzdata.

Comments (3)

lau avatar lau commented on July 22, 2024

Hi. A new version has just been released (0.5.15). See the updated README. If you have a read only file system you can put an .ets file with the newest data available in the configured data_dir.

Yes it would be possible to use auto update via the internet and not save the new data to file. That could potentially be added as a config option. However it would mean that the if Tzdata restarts it would go back to the old version on the read only file system. Potentially going back and forth between an old and new version.

May I ask what sort of application is it that is connected to the internet but has no writeable disk space?

from tzdata.

tomciopp avatar tomciopp commented on July 22, 2024

The application handles electronic medical records. It is shipped in a docker container with no access to a mounted disk. This allows us to avoid a series of attack vectors that most normal web apps don't consider protecting against. A package arbitrarily writing files is just something we can't condone. It can only write to a database that is not connected to the public internet.

from tzdata.

lau avatar lau commented on July 22, 2024

One problem with getting updates and not writing to disk is that upon restarts it would go back to an old version from disk. So you could cycle back and forth between old and new versions. If you don't want the library to write to disk you could write your own code that puts .ets files in a location you specify in the config and then trigger loading of the new database from that file.

from tzdata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.