diff --git a/examples/mesos/minimesos.json b/examples/mesos/minimesos.json new file mode 100644 index 0000000000..30452589c9 --- /dev/null +++ b/examples/mesos/minimesos.json @@ -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" + } + ] +} \ No newline at end of file diff --git a/site/installing.md b/site/installing.md index 225407c01e..6e2cc4b108 100644 --- a/site/installing.md +++ b/site/installing.md @@ -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) ##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/) +##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 `. 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/ + ##Installing Scope as a DC/OS Package Scope can be installed as a DC/OS Package through the open Universe.