By Yuri Gubin VP of Cloud Technology, Solution Architect
Why would one create a package?
Once you get familiar with DC/OS, the open source project that was created by Mesosphere you get access to packages certified by Mesosphere. There are several ways to deploy your service into DC/OS: (1) use dcos marathon command in CLI; (2) use Marathon REST API directly; (3) deploy your service as a package. Using package approach makes your solution consistent with the environment and gives other benefits.
The aim of this post is to show how to create your own simple package and start using it in your DC/OS managed cluster.
You need to have DC/OS cluster up and running and DC/OS CLI installed. You can find instructions how to do this here https://dcos.io/installing.
Redis as a Package
As an example here I will create a package for vanilla Redis. It is a standalone instance that can be used by your solution. Note that there is Redis framework already in the list of DC/OS packages. While being extremely powerful this framework is not required for every solution. Sometimes all we need is a simple and lightweight service running as container.
The service you want to create a package for should have a Docker image already. For this example there is an image called redis:3.0.7.