Skip to content
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

Merged
merged 18 commits into from
Nov 14, 2018

Conversation

p0psicles
Copy link
Contributor

@p0psicles p0psicles commented Nov 12, 2018

  • PR is based on the DEVELOP branch
  • Don't send big changes all at once. Split up big PRs into multiple smaller PRs that are easier to manage and review
  • Read the contribution guide

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.

  1. pymedusa/medusa
  2. linuxserver/medusa

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.

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
@ghost
Copy link

ghost commented Nov 12, 2018

DeepCode analyzed this pull request.
There are no new issues.

Update unit test.
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'
Copy link
Collaborator

@OmgImAlexis OmgImAlexis Nov 13, 2018

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, this works:
image

@p0psicles
Copy link
Contributor Author

@sharkykh thoughts?

@sharkykh sharkykh mentioned this pull request Nov 13, 2018
5 tasks
@OmgImAlexis OmgImAlexis added this to the 0.2.12 milestone Nov 13, 2018
Fixed alignment of the icons.
medusa/version_checker.py Outdated Show resolved Hide resolved
…dateManager.

Remove it from CheckVersion.
Call app.RUNS_IN_DOCKER to check.
@pymedusa pymedusa deleted a comment Nov 14, 2018
medusa/version_checker.py Outdated Show resolved Hide resolved
medariox
medariox previously approved these changes Nov 14, 2018
@p0psicles p0psicles merged commit 4f67d0a into develop Nov 14, 2018
@p0psicles p0psicles deleted the feature/enable-check-runs-in-docker branch November 14, 2018 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants