Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sbt docker:stage fails on Windows 10 #823

Closed
oporkka opened this issue Jun 23, 2016 · 4 comments
Closed

sbt docker:stage fails on Windows 10 #823

oporkka opened this issue Jun 23, 2016 · 4 comments
Labels

Comments

@oporkka
Copy link
Contributor

oporkka commented Jun 23, 2016

This is related to #573

Steps to reproduce on Windows 10 machine (I tried using both bash.exe and cmd.exe):

  • Check out sbt-native-packager master branch
  • Go to test-project-docker folder
  • Run sbt docker:stage

You get stack trace

java.lang.ArrayIndexOutOfBoundsException: 1
        at com.typesafe.sbt.packager.docker.DockerPlugin$.com$typesafe$sbt$packager$docker$DockerPlugin$$makeAdd(DockerPlugin.scala:162)
        at com.typesafe.sbt.packager.docker.DockerPlugin$$anonfun$projectSettings$8.apply(DockerPlugin.scala:89)
        at com.typesafe.sbt.packager.docker.DockerPlugin$$anonfun$projectSettings$8.apply(DockerPlugin.scala:80)
        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(Unknown Source)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

What seems to have happened is that f521679 (#573, #588) has been reverted by 101311e (#760, #765) in 1.1.1

oporkka pushed a commit to oporkka/sbt-native-packager that referenced this issue Jun 23, 2016
muuki88 pushed a commit that referenced this issue Jun 24, 2016
@muuki88 muuki88 added the docker label Jun 24, 2016
@muuki88
Copy link
Contributor

muuki88 commented Jun 24, 2016

Thank for being patient with this windows/docker issue and for the research to fix this regression we introduced.

@morrobkg
Copy link

morrobkg commented Jul 5, 2016

With the latest version (1.1.2), I'm getting this same error on a :stage & :publish.
Docker version: 1.10.0
Docker-machine version: 0.6.0
Windows 7
Scala 2.11.8

Originally had to update the sbt native packager to 1.1.2 for the -f deprecated fix.

@muuki88
Copy link
Contributor

muuki88 commented Jul 6, 2016

I think we haven't back-ported the fix to 1.1.x yet. Would you mind making a pull request to the 1.1.x branch with these changes: #824

oporkka pushed a commit to oporkka/sbt-native-packager that referenced this issue Jul 12, 2016
@oporkka
Copy link
Contributor Author

oporkka commented Jul 12, 2016

@muuki88 added #842 for backport

muuki88 pushed a commit that referenced this issue Jul 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants