@@ -21,7 +21,7 @@ This example copies the resulting binaries into the host-mounted volume `/tmp/ta
21
21
22
22
To build and copy the binaries:
23
23
24
- $ docker run --rm -v /tmp/target:/target k8s -mesos-builder
24
+ $ docker run --rm -v /tmp/target:/target jdef/kubernetes -mesos:build-latest
25
25
...
26
26
git clone https://${GOPKG}.git .
27
27
Cloning into '.'...
@@ -43,28 +43,30 @@ To build and copy the binaries:
43
43
44
44
Alternatively, it can be used to generate binaries from a branch:
45
45
46
- $ docker run --rm -v /tmp/target:/target -e GIT_BRANCH=default_port k8s -mesos-builder
46
+ $ docker run --rm -v /tmp/target:/target -e GIT_BRANCH=default_port jdef/kubernetes -mesos:build-latest
47
47
48
48
Want a quick-and-dirty development environment to start hacking?
49
49
50
- $ docker run -ti -v /tmp/target:/target k8s -mesos-builder bash
50
+ $ docker run -ti -v /tmp/target:/target jdef/kubernetes -mesos:build-latest bash
51
51
root@5883c3a460a6$ make bootstrap all
52
52
53
53
Need to build the project, but from a forked git repo?
54
54
55
- $ docker run --rm -v /tmp/target:/target -e GIT_REPO=https://github.com/whoami/kubernetes-mesos k8s -mesos-builder
55
+ $ docker run --rm -v /tmp/target:/target -e GIT_REPO=https://github.com/whoami/kubernetes-mesos jdef/kubernetes -mesos:build-latest
56
56
57
57
To hack in your currently checked out repo mount the root of the github repo to ` /snapshot ` :
58
58
59
- $ docker run -ti -v /tmp/target:/target -v /home/jdef/kubernetes-mesos:/snapshot k8s -mesos-builder bash
59
+ $ docker run -ti -v /tmp/target:/target -v /home/jdef/kubernetes-mesos:/snapshot jdef/kubernetes -mesos:build-latest bash
60
60
61
61
## Profiling
62
62
63
63
Profiling in the cloud with Kubernetes-Mesos is easy!
64
64
First, ssh into your Mesos cluster and generate a set of project binaries with profiling enabled (the ` TAGS ` variable is important here):
65
65
66
+ $ dpkg -l | grep -e mesos # verify the mesos version
67
+ ii mesos 0.20.1-1.0.debian75 amd64 Cluster resouce manager with efficient resource isolation
66
68
$ docker run --rm -ti -e GIT_BRANCH=offer_storage -e TAGS=profile \
67
- -v $(pwd)/bin:/target jdef/kubernetes-mesos:dockerbuild
69
+ -v $(pwd)/bin:/target jdef/kubernetes-mesos:build-mesos-0.20.1-compat
68
70
69
71
Next, [ start the framework] ( https://github.com/mesosphere/kubernetes-mesos/#start-the-framework ) and schedule some pods.
70
72
Once the framework and executors are up and running you can start capturing heaps:
@@ -80,6 +82,6 @@ Additional packages may be required to support the reporting format you desire.
80
82
81
83
$ apt-get install ghostscript graphviz
82
84
$ go tool pprof --base=./framework.heap.20141117175634 --inuse_objects --pdf \
83
- ./bin/kubernetes-executor ./framework.heap.20141120162503 >framework-20141120a.pdf
85
+ ./bin/kubernetes-mesos ./framework.heap.20141120162503 >framework-20141120a.pdf
84
86
85
87
For more details regarding profiling read the [ pprof] ( http://golang.org/pkg/net/http/pprof/ ) package documentation.
0 commit comments