weaveworks/scope#1507. Adding Marathon JSON for launching on minimesos cluster

This commit is contained in:
Viktor Sadovnikov
2016-05-16 18:58:19 +02:00
parent 2113795b9e
commit cab38c8515
2 changed files with 65 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
# Launching Weave Scope on Apache Mesos Cluster
## Launching on minimesos Cluster
`minimesos` project enables running Apache Mesos cluster on a single machine for prototyping and unit testing of Mesos
frameworks. All running components of `minimesos` cluster are represented by docker containers. To enable reuse of local
docker images, docker in Mesos Agent containers reuses `docker.sock` file of the host. Therefore all started in Agents
containers are also seen on the host. This setup gives single Weave Scope container access to all containers running in
`minimesos` cluster.
Launching of Weave Scope by providing content `minimesos.json` file to Marathon is a part of default `minimesos` cluster. If
removed from configuration, Weave Scope can be added to the running cluster by `minimesos install --marathonFile <URL or path to minimesos.json>`
UI of Weave Scope can be accessed on http://172.17.0.1:4040/
+51
View File
@@ -0,0 +1,51 @@
{
"id": "weave-scope",
"cpus": 1,
"mem": 128,
"instances": 1,
"constraints": [
[
"hostname",
"UNIQUE"
]
],
"container": {
"type": "DOCKER",
"docker": {
"image": "weaveworks/scope:0.15.0",
"network": "HOST",
"privileged": true,
"parameters": [
{
"key": "pid",
"value": "host"
},
{
"key": "name",
"value": "weavescope"
}
]
},
"volumes": [
{
"containerPath": "/var/run/docker.sock",
"hostPath": "/var/run/docker.sock",
"mode": "RW"
}
]
},
"args": [
"--probe.docker",
"true"
],
"env": {
"CHECKPOINT_DISABLE": ""
},
"portDefinitions": [
{
"port": 4040,
"protocol": "tcp",
"name": "http"
}
]
}