-
Notifications
You must be signed in to change notification settings - Fork 712
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
Conversation
16feabb
to
79b73de
Compare
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.
This comment was marked as abuse.
Sorry, something went wrong.
Logging it seems fine, but users are unlikely to see that. Would be nicer to show it when launching, and/or in the UI. |
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). |
Also, we should document how the user can disable this. |
79b73de
to
73b8361
Compare
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.
This comment was marked as abuse.
Sorry, something went wrong.
73b8361
to
34ca87c
Compare
Periodically check for newer versions of scope.
@@ -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.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
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.