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

Periodically check for newer versions of scope. #907

Merged
merged 4 commits into from
Feb 4, 2016
Merged

Conversation

tomwilkie
Copy link
Contributor

Every 2 hours, hit https://checkpoint-api.weave.works looking for current versions of Scope. If a new version is found, log it.

Reuses the same library as Hashicorp's products.

@tomwilkie tomwilkie force-pushed the version-check branch 2 times, most recently from 16feabb to 79b73de Compare February 4, 2016 14:20
if err != nil {
log.Printf("Error checking version: %v", err)
} else if r.Outdated {
log.Printf("Scope version %s is availible; please update at %s",

This comment was marked as abuse.

@paulbellamy
Copy link
Contributor

Logging it seems fine, but users are unlikely to see that. Would be nicer to show it when launching, and/or in the UI.

@tomwilkie
Copy link
Contributor Author

I've made a separate ticket for displaying this in the UI: #914

I'd prefer not to show it on startup, due to the way our startup works (starting a container etc).

@paulbellamy
Copy link
Contributor

Also, we should document how the user can disable this.

@tomwilkie
Copy link
Contributor Author

Updated to once every 6hrs on @pidster's request.

@@ -56,6 +56,13 @@ such, the Scope app endpoint (port 4040) should not be made accessible on
the Internet. Additionally traffic between the app and the probe is currently
insecure and should not traverse the internet.

Scope will periodically check with our servers to see if a new version is
availible. To disable this, run:

This comment was marked as abuse.

@paulbellamy paulbellamy assigned tomwilkie and unassigned paulbellamy Feb 4, 2016
954b023 Correct last commit.
7732be6 Add availible to the spell checker.

git-subtree-dir: tools
git-subtree-split: 954b023
@tomwilkie tomwilkie assigned paulbellamy and unassigned tomwilkie Feb 4, 2016
paulbellamy added a commit that referenced this pull request Feb 4, 2016
Periodically check for newer versions of scope.
@paulbellamy paulbellamy merged commit c263471 into master Feb 4, 2016
@paulbellamy paulbellamy deleted the version-check branch February 4, 2016 16:23
@@ -90,8 +90,14 @@ check_not_running() {
}

launch_command() {
local args="-v /etc/weave:/etc/weave"

This comment was marked as abuse.

This comment was marked as abuse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants