Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1507. Adding Marathon JSON for launching on minimesos cluster #1509

Merged
merged 4 commits into from
May 31, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions examples/mesos/minimesos.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
20 changes: 20 additions & 0 deletions site/installing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down