needo37 / plex

Docker for plex
MIT License
14 stars 19 forks source link

Enable Automatic Updates #9

Closed esvinson closed 9 years ago

esvinson commented 9 years ago

Automatically detect the latest version on container start/install, and if on container start there's a newer version available it will install that. This determines the latest version from services running on my webserver which log into the plex website and read the PlexPass download/archive pages. Source for those scripts can be provided if needed or if you would like to run it on your own server instead of mine. It uses PHP and memcache.

needo37 commented 9 years ago

I think this is a good solution, but what happens when your server goes down? It breaks the docker. Is there any thing that can be done locally/internally in the Docker itself to accomplish the same thing?

esvinson commented 9 years ago

It needs a plex username/password in order to sign in and see the plexpass versions, which is why I opted for this way, as it doesn't make the username/password accessible anywhere. If the webserver were to go down it should fail gracefully for container restarts, but would fail in the event of a fresh install.

esvinson commented 9 years ago

We could possibly have it fall back to the latest public plex release using code similar to what was previously committed in #6 on initial install if the plexpass version call fails.

esvinson commented 9 years ago

Implemented installation fallback and downloaded file cleanup in firstrun.sh