scala - stuck at command "sbt compile" in docker ubuntu -


i try include sbt docker images. however, never works , stuck @ getting org.scala-sbt sbt 0.13.7 ... also, not working changing sbt version.

here snippet of docker file

from ubuntu:14.04

run echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list run sudo apt-get update run sudo apt-get install sbt //also used force--yes 

also, try install on container manually using

wget http://dl.bintray.com/sbt/debian/sbt-0.13.5.deb sudo apt-get update sudo dpkg -i sbt-0.13.5.deb 

when run sbt compile, stuck trying getting org.scala-sbt ...

but working sbt --version

basically, dont know why sbt stucks trying getting org.scala-sbt ...

you need java virtual machine sbt , think it's think start java official docker image. here basic docker file uses official ubuntu installation method:

from java run echo "deb http://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list run apt-key update run apt-get update run apt-get -y --force-yes install sbt 

note: --force-yes has there because not authenticated package. tried adding run apt-key update, didn't make difference can omit line.

then, build test image: docker build -t test/sbt ., create interactive container docker run -i -t test/sbt sbt , play it.

this works me, noticed download times slow launching sbt, patient @ step.

this because sbt executable in light , fetch bunch of libraries on first run accomplish task. it's way sbt support multiple projects using multiple sbt versions. if stuck @ libraries resolution, check networking configuration. sbt errors, printed on command line, can configure logging if want.

what's left figure out add project files , issue compile command test it.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -