tapad / sbt-marathon Goto Github PK
View Code? Open in Web Editor NEWAn sbt plugin for launching application containers on the Mesosphere Marathon platform. (archived as unmaintained)
License: BSD 3-Clause "New" or "Revised" License
An sbt plugin for launching application containers on the Mesosphere Marathon platform. (archived as unmaintained)
License: BSD 3-Clause "New" or "Revised" License
When evaluating templates, the following will be logged at the info level:
[info] Serializing TemplateDriver($632f4ea7aedd2127f2ca$$anon$1@6575280)
[info] Generating template @ /path/to/sample-marathon/src/main/resources/templates/marathon_request.scala.json with driver: TemplateDriver($632f4ea7aedd2127f2ca$$anon$1@6575280)
[info] Running sbtmarathon.TemplateEvaluatorFacade /path/to/sample-marathon/src/main/resources/templates/marathon_request.scala.json /path/to/sample-marathon/src/main/resources/templates /path/to/sample-marathon/src/main/resources/generated /var/folders/p8/jm3dc2bn27sfqsm09gn88stm0000gn/T/driver-1386496756734946076.json /var/folders/p8/jm3dc2bn27sfqsm09gn88stm0000gn/T/results-5640473513015691654.txt
These log invocations are in the templating plugin (not the templating-lib -- that uses debug
and warn
levels exclusively), so that's what we have to clean up.
Also, as of now, we are expecting their to be an slf4j logging implementation available on the user's classpath. Perhaps a better course of action is to, by default, add the slf4j-simple configuration to our Templating
ivy configuration but allow users the option to remove this if they already have a logging implementation on their classpath.
Hi! Thanks for the plugin!
Does it work with marathon running on https protocol?
I'm getting 400 The plain HTTP request was sent to HTTPS port
from Nginx. I've already tried to specify 443 port in the marathonServiceUrl
.
Thanks!
Currently sbt-marathon publishes a bunch of artifacts under https://bintray.com/package/files/tapad-oss/sbt-plugins/sbt-marathon.
Due to a new security restriction we are implementing, we need to set a prefix for the linkage, but Bintray can add one prefix (in the form of /abc/def/
) per package.
Since latest version seem to be under /com.tapad.sbt/sbt-marathon
, I am picking /com.tapad.sbt/sbt-marathon
as the prefix, but this means that some of the artifacts (e.g. files under /com/tapad/sbt/marathon-util_2.10/0.1.0rc3
) will no longer be linked to https://bintray.com/sbt/sbt-plugin-releases/.
This issue is the formal documentation and verification of the following error when invoking the marathonServiceRestart
task:
> marathonServiceRestart
[trace] Stack trace suppressed: run last project/*:marathonServiceRestart for the full output.
[error] (server/*:marathonServiceRestart) Unable to restart application project/version
[error] Total time: 1 s, completed May 31, 2017 5:51:14 AM
> last project/*:marathonServiceRestart
java.lang.RuntimeException: Unable to restart application project/version
at scala.sys.package$.error(package.scala:27)
at sbtmarathon.MarathonSettings$$anonfun$defaultSettings$7.apply(MarathonSettings.scala:130)
at sbtmarathon.MarathonSettings$$anonfun$defaultSettings$7.apply(MarathonSettings.scala:117)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
at sbt.std.Transform$$anon$4.work(System.scala:63)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.Execute.work(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
As far as I can tell, this regression was introduced when migrating logic from the internal plugin to the oss plugin.
This issue effects the current main line. Originally reported @ #3 (comment) and verified against v0.1.1
and the HEAD
of master
.
Trying to create .json file for marathon from templating plugin
This string to ./project/plugins.sbt was added:
addSbtPlugin("com.tapad.sbt" % "sbt-marathon-templating" % "0.2.0")
Also ./build.sbt was edited:
enablePlugins(DockerPlugin, MarathonPlugin, TemplatingPlugin)
After that sbt command are failed with a message:
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] :: com.tapad.sbt#sbt-marathon-templating;0.2.0: not found
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies
[warn] exist with the requested attributes.
[warn] com.tapad.sbt:sbt-marathon-templating:0.2.0 (scalaVersion=2.12, sbtVersion=1.0)
[warn]
[warn] Note: Unresolved dependencies path:
[warn] com.tapad.sbt:sbt-marathon-templating:0.2.0 (scalaVersion=2.12, sbtVersion=1.0)
scalaVersion = "2.12.4"
sbt.version = 1.0.2
Is it a bug or my mistake?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.