BIDMCDigitalPsychiatry / LAMP-platform

The LAMP Platform (issues and documentation).
https://docs.lamp.digital/
Other
13 stars 10 forks source link

Add version numbers to LAMP server images #149

Open philhenson opened 3 years ago

philhenson commented 3 years ago

The LAMP server images are labeled with the year (:2021) but not a specific version number making it difficult to verify the specific image version

avaidyam commented 3 years ago

We should be able to grab the current LAMP-server version and inject it into the OpenAPI schema version (at GET /) using the following:

VERSION_CODE=`git rev-list --count HEAD`
VERSION_STRING=`git describe --tags --exact-match --abbrev=0 || echo dev`

The native apps should be able to verify updates in this way:

  1. Add manifest.json for dashboard and manifest.json for server.
  2. Apps maybe add a hidden button to configure these URLs?
  3. Apps check URL change and/or manifest version change to invalidate cache (and re-download code).