GithubHelp home page GithubHelp logo

tapad / sbt-marathon Goto Github PK

View Code? Open in Web Editor NEW
22.0 11.0 3.0 125 KB

An sbt plugin for launching application containers on the Mesosphere Marathon platform. (archived as unmaintained)

License: BSD 3-Clause "New" or "Revised" License

Scala 99.51% Shell 0.49%
sbt mesos marathon mesos-marathon

sbt-marathon's People

Contributors

jeffreyolchovy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sbt-marathon's Issues

Reduce log noise during template evaluation

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.

marathon running on https://

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!

FYI Bintray prefix

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/.

Debug marathonServiceRestart task

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.

Templating plugin not found

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.