I'm trying to set up a docker / fig Mesos cluster. I'm new to fig and Docker. Docker has plenty of documentation, but I find myself struggling to understand how to work with fig.
Here's my fig.yaml at the moment:
zookeeper:
image: jplock/zookeeper
ports:
- "49181:2181"
mesosMaster:
image: mesosphere/mesos:0.19.1
ports:
- "15050:5050"
links:
- zookeeper:zk
command: mesos-master --zk=zk --work_dir=/var/log --quorum=1
mesosSlave:
image: mesosphere/mesos:0.19.1
links:
- zookeeper:zk
command: mesos-slave --master=zk
Thanks !
Edit:
Thanks to Mark O`Connor's help, I've created a working docker-based mesos setup (+ storm, chronos, and more to come).
Enjoy, and if you find this useful - please contribute: https://github.com/yaronr/docker-mesos
PS. Please +1 Mark's answer :)
You have not indicated the errors you were experiencing.
This is the documentation for the image you're using:
What really worried me about those images is that they were untrusted and no source was immediately available.
So I re-created your example using the mesosphere github as inspiration:
Updated Example
Example updated to include the chronos framework
Build the base image (only has to be done once)
Run fig to start an instance of each service:
One useful thing about fig is that you can scale up the slaves
The mesos master console should show 5 slaves running
And the chronos framework should be running and ready to launch tasks
fig.yml
Notes:
build.sh
mesos/Dockerfile
mesos-master/Dockerfile
mesos-slave/Dockerfile
mesos-chronos/Dockerfile
Notes: