Alfonso Acosta
98707c2a81
Refactor scope script
2016-07-13 14:11:20 +00:00
Ilya Dmitrichenko
901e1a474a
Fix Docker for Mac issue with --service-token ( close #1649 )
2016-07-13 13:50:28 +01:00
Ilya Dmitrichenko
0ad6392a78
Ensure plugins dir exists ( close #1649 )
2016-07-11 17:52:36 +01:00
Alfonso Acosta
74e508671c
Merge pull request #1606 from weaveworks/1594-no-sudo-for-launch
...
Don't prepend `scope launch` with sudo
2016-07-05 11:13:38 +01:00
Alfonso Acosta
59ec3b863a
Review comments
2016-07-04 17:22:58 +00:00
Alfonso Acosta
5d23432a6c
Check write access to unix socket
2016-07-04 17:08:49 +00:00
Tom Wilkie
8e1a6b3667
Add dry run flag to scope, so when launched we can check the args are valid. ( #1609 )
...
* Add dry run flag to scope, so when launched we can check the args are valid.
* Try and parse listen address and error early.
* Specify that -dry-run is for internal use only.
2016-06-27 10:13:55 +01:00
Ilya Dmitrichenko
25685c55f9
Fix Docker for Mac check ( #1551 )
2016-06-04 08:04:08 +01:00
Alfonso Acosta
a7544498cb
Check HOME variable before using it ( #1500 )
2016-05-13 09:49:22 +01:00
Ilya Dmitrichenko
0bea9990cd
Fix Docker for Mac (again!) ( #1448 )
...
* Make Scope work on Docker for Mac (#1414 )
* Check if Docker for Mac is used and run app separately
* Improve `check_probe_only`
* Fix d4m detection
* Fix Docker for Mac test by checking if it is in use
2016-05-10 20:28:52 +02:00
Tom Wilkie
77be6863d4
Revert "Make Scope work on Docker for Mac" ( #1439 )
2016-05-06 13:28:51 +01:00
Ilya Dmitrichenko
3e7dd1abbf
Make Scope work on Docker for Mac ( #1414 )
...
* Check if Docker for Mac is used and run app separately
* Improve `check_probe_only`
* Fix d4m detection
2016-05-05 18:15:58 +01:00
Tom Wilkie
cb0901e8e1
Move all the flag parsing to main.go; implement scope help
2016-04-20 15:48:43 +01:00
Paul Bellamy
7632e0b3c5
Adding support for plugins, with basic example of iowait, and ebpf
...
Squash of:
* Include plugins in the report
* show plugin list in the UI
* moving metric and metadata templates into the probe reports
* update js for prime -> priority
* added retry to plugin handshake
* added iowait plugin
* review feedback
* plugin documentation
2016-04-12 17:22:14 +01:00
Tom Wilkie
425013bdd9
Update go-checkpoint library and add link to README.
2016-02-29 11:15:14 +00:00
Tom Wilkie
34ca87c98e
Review feedback.
2016-02-04 15:48:17 +00:00
Tom Wilkie
2e9aa9314d
Periodically check for newer versions of scope.
2016-02-04 15:22:01 +00:00
Tom Wilkie
667dd0f1de
Rationalise version handling
2015-12-11 12:23:01 +00:00
Tom Wilkie
045a1feba0
Update the docker version we embed into the scope image to 1.6.2 in sync with weave 1.3 changes.
2015-11-30 09:38:42 +00:00
Tom Wilkie
d779a4e5da
Make sure scope can start after an upgrade.
2015-11-03 14:16:28 +00:00
Alfonso Acosta
543109a524
Make Docker version extraction more robust
2015-10-26 18:07:11 +00:00
Tom Wilkie
163af5e681
Review feedback
2015-10-19 14:33:42 +00:00
Tom Wilkie
7f21622d37
Introduce docker version check into scope script, error on <1.5.0
2015-10-19 14:33:41 +00:00
Paul Bellamy
745c94f07f
Make getting the docker run command easier.
2015-10-19 12:24:10 +01:00
Tom Wilkie
88686b5c6c
Review Feedback
2015-09-30 13:40:25 +00:00
Tom Wilkie
206a56b1ad
Do all weave operations from within the container
...
Fixes #523
2015-09-30 11:54:38 +00:00
Peter Bourgon
36b743fe1f
probe, app: reliable shutdown
...
- Restructure main funcs for clean defer-stack-unwinds
- Fix Docker container to handle signals properly
- Introduce runsvinit for container init process
- Integration test
2015-09-29 11:45:12 +02:00
Paul Bellamy
235cbd3a52
use weavescope image for all remote work, so they're labelled works.weave.role=system
2015-08-28 11:59:29 +01:00
Paul Bellamy
26eea6eab2
Works with boot2docker.
...
The DOCKER_BRIDGE_IP is set on the remote host, so it will be found
correctly on boot2docker.
2015-08-28 11:59:02 +01:00
Tom Wilkie
fe809fd896
Update for new weave status interface; 'intelligently' enable by default.
2015-08-25 09:22:14 +00:00
Paul Bellamy
6860d02a1a
Use port or dns container to check for weavedns
...
Due to: https://github.com/weaveworks/weave/pull/1319
2015-08-19 10:19:28 +01:00
Tom Wilkie
62a5fe364d
Remove bash-ism
2015-08-17 14:54:16 +00:00
Alvaro Saurin
c34c80e368
Use /bin/sh instead of /bin/bash so it can be used in boot2docker
2015-08-17 14:50:29 +00:00
Tom Wilkie
9edc58f8ef
Merge pull request #350 from weaveworks/service-args
...
Add parameter shortcut for SAAS
2015-08-12 14:56:58 +01:00
Tom Wilkie
6f3828a431
Add parameter shortcut for saas
2015-08-12 12:04:06 +00:00
Tom Wilkie
e2a4bc9796
Rm temporary containers.
2015-08-12 11:45:24 +00:00
Peter Bourgon
fb7eed103e
Merge pull request #320 from weaveworks/process-names-on-darwin
...
Naïve process walker for Darwin
2015-07-20 16:37:25 +01:00
Tom Wilkie
843ac4e8ee
Detech WeaveDNS by an open port 53 on the docker bridge && the presence of the weave script.
2015-07-20 13:56:23 +00:00
Peter Bourgon
b585a362ac
Naïve process walker for Darwin
...
This fixes the regression where process names weren't appearing for
Darwin probes. Makes testing easier.
Also, changes the process walker to operate on value types. There's no
performance advantage to using reference types for something of this
size, and there appeared to be a data race in the Darwin port that
caused nodes to gain and lose process names over time.
Also, restructures how to enable docker scraping. Default false when run
manually, and enabled via --probe.docker true in the scope script.
2015-07-16 12:33:59 +02:00
Peter Bourgon
c8079daf26
Improve scope script <--> weave interaction
...
- Use command_exists function from weave script
- Collapse boolean checks for DNS registration
2015-07-15 12:10:50 +02:00
Peter Bourgon
53e70b02f4
Don't fast-fail if weave isn't present
2015-07-15 11:57:48 +02:00
Peter Bourgon
ac29fba7bc
Don't fail if CACHE_DIR has a missing component
...
Also, don't invoke weave if it's not running.
2015-07-13 16:03:19 +02:00
Peter Bourgon
c57a04e1dd
Use weave add-dns instead of HTTP calls to DNS container
2015-07-13 12:47:21 +02:00
Peter Bourgon
edee9b2434
weave expose prior to scope launch
2015-07-02 18:25:10 +01:00
Tom Wilkie
eafa040a6d
Fail quickly in the ./scope script.
2015-06-23 14:29:54 +00:00
Tom Wilkie
94a1b2a6b0
Use a bash command in a docker container to work out host IP addresses.
2015-06-08 16:29:34 +00:00
Tom Wilkie
a69600831c
Emit the urls at which the weave scope UI is reachable on scope launch.
2015-06-02 14:58:57 +00:00
Tom Wilkie
b4ad86e2f5
Merge pull request #143 from tomwilkie/release
...
Plumbing for releases stolen straight from weave.
2015-06-01 16:48:54 +01:00
Tom Wilkie
f673d05d3b
Merge pull request #140 from tomwilkie/137-ip-addrs
...
Don't just advertise addresses on eth devices; use blacklist on device name.
2015-06-01 16:45:39 +01:00
Tom Wilkie
3d2521dc65
Don't just advertise addresses on eth devices; use hostname -I.
2015-06-01 15:35:42 +00:00