Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AgilData/mesos-docker-tutorial
Tutorial on building a Mesos framework in Java to launch Docker containers on slaves
https://github.com/AgilData/mesos-docker-tutorial
Last synced: about 1 month ago
JSON representation
Tutorial on building a Mesos framework in Java to launch Docker containers on slaves
- Host: GitHub
- URL: https://github.com/AgilData/mesos-docker-tutorial
- Owner: AgilData
- Created: 2014-10-01T16:25:41.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-01T21:31:57.000Z (about 10 years ago)
- Last Synced: 2024-09-08T12:14:35.916Z (4 months ago)
- Language: Java
- Homepage:
- Size: 164 KB
- Stars: 72
- Watchers: 12
- Forks: 40
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-mesos - Example Mesos framework in Java to launch Docker containers
README
mesos-docker-tutorial
=====================Tutorial on building a Mesos framework in Java to launch Docker containers on slaves.
The full tutorial will be available on the CodeFutures web site shortly.
Here are some brief instructions to running this code.
First, install mesos 0.20.1 and Docker 1.0.0 or greater. This code was tested with Docker 1.2.0.
Start the Mesos master and slave:
nohup mesos-master --ip=127.0.0.1 --work_dir=/tmp >mesos-master.log 2>&1 &
nohup mesos-slave --master=127.0.0.1:5050 --containerizers=docker,mesos >mesos-slave.log 2>&1 &
Build the framework:
mvn package
Run the framework:
java -classpath target/cf-tutorial-mesos-docker-1.0-SNAPSHOT-jar-with-dependencies.jar com.codefutures.tutorial.mesos.docker.ExampleFramework 127.0.0.1:5050 fedora/apache 2