6 Commits
Author SHA1 Message Date
Lennart Goedhart 5e0e592949 Fixes broken Docker image build
The `npm audit fix` in the `Dockerfile` is currently
deleting vulnerable packages. Although we do want to have package
security, this should be done in a development process, not as part
of the Docker build.

This commit also reduces the Docker image size and improves security.
2021-12-06 17:56:04 +11:00
Lennart GoedhartandGitHub 562364ae09 Add docker-compose support (#6903)
* Create docker-compose.yml file for easy deployment

* Restore invalid password, to force change
2021-03-11 18:38:52 +11:00
Lennart GoedhartandGitHub 411463e595 Replace Travis build with a GitHub Action (#6690)
* Create Docker release workflow for GA
* Remove Travis workflow
* Remove dependency on Makefile
* Update default environment to Node 14
* Use git SHA instead of version for `dev` images
2021-01-01 21:40:51 +11:00
Lennart GoedhartandGitHub 7a3b968e3a Refactor mongo-storage.js (#6589)
* Refactor `mongo-storage.js`

* Use async/await instead of promises
* Fixes a bug in the previous implementation where a promise error was
  not being caught and handled

* Code cleanup
2020-11-30 11:31:30 +02:00
Lennart Goedhart 3928565a66 Fix Treatments report for mmol/L users
Fixed a typo to a client function name
2020-09-13 19:19:11 +10:00
0ee36282c3 Bug fixes for Service Worker (#5970)
* Fix service worker refresh for Firefox

* Improve logging for service worker initialisation

* Skip browser cache for service worker precaching

* Prevent `Partial Content` responses in `fetch` by stripping `Range` header

* Prevent calling `filter` on an undefined property when service worker cache is empty

* Bug fixes for Service Worker

*    Fixes https://github.com/nightscout/cgm-remote-monitor/issues/5920
*    Fixes https://github.com/nightscout/cgm-remote-monitor/issues/5943

* Update service-worker.js

Removed the MP3 files from the preload to fix issues with webkit-based browsers

Co-authored-by: p5nbTgip0r <cb3f02c5@opayq.com>
Co-authored-by: Sulka Haro <sulka@sulka.net>
2020-09-09 17:32:13 +03:00