Merge pull request #1509 from sadovnikov/master

#1507. Adding Marathon JSON for launching on minimesos cluster
This commit is contained in:
Ilya Dmitrichenko
2016-05-31 14:17:40 +01:00
2 changed files with 71 additions and 0 deletions

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": "true"
},
"portDefinitions": [
{
"port": 4040,
"protocol": "tcp",
"name": "http"
}
]
}

View File

@@ -15,6 +15,7 @@ The following topics are discussed:
* [Using Docker Compose in Service Mode](#docker-compose-sercice)
* [Installing Scope on Kubernetes](#k8s)
* [Installing Scope on Amazon ECS](#ecs)
* [Installing Scope on minimesos](#minimesos)
* [Installing Scope on Mesosphere DC/OS](#dcos)
##<a name="docker"></a>Installing Scope on Docker
@@ -222,6 +223,25 @@ The link below will launch a sample app using a Cloudformation template, but you
For step by step instructions on how to configure the stack, see: [Install Weave to AWS with One-Click](https://www.weave.works/deploy-weave-aws-cloudformation-template/)
##<a name="minimesos"></a>Installing Scope on minimesos
[minimesos](https://github.com/ContainerSolutions/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 its configuration file, Weave Scope can be added to the running cluster by
`minimesos install --marathonFile <URL or path to minimesos.json>`. Example for using the latest, not released yet, version
of Marathon task file
```
minimesos install --marathonFile https://raw.githubusercontent.com/weaveworks/scope/master/examples/mesos/minimesos.json
```
UI of Weave Scope becomes accessible on http://172.17.0.1:4040/
##<a name="dcos"></a>Installing Scope as a DC/OS Package
Scope can be installed as a DC/OS Package through the open Universe.