The Marathon plugin interface is needed to compile this package.
It's specified like compileOnly "mesosphere.marathon:plugin-interface_2.11:1.5.1"
for Gradle.
But Mesosphere Maven repository may lack some Marathon versions.
In this case you have to build Marathon plugin interface library by yourself:
- Go grab the Marathon sources.
- Switch to preferred tag/version (
git checkout v1.5.1
for example). - Build and publish to local Maven repo with
sbt publishM2
.
To build the package run this command: ./gradlew clean build
This will compile and package all plugins.
The resulting jars with all dependencies are put into the plugin directories: build/libs
.
This directories can be used directly as plugin directory for Marathon.
- Run
./gradlew clean build
in the repository's root directory. - Locate the Plugin configuration file (look at the Plugin's README.md for a hint)).
- Start Marathon with the following flags:
--plugin_dir <plugin_path>/build/libs --plugin_conf <path_to_the_plugin_config_file>
. - Or even better - you can use docker-compose file.
Example Authentication and Authorization Plugin (Java based). See README.md.
Authentication and Authorization Plugin performed against htpasswd file. See README.md.