https://github.com/containersolutions/mesos-hello-world
Very simple hello world mesos framework to demonstrate mini-mesos
https://github.com/containersolutions/mesos-hello-world
Last synced: about 1 year ago
JSON representation
Very simple hello world mesos framework to demonstrate mini-mesos
- Host: GitHub
- URL: https://github.com/containersolutions/mesos-hello-world
- Owner: ContainerSolutions
- License: apache-2.0
- Created: 2015-09-07T13:43:18.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-01-11T10:35:30.000Z (over 10 years ago)
- Last Synced: 2025-03-21T05:11:35.350Z (over 1 year ago)
- Language: Java
- Size: 78.1 KB
- Stars: 12
- Watchers: 46
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mesos-hello-world
Very simple hello world mesos framework to demonstrate http://github.com/containersolutions/mini-mesos.
## NOTE - This project has been integrated into minimesos
Checkout the [test-framework module in minimesos](https://github.com/ContainerSolutions/minimesos/tree/master/test-framework-docker)
## Introduction
This project creates a very simple Apache Mesos framework, with dockerized scheduler and exector containers.
The goal is to use the scheduler to start a number of dummy "webapps" (webservers that show "Hello world" on /)
then test the framework using the mini-mesos project.
## Non-linux users
If you are developing on an envrionment other than Linux, then you will need to use a VM. We use docker-machine.
You will then need to export the docker settings. E.g.:
```
docker-machine create -d virtualbox --virtualbox-memory 4096 --virtualbox-cpu-count 2 dev
eval "$(docker-machine env dev)"
```
To run the system tests, non-linux users will have to route all communications to the docker containers via the VM IP address:
```
sudo route -n delete 172.17.0.0/16 $(docker-machine ip dev) ; sudo route -n add 172.17.0.0/16 $(docker-machine ip dev)
```
## Compiling
To build the project (you will need to build the docker images before you run the system tests) simply run:
```
./gradlew build -x test
```
## System test
To run the system tests, run:
```
./gradlew :system-test:test
```
It is also possible to run the system test in Idea, by setting the JUnit environmental variables to point to your docker daemon.