AndreKoepke / home-system

A smart-home system
0 stars 0 forks source link

Automatic updates #80

Open AndreKoepke opened 1 year ago

AndreKoepke commented 1 year ago

Yay, the Home-System got some attention. In December/January there will be two new homes.

To deliver the updates ASAP, there should be an automatic process. Maybe Spring can monitor Github/DockerHub and take down the application. Kubernetes will take care of downloading the new image and start a new pod again because of this

https://github.com/AndreKoepke/home-system/blob/115282ca08c68482aeefc05d755f98012076643e/helm/templates/application/deployment.yaml#L41

AndreKoepke commented 1 year ago

Update: Raspberry-Env running with docker and docker-compose.

There should be updates very easy: Just a cronjob, which tries a docker pull akop/home-system:latest.
If new version is there -> Do docker compose restart --force-recreate home-system

For k8s, I still have not a good idea.

AndreKoepke commented 1 year ago

Or even easier: https://stackoverflow.com/questions/37609662/docker-compose-restart-only-updated-images