---
title: minimesos 0.9.0 - new cli commands, Marathon tokens and Mesos workshop
description: "Last week we released minimesos 0.9.0. You can install it using the usual installer command: curl -sSL https://minimesos.org/install | sh. The Docker images are available on Docker Hub and the jar is available via Jitpack."
image: http://cdn2.hubspot.net/hubfs/2668666/All-InOne-2016/Image/bg-img.jpg
---

Check out our **[Cloud Native Services](https://www.container-solutions.com/services) **and** **book a call with one of our experts today! 

[![Container Solutions](https://blog.container-solutions.com/hubfs/CS_blog/logo-main.svg "Container Solutions")](http://container-solutions.com)

- share:
- [**](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fblog.container-solutions.com%2Fminimesos-0-9-0-new-cli-commands-ip-tokens-marathon-json)
- [**](https://www.twitter.com/share?url=https%3A%2F%2Fblog.container-solutions.com%2Fminimesos-0-9-0-new-cli-commands-ip-tokens-marathon-json)
- [**](http://www.linkedin.com/shareArticle?mini=true&url=https://blog.container-solutions.com/minimesos-0-9-0-new-cli-commands-ip-tokens-marathon-json)
- [**](https://blog.container-solutions.com/minimesos-0-9-0-new-cli-commands-ip-tokens-marathon-json#)

[![](http://cdn2.hubspot.net/hubfs/2668666/All-InOne-2016/Image/bg-img.jpg) ](https://blog.container-solutions.com/minimesos-0-9-0-new-cli-commands-ip-tokens-marathon-json)

[Microservices](https://blog.container-solutions.com/tag/microservices), [Miscellaneous](https://blog.container-solutions.com/tag/miscellaneous)

# minimesos 0.9.0 - new cli commands, Marathon tokens and Mesos workshop

[Frank Scholten](https://blog.container-solutions.com/author/frank-scholten)

![Frank Scholten](https://blog.container-solutions.com/hubfs/frank.jpg)

 May 11, 2016

 6 minutes Read

[![MiniMesos logo - MiniMesos 0.9.0](https://blog.container-solutions.com/hs-fs/hubfs/Imported_Blog_Media/minimesos-1.png?width=150&name=minimesos-1.png)](https://blog.container-solutions.com/hubfs/Imported_Blog_Media/minimesos-1.png)

Last week we released [minimesos 0.9.0](https://github.com/ContainerSolutions/minimesos/releases/tag/0.9.0). You can install it using the usual installer command: `curl -sSL https://minimesos.org/install | sh`. The Docker images are available on [Docker Hub](https://hub.docker.com/r/containersol/minimesos/tags/) and the jar is available via [Jitpack](https://jitpack.io/#ContainerSolutions/minimesos).

Minimesos is the experimentation and testing tool for Apache Mesos and features a [Vagrant-like workflow](https://www.vagrantup.com/docs/cli/) and a Java API. The main highlights of this release are new `minimesos ps` and `minimesos uninstall` command and IP address tokens for Marathon JSON files.

# New cli commands

### minimesos ps

The new `minimesos ps` command shows what is running on the cluster. It prints the framework, the task name and its state.

```

$ minimesos ps
marathon	weave-scope	TASK_RUNNING
 
  
```

### minimesos uninstall

Another new command is `minimesos uninstall` command that allows you to uninstall a Marathon app or framework.

```
 

$ minimesos uninstall weave-scope
Deleted app 'weave scope'
$ minimesos ps
$
$ minimesos install --marathonFile https://raw.githubusercontent.com/ContainerSolutions/minimesos/master/opt/apps/weave-scope.json
$ minimesos ps
marathon	weave-scope	TASK_RUNNING
 
  
```

# IP tokens for Marathon JSON files

Marathon apps often require URLs or IPs of services that are needed. To simplify this process minimesos replaces tokens in Marathon JSON files with IP addresses or URLs. As an example, see this Marathon JSON file for Elasticsearch. It contains the token MINIMESOS_ZOOKEEPER. This token will be replaced by minimesos with the full Zookeeper url based on the IP of the Zookeeper container.

```
 
 
{
  "id": "elasticsearch",
  "container": {
    "docker": {
      "image": "mesos/elasticsearch-scheduler:1.0.1",
      "network": "BRIDGE"
    }
  },
  "args": [
    "--zookeeperMesosUrl", "${MINIMESOS_ZOOKEEPER}",
    "--useIpAddress", "true",
    "--frameworkUseDocker", "false",
    "--elasticsearchNodes", "1"
  ],
  "cpus": 0.2,
  "mem": 512.0,
  "env": {
    "JAVA_OPTS": "-Xms128m -Xmx256m"
  },
  "instances": 1
}
 
  
```

Note that any environment variable that is printed when running `minimesos info` can be used as a token inside a Marathon JSON file.

```
 
 
$ minimesos info
Minimesos cluster is running: 888711247
Mesos version: 0.25
export MINIMESOS_NETWORK_GATEWAY=172.17.0.1
export MINIMESOS_AGENT=http://172.17.0.5:5051; export MINIMESOS_AGENT_IP=172.17.0.5
export MINIMESOS_ZOOKEEPER=zk://172.17.0.3:2181/mesos; export MINIMESOS_ZOOKEEPER_IP=172.17.0.3
export MINIMESOS_MARATHON=http://172.17.0.6:8080; export MINIMESOS_MARATHON_IP=172.17.0.6
export MINIMESOS_CONSUL=http://172.17.0.7:8500; export MINIMESOS_CONSUL_IP=172.17.0.7
export MINIMESOS_MASTER=http://172.17.0.4:5050; export MINIMESOS_MASTER_IP=172.17.0.4
 
  
```

# The minimesosFile is now mandatory

Another change we made since 0.9.0 is that the `minimesosFile` is mandatory for launching a cluster. In the past you could run `minimesos up` and start a default cluster but now you first have to run `minimesos init`.

```
 
 
$ minimesos up
minimesos configuration file is not found. Please generate one with 'minimesos init'
 
  
```

We implemented this change because we wanted to be able to system test every configuration option in the `minimesosFile`. This was hard to do since most of our system tests used the `ClusterArchitecture` class which is separate from the configuration. This change makes our tests nice and compact because every system test is started like this:

```
 

    @ClassRule
    public static final MesosClusterTestRule RULE = MesosClusterTestRule.fromFile("src/test/resources/configFiles/minimesosFile-discoverySystemTest");
 
    public static MesosCluster CLUSTER = RULE.getMesosCluster();
 

  
```

# Learning Mesos with minimesos workshop

Just after we released 0.9.0 [Viktor](https://twitter.com/sadovnikov) and I organized a [Software Circus workshop 'Learning Mesos with minimesos'](http://www.meetup.com/Software-Circus/events/229866381/) at Container Solutions HQ in Amsterdam. The slide deck and exercises are available at [https://github.com/ContainerSolutions/learning-mesos-with-minimesos-workshop](https://github.com/ContainerSolutions/learning-mesos-with-minimesos-workshop). People said they enjoyed the workshop and learned a lot. We also learned and found a few issues and got some ideas on improving minimeos. The weather that day was great so we ended the afternoon with a few beers at the rooftop terrace. Thanks everyone who participated!

[![Frank - MiniMesos 0.9.0](https://blog.container-solutions.com/hs-fs/hubfs/Imported_Blog_Media/frank-300x225-1.jpg?width=300&name=frank-300x225-1.jpg)](https://blog.container-solutions.com/hubfs/Imported_Blog_Media/frank-1.jpg)[![Workshop 2 - MiniMesos 0.9.0](https://blog.container-solutions.com/hs-fs/hubfs/Imported_Blog_Media/workshop2-300x225-1.jpg?width=300&name=workshop2-300x225-1.jpg)](https://blog.container-solutions.com/hubfs/Imported_Blog_Media/workshop2-1.jpg)[![Workshop - MiniMesos 0.9.0](https://blog.container-solutions.com/hs-fs/hubfs/Imported_Blog_Media/workshop-225x300-1.jpg?width=225&name=workshop-225x300-1.jpg)](https://blog.container-solutions.com/hubfs/Imported_Blog_Media/workshop-3.jpg)

# Keep in touch

Thanks for reading! Keep in touch by commenting on the blog or talk to us at [@minimesos](https://twitter.com/minimesos) and [@ContainerSoluti](https://twitter.com/Containersoluti). Check out the [open issues](https://github.com/containersolutions/mini-mesos/issues) on Github. Do you have an idea on how to improve minimesos? Please open an issue or add a PR at the [minimesos](https://github.com/containersolutions/mini-mesos) Github repo. We hope you find minimesos useful. See you next time!

[### It Orchestrated On My Machine - ContainerPilot and Minimesos...

](https://blog.container-solutions.com/orchestrated-machine-containerpilot-minimesos-travelling-orchestration)

[![prev-arrow](https://cdn2.hubspot.net/hubfs/3842749/Wow%202019/Images/left-arrow.png) Previous article](https://blog.container-solutions.com/orchestrated-machine-containerpilot-minimesos-travelling-orchestration)

[ Next article ![next-arrow](https://cdn2.hubspot.net/hubfs/3842749/Wow%202019/Images/right-arrow.png) ](https://blog.container-solutions.com/space-beyond-culture)

[

### The Space Beyond - Our Culture

](https://blog.container-solutions.com/space-beyond-culture)

Comments

Leave your Comment

![cs-logo-white](https://blog.container-solutions.com/hs-fs/hubfs/cs-logo-white.png?width=150&height=61&name=cs-logo-white.png "cs-logo-white")

#### **Talk to sales**

[info@container-solutions.com](mailto:info@container-Solutions.com)

#### Stay In Touch

- [**](https://www.linkedin.com/company/container-solutions/)
- [**](https://twitter.com/containersoluti)

© 2024 Container Solutions