88 Commits

Author SHA1 Message Date
Tom Wilkie
949ae6f807 Review feedback 2015-12-09 12:45:13 +00:00
Tom Wilkie
c749f5aa33 Merge probe and app binaries, run with ./scope probe or ./scope app. 2015-12-09 11:00:42 +00:00
Tom Wilkie
c317cff86e App: Rename package main->app, put main.go in prog/app 2015-12-07 14:53:28 +00:00
Paul Bellamy
269a11759f makefile should build app/static.go when needed
- Add non-containerised build for UI.
- Update README for new build steps.
2015-12-07 14:53:28 +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
4e3ab2d45b Update makefile. 2015-11-12 14:54:10 +00:00
Paul Bellamy
8f63d7be7f Metrics plumbing for reports.
- base load graph x-axis on data, not a hardcoded window
- format memory dynamically to scale
- add some tests for the immutability of metrics
- use ps.List for Sample storage, so it is immutable. Have to implement custom marshalling
- adding tests for report.Metrics
- check the ordering of the json samples
- Make the nil value for Metrics valid.
- Sort samples from oldest to newest on the wire.
2015-11-11 17:16:13 +00:00
Paul Bellamy
92ec7d9397 Move probe main.go to prog/probe/, break out a probe struct with appropriate responsibilities.
Also adds test for probe 'engine'
2015-11-09 16:25:28 +00:00
Tom Wilkie
1ad7b4fce5 Speed up tests on circle.
- Ensure we use up to date build container when running tests.
- Parallelise host setup for integration tests.
- Pass some more circle env vars through to ./tools/tests so the scheduler works.
- Gather coverage from multiple shards.
- Create files as the right owner inside the container.
- Parallelise the circle.yaml
- Parallelise the intergration tests using existing machinery
- Build experimental in parallel.
- Use custom scheduler prefix for integration tests, so schedules don't clash with weave.
2015-11-04 15:35:21 +00:00
Tom Wilkie
43f6cf7114 Fix build warning with go1.5 2015-11-03 17:25:39 +00:00
Tom Wilkie
bcd346ab5b Release script should use make tests to run tests. 2015-11-03 17:25:39 +00:00
Tom Wilkie
3a4b727ec4 Propagate SCOPE_VERSION when building in a container. 2015-11-02 14:52:31 +00:00
Tom Wilkie
e0cea0e2b1 docker run -ti is problematic for automation. 2015-10-29 14:15:39 +00:00
David Kaltschmidt
e2d488182d JS test dirs are now inlined 2015-10-26 17:51:41 +00:00
Tom Wilkie
b17596111e Don't go get when running the tests. 2015-10-26 16:59:39 +00:00
Tom Wilkie
0c790b966e sudo -E so environment variables (like GOOS and CIRCLECI) are passed through to docker 2015-10-26 16:44:41 +00:00
Tom Wilkie
62aed75550 Fix couple of minor typos. 2015-10-26 15:42:06 +00:00
Tom Wilkie
18a1354075 Add make tests target, which runs tests inside build container. 2015-10-26 15:23:00 +00:00
Tom Wilkie
c05b76373f Review feedback 2015-10-26 14:23:30 +00:00
Tom Wilkie
147db96567 Make the build-in-container vs not clearer to make, so it doesn't always rebuild the exes. 2015-10-26 14:02:39 +00:00
Tom Wilkie
e8c96a0242 Turn on GO15VENDOREXPERIMENT in build container; don't go get. 2015-10-24 10:24:59 +01:00
Peter Bourgon
a48b6d4d1e Let's not squash. 2015-10-23 16:35:46 +00:00
Tom Wilkie
0288b3151b Use gocertifi instead of random ca-certs. 2015-10-23 16:35:41 +00:00
Tom Wilkie
7fd5a315e3 Build inside the build container, using go1.5, by default
Also build for GOOS=darwin and GOARCH=arm
2015-10-23 16:35:11 +00:00
Peter Bourgon
303bed1e2b Makefile: fix indentation 2015-10-23 14:38:17 +01:00
Paul Bellamy
a1466cb3fc Review Feedback 2015-10-20 14:26:27 +01:00
Paul Bellamy
be1d1d52d0 Basic Kubernetes integration
* Added helper for installing scope on gcloud
* Added topologies Pods and Pods-by-Service
* Uses k8s.io/kubernetes/pkg/client/cache for the client
* Filter kube-system nodes by default
* Only show the k8s topologies if we've received a non-empty k8s report
2015-10-06 12:55:51 +01:00
Peter Bourgon
8a2fa22858 Merge pull request #529 from weaveworks/release-0.8.0
Release 0.8.0
2015-10-01 18:14:36 +02:00
Peter Bourgon
e8ddecebd1 Fix -tags netgo 2015-10-01 10:17:06 +02:00
Tom Wilkie
bc31c11ec0 Add make update to force a refresh of dependancies. 2015-10-01 08:01:20 +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
Tom Wilkie
34a8a975d2 Compile flags compatible with 1.4 2015-09-15 08:57:42 +00:00
David Kaltschmidt
bf3e9a1601 added make frontend, and revised README 2015-09-14 10:56:17 +02:00
Tom Wilkie
fdf89a7fc7 Don't --rm containers on circle. 2015-09-14 04:16:52 +00:00
Tom Wilkie
f4a426daa1 Makefile improvements. 2015-09-14 04:00:27 +00:00
Peter Bourgon
b97407a540 Use local checkout 2015-09-10 16:58:49 +02:00
Peter Bourgon
dde214c103 Put the binaries in the official place 2015-09-10 15:43:19 +02:00
Peter Bourgon
fc95067bd3 First cut of Docker build for backend 2015-09-10 15:38:48 +02:00
Tom Wilkie
31f1fbee6d Make scope compile under go 1.5 2015-09-04 12:01:32 +00:00
Alvaro Saurin
01d1bcfe9c Improved error message when docker-squash is not detected 2015-08-28 14:14:26 +02:00
Tom Wilkie
d8ac16d3f3 Gather container IP addresses from Docker and Weave, and apply them to nodes in the container topology. 2015-08-26 10:19:08 +00:00
David Kaltschmidt
e518bedecb Update the JS tooling
* get rid of gulp
* use webpack-dev-server to serve app.js
* express serves static files
* 2 webpack configs: local and production
* for development with backend, websocket URL is injected
* remove unneeded static files
2015-08-24 12:41:17 +02:00
Tom Wilkie
9289b6626a Review feedback 2015-08-18 11:21:02 +00:00
Tom Wilkie
efeba4a2ed Use rebuild-image script from tools.git
- Add some extra files to build image
- Add make to UI build container
2015-08-17 16:26:06 +00:00
Peter Bourgon
b9afa67ad6 gopacket-based traffic sniffing 2015-08-03 10:55:59 +02:00
Tom Wilkie
0043e9f37d Remove binaries on make clean. 2015-07-06 14:06:08 +00:00
Peter Bourgon
37c99b71ea Merge pull request #293 from weaveworks/rename-components
In Docker, {app,probe} -> {scope-app,scope-probe}
2015-07-02 11:50:05 +01:00
Peter Bourgon
f4b3930a19 Probe re-org
- tag/weave* -> package overlay
- tag/origin_host* -> package host
- tag/topology* -> package main
2015-06-30 10:18:00 +02:00
Peter Bourgon
ea9eaae26a In Docker, {app,probe} -> {scope-app,scope-probe} 2015-06-29 18:59:19 +02:00