Commit Graph

57 Commits

Author SHA1 Message Date
lysannef
d0f2717c77 Multi-arch containerized build for Cadvisor (#2323)
* ppc64le build for cAdvisor
2019-12-04 14:07:30 -08:00
Daniel, Dao Quang Minh
236f41d419 Add support for go module (#2338)
* add go module support, update go-bindata ref, bump runc dep

```
go mod init github.com/google/cadvisor
go mod tidy

go get github.com/matttproud/golang_protobuf_extensions@c182affec369e30f25d3eb8cd8a478dee585ae7d
go get github.com/containerd/typeurl@5eb25027c9fdd675e1db2bd25af02f5db75027ab
```

Somehow the dependencies retrieved by `go mod init` was mismatched (maybe because
runc itself does not support go module yet ?). This fixes the dependencies retrieved
in go module, the packages bump itself seems sane.

The original go-bindata is unmaintained and is on an old revision, so our usage
of it is outdated. Changed to https://github.com/kevinburke/go-bindata which
seems to be a more official and well maintained fork, and bump to latest version.
2019-12-03 10:41:37 -08:00
David Ashpole
8cef6fa871 fix printed output for prow script 2019-08-22 16:16:29 -07:00
Bhuvanchandra DV
cbf13cdfa2 cadvisor: build: fix broken build with Makefile
When using `make build` to compile the source,
build fails with error/s. The reason is because
of GO_CMD variable is set to 'install' as default,
which is not valid when running `make build` or
`make`.

Depending on the valid git tag, release.sh will
set the GO_CMD variable. If valid git tag is
available e.g.: vx.y.z.beta1, then GO_CMD is
set to `build`.

If valid git tag is not available, release.sh
will any way bails out serving the purpose.
So drop using GO_CMD, to fix the default build.
2018-02-05 19:17:10 +05:30
David Ashpole
66e12ca652 migrate to prow, which uses node-e2e to run tests 2018-02-01 15:20:53 -08:00
Rohit Agarwal
318f28bef6 Vendor Go bindings for NVML. Don't build a static binary.
We can't build a static binary because that would require bundling the
closed source NVML library in cAdvisor.

Instead, gonvml uses dlopen to dynamically load NVML.
2017-11-01 14:41:35 -07:00
Rohit Agarwal
919b369923 Minor cleanup.
- Remove unused travis file.
- Fix Makefile license.
- Update README with new link.
- Fix outdated comment.
2017-09-27 00:22:11 -07:00
Seth Jennings
1a220a2129 add netgo tag to fix segfault 2017-08-15 17:11:43 -05:00
David Ashpole
c2bf2ada34 bump jenkins go version 2017-06-01 11:12:34 -07:00
Tim St. Clair
a5cf6abf6d
Test cAdvisor with the latest go patch release 2017-02-27 11:50:46 -08:00
Tim St. Clair
701cd36b5c
Record sha256 for cAdvisor releases 2017-02-24 10:15:11 -08:00
David Ashpole
090529ecee fixed boilerplate verification 2017-01-04 13:18:45 -08:00
Vish Kannan
95044dd480 Merge branch 'master' into docs 2017-01-03 16:15:13 -08:00
Tim St. Clair
ad3716a314
Build & test cAdvisor with go 1.7.2 2016-12-02 10:27:16 -08:00
Tim St. Clair
6ce987b702
Streamline release process 2016-11-16 17:28:35 -08:00
Tim St. Clair
81ac3bfeec
Clean up unused variable in check_gofmt.sh 2016-10-20 13:12:01 -07:00
Tim St. Clair
bd7ea539bc Merge branch 'master' into assets 2016-09-19 15:36:17 -07:00
Tim St. Clair
8abfbd266b Merge branch 'master' into build 2016-09-19 15:30:01 -07:00
Tim St. Clair
aecc17d08b
Ensure assets are rebuilt in presubmit 2016-09-19 14:56:43 -07:00
Tim St. Clair
ee53bd3124
Better release failure messages 2016-09-19 14:56:27 -07:00
Tim St. Clair
a14b6c7a6a
Don't include modtime with built UI assets 2016-09-19 14:52:13 -07:00
Tim St. Clair
f66f9b127c
Refresh sudo credentials before running integration test 2016-09-19 14:42:16 -07:00
Tim St. Clair
96d7e923ee
Allow alpha/beta tagged releases 2016-09-13 12:06:28 -07:00
Vishnu kannan
2eecea1353 Move presubmit to a make rule. Update docs to not use make all unless necessary.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-07-11 17:27:24 -07:00
Vishnu kannan
c1f3340830 update jenkins script to use make
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-07-11 13:22:18 -07:00
Vishnu kannan
38ea12a533 update scripts and docs to not mention godep for builds
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-07-11 12:40:05 -07:00
Tim St. Clair
35f7bc5ee7 Move mocks to testing package to remove +build tags
Some go tools (e.g. godef, gorename) don't handle +build tags well, so
I refactored some packages to remove the test tags from cAdvisor.
2016-07-06 14:15:43 -07:00
Tim St. Clair
2c69c0b634 Detect race conditions in jenkins integration tests
Injected a race into cadvisor.go and verified this caught it. Also, fix
the runner to grab the logs even when the tests don't complete.
2016-06-30 19:10:08 -07:00
Tim St. Clair
42dda5ef64 Run the integration tests with the race detector enabled
The integration test script was changed so that it aborts the testing
when the cAdvisor binary exits with a non-zero error code.

Also in this PR:
- clean up makefile to print more informative output
- change make release to build the release binary
2016-06-30 17:29:24 -07:00
Tim St. Clair
4b80217dcc Update jenkins script to match job configs
Update jenkins_e2e.sh to match the up-to-date configurations of the
cAdvisor jenkins PR-builder and CI jobs. Once this is merged, we can
update those jobs to call this script instead.
2016-06-30 13:29:41 -07:00
Tim St. Clair
306854a42d Also check for dirty releases 2016-06-29 18:27:07 -07:00
Tim St. Clair
151d4912dc Simplify cAdvisor release versioning
- Eliminate version/VERSION in favor of parsing git versions
- Enforce that releases are built against tagged versions
- Delete the broken release script, change `make release` to build the release
2016-06-29 18:27:07 -07:00
Vishnu kannan
7f6127620a Link cAdvisor statically.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-05-20 13:39:13 -07:00
Tim St. Clair
e1af50bb63 Add 'release mode' to build script 2016-05-12 15:09:48 -07:00
Tim St. Clair
d624bcde0c Fix build for go 1.6 2016-05-03 10:32:04 -07:00
Tim St. Clair
4bebcc0e1f Merge pull request #1245 from ainsleyc/separate-templates
Moved html template into assets directory
2016-05-02 16:33:36 -07:00
Tim St. Clair
b635018655 Switch to for faster incremental builds 2016-05-02 11:35:42 -07:00
Ainsley Chong
b7faf83410 Moved html template into assets directory
Reformated to .html file, and added build commands to assets.sh
2016-04-28 13:54:15 -07:00
Tim St. Clair
468b7d10e4 Merge pull request #1217 from ainsleyc/seperate-assets
Separated asset files into their own folder
2016-04-26 11:35:48 -07:00
Ainsley Chong
700c3d1d4d Separated asset files into their own folder with the correct file
formats, and added a script to build them into required .go file using
go-bindata.
2016-04-21 15:16:08 -07:00
Tim St. Clair
9790a0d3f4 Fix docker GetSpec to include image, labels, and env vars 2016-04-15 15:34:24 -07:00
Tim St. Clair
d434a4e534 Improve local cAdvisor integration test script
- Poll localhost:8080/healthz to wait for cAdvisor to start
- Set the script exit code to the test exit status
- Fix bash formatting
- Check for sudo access at the start
2016-04-08 15:54:06 -07:00
Seth Jennings
5b3a4f5070 fix build for rhel7, go 1.4 2016-02-26 23:52:22 -06:00
Vish Kannan
e9739af184 Merge pull request #1110 from timstclair/httptest
Stop leaking testing dependencies (and flags) in non-testing builds
2016-02-12 14:43:45 -08:00
Vishnu kannan
d36991fb42 Fix integration test script.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-11 15:23:02 -08:00
Tim St. Clair
e726534f1f Specify to include test utilities when testing 2016-02-11 14:08:17 -08:00
Vishnu kannan
dee717ab9d Adding a script that will run e2e tests on our jenkins builder.
The script should make updates to the test infra explicit.

Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-08 17:19:56 -08:00
Vishnu kannan
c2a30dba3e Added integration tests for the new api/v2.1/machinestats API.
Updated the v2 client along the way.

Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-01-15 16:05:58 -08:00
Vishnu kannan
c285b726ef Adding a local integration test option in Makefile.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-01-15 15:39:17 -08:00
Tim St. Clair
1e1736ebc9 Fix shell scripts boilerplate 2016-01-12 12:35:46 -08:00