Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mesosphere/scala-sbt-mesos-framework.g8
https://github.com/mesosphere/scala-sbt-mesos-framework.g8
dcos dcos-orchestration-guild
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mesosphere/scala-sbt-mesos-framework.g8
- Owner: mesosphere
- Created: 2014-01-29T20:53:52.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-18T00:00:20.000Z (over 9 years ago)
- Last Synced: 2024-01-26T08:01:28.432Z (5 months ago)
- Topics: dcos, dcos-orchestration-guild
- Language: Scala
- Size: 139 KB
- Stars: 23
- Watchers: 168
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Lists
- awesome-mesos - Write a Scala Mesos Framework in 7 Steps
README
# Write a Scala Mesos Framework in 7 Steps
This is a [giter8](http://github.com/n8han/giter8) template. The result of applying this template is a bare-bones [Apache Mesos](http://mesos.apache.org) framework in [Scala](http://scala-lang.org) using [SBT](http://scala-sbt.org) for builds and [Vagrant](http://vagrantup.com) for testing on a singleton cluster.
## Before we start
- You need [git](http://git-scm.com)
- You need [giter8](https://github.com/n8han/giter8)
- You need [SBT](http://scala-sbt.org)
- You need [vagrant](http://vagrantup.com)
- You need [virtual box](https://www.virtualbox.org/wiki/Downloads)## Procedure
1. Clone this _giter8_ template
$ g8 mesosphere/scala-sbt-mesos-framework
package [com.domain]: io.mycompany
name [My Mesos Framework]: My Great Framework
Template applied in ./my-great-framework1. Change into the new project directory
$ cd my-great-framework
1. Inspect the template output with your favorite editor. The build definition is in `project/Build.scala` and the framework implementation is in `src/main/scala/`.
1. Edit the framework's configuration file (`src/main/resources/application.conf`) to reflect the master's private IP address on the virtual machine
io.mycompany {
mesos {
master = "10.141.141.10:5050"
}
}1. Create and start a virtual machine running the Mesos master and the Mesos slave
$ vagrant up
1. Run your new framework with SBT
$ sbt run
1. Observe STDOUT as your framework registers with the Mesos master and begins receiving resource offers