marathon icon indicating copy to clipboard operation
marathon copied to clipboard

How to build custom mesosphere.marathon/ui jar ?

Open tmmi opened this issue 10 years ago • 3 comments

from https://github.com/mesosphere/marathon-ui

tmmi avatar May 11 '16 09:05 tmmi

I'm guessing a simple way is to replace the contents of the UI webjar within the locally built Marathon JAR with the contents of the Marathon UI dist folder once you've followed the instructions on how to build your UI locally. A webjar is essentially a .zip file, so just extract it to reveal its contents. Then pack it all up again and you should be good to go. Let me know if this helps, @tmmi .

pierluigi avatar May 11 '16 09:05 pierluigi

Thanks, for tip. I build ui npm run dist and pack with zip -r ui-1.2.1-SNAPSHOT.zip dist rename to jar and put into my local m2repo into proper directory .m2/repository/mesosphere/marathon/ui/1.2.1-SNAPSHOT/ Next I change in marathon val MarathonUI = "1.2.1-SNAPSHOT" and add to resolvers :+ Resolver.mavenLocal

But test failed: *** 1 TEST FAILED *** WebJarServletTest:

  • Get /ui/ will return the index.html *** FAILED *** (8 milliseconds) "" did not include substring "Marathon" (WebJarServletTest.scala:61)

tmmi avatar May 11 '16 11:05 tmmi

Note: This issue has been migrated to https://jira.mesosphere.com/browse/MARATHON-2066. For more information see https://groups.google.com/forum/#!topic/marathon-framework/khtvf-ifnp8.

meichstedt avatar Mar 07 '17 11:03 meichstedt