-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/enable check runs in docker #5700
Conversation
Used for checking if medusa is running in a docker container.
This prevents us from checking each time. * Renamed method. * Removed double quotes * escaped backslash.
* Show the app.RUNS_IN_DOCKER variable in the Help & Info page. * Add app.RUNS_IN_DOCKER to apiv2 config.
…able-check-runs-in-docker # Conflicts: # medusa/version_checker.py
DeepCode analyzed this pull request. |
Update unit test.
medusa/version_checker.py
Outdated
if self.runs_in_docker() and (not self._cur_commit_hash or self._num_commits_behind > 0): | ||
log.debug(u'There is an update available, medusa is running in a docker container, so auto updating is disabled.') | ||
app.NEWEST_VERSION_STRING = 'There is an update available: please pull the latest docker image, ' \ | ||
'and rebuild your container to update' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should link to somewhere in the wiki for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Step by step. First prio, is to not have installations break.
I'd rather have users come over here, to ask how to update in docker for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could link to wiki?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sharkykh thoughts? |
Fixed alignment of the icons.
…dateManager. Remove it from CheckVersion. Call app.RUNS_IN_DOCKER to check.
Step 2.
Enable the check. And visualize the result in the Help & Info page.
Next step will be to utilize the check, to prevent the automatic updating and restarting in docker containers. Need to figure out how that works first.
Should address some of the issues in: #5198
What I noticed is that there are two docker images widely used.
pymedusa/medusa
Does not configure a git repository on the app source within the container.
Therefor it uses the SourceUpdater.
linuxserver/medusa
Uses git, and uses the GitUpdater.
For both these containers, users where getting notifications when an update was available.
They could click the
update now
link, to start the update process.This will now not be available to them anymore. So allot of users will be confused.
For now i've added the following message. But that can be modified of course:
There is an update available: please pull the latest docker image, and rebuild your container to update
I understand if some users think this is a step back. But this is the only way for now, to perform a reliable upgrade.