Please make sure you've installed and properly configured the following software:
- Docker 1.9
- sbt 0.13.8
- Node 5 including NPM
npm install
If you're not using something like dnsdock or dinghy (OS X) for easy container discovery/access, please configure your hosts as follows:
mesos-master.docker 192.168.99.100
mesos-slave.docker 192.168.99.100
marathon.docker 192.168.99.100
Use $ docker-machine ip $DOCKER_MACHINE_NAME
to get the current docker machine ip and add those lines to your etc/hosts
configuration.
Before we can start the development environment, we need to initially build and pack the plugin to start Marathon with with the correct plugin configuration. Use the following command to build and pack the plugin:
npm run pack
You could alternatively use sbt to build and pack the plugin:
sbt clean build-ui pack
The following command will download, configure and start a basic Zookeeper, Mesos and Marathon setup for you. It will also proxy the plugin for you, to eliminate the need to restart Marathon after every change.
docker-compose up
Open http://marathon.docker:8080 and enjoy your plugin.
Running the following command will build your plugin and watch for file changes to rerun the build.
npm run build -- --watch
You could user either of the following commands to build and pack the plugin:
npm run pack
sbt clean build-ui pack