mirror of
https://github.com/weaveworks/scope.git
synced 2026-08-18 11:56:39 +00:00
weaveworks/scope#1507. Adding Marathon JSON for launching on minimesos cluster
This commit is contained in:
@@ -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/
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user