Questions tagged [sbt-docker]

SBT is an open source build tool for Scala and Java projects, similar to Java's Maven or Ant. sbt-docker helps creating docker images in sbt.

SBT is an open source build tool for Scala and Java projects, similar to Java's Maven or Ant. sbt-docker helps creating docker images in sbt.

Usage guidelines are at https://github.com/marcuslonnberg/sbt-docker

15 questions
11
votes
2 answers

What are the best practices to deploy and host artifacts for a Docker Multicontainer environment in Elasticbeanstalk for Scala Apps?

I have several Scala applications that I want to deploy in a Docker multi-container environment on Amazon's Elastic Beanstalk. It seems like the whole process is a bit more complicated that I was expecting. So I'm really looking forward to hear…
maya.js
  • 1,147
  • 12
  • 25
10
votes
2 answers

Why does enablePlugins(DockerPlugin) from sbt-docker in Play project give "error: reference to DockerPlugin is ambiguous"?

I am trying to dockerize a play web app and I am using sbt-docker. I get the gollowing error when I execute sbt docker: error: reference to DockerPlugin is ambiguous; it is imported twice in the same scope by import _root_.sbtdocker.DockerPlugin and…
pphanireddy
  • 1,109
  • 2
  • 12
  • 17
3
votes
1 answer

Repository for publishing is not specified in multi-modules project with docker sbt

I am trying to deploy a multi-modules project using an sbt-docker plugin. I want to create separate containers for api and app modules and to skip other modules. However, every time I run docker: publish I get such an error: [error]…
Cassie
  • 339
  • 1
  • 3
  • 13
2
votes
3 answers

How to push/build a docker image in release process via sbt-release

I used sbt-release to control release process and sbt-docker to build/publish a docker image. I can release a specific version via sbt release and build/publish a docker image via sbt docker or `sbt dockerBuildAndPush' If I wanna release a specific…
pandaforme
  • 153
  • 1
  • 9
2
votes
1 answer

unknown tag name in file commons-lang3/ivy-3.4.xml.original

I am trying to use commons-lang3 and I am getting error as unknown tag name in file:/Users/myuser/.ivy2/cache/org.apache.commons/commons-lang3/ivy-3.4.xml.original I tried to exclude the dependency but it is needed to do the parsing of docker…
user2230605
  • 2,390
  • 6
  • 27
  • 45
2
votes
1 answer

how to create an All-In-One docker image using sbt-docker and sbt-assembly

I am using sbt-assembly to get fat jars and using sbt-docker to create and push docker images. My project is multi-module which has multiple web services, UI, database etc. Since my base docker image is big (800M), I want to create a docker image…
jiangok
  • 2,622
  • 3
  • 21
  • 26
2
votes
0 answers

Docker push fails with fatal error msg=""

Using the sbt-docker plugin, I execute sbt dockerBuildAndPush and see the following output after assembly: ... [info] Pushing docker image with name: 'myorg/myrepo' [info] The push refers to a repository [myorg/myrepo] (len: 1) [info] Sending image…
Synesso
  • 37,610
  • 35
  • 136
  • 207
1
vote
1 answer

Play / Scala / sbt: docker:publichLocal with specific .conf file

I try in vain to deploy and run my play app from sbt-native-packager with the command "sbt docker:publishLocal" with a specific .conf-file on Docker. The command as such works, the image is created, containers of it are executable. The created image…
stoniemahonie
  • 321
  • 1
  • 5
  • 13
1
vote
1 answer

SBT plugin to create image from a plain Docker text file

I want to build an image for a plain Dockerfile text, Is there an SBT plugin that will let me specify my own docker file.
nokostar
  • 103
  • 1
  • 4
1
vote
2 answers

javaOptions with sbt docker:publishLocal and docker run

If I was running my application sans Docker, I would do something like this: ./myapp -Dconfig.file=conf/application.prod.conf -Dlogger.resource=logback.prod.xml In fact, I can do even better and put them into by build.sbt file: // Production…
Tyler
  • 17,669
  • 10
  • 51
  • 89
1
vote
1 answer

How to change sbt-docker settings to choose an specific route for artifacts

Right now, whenever I execute the sbt docker command of the sbt-docker plugin within my project, it generates the artifacts (dockerfile and jars) under the [app-route]/target/docker/ folder. Is there a way to change that "default" route, so It can…
maya.js
  • 1,147
  • 12
  • 25
0
votes
1 answer

Add a directory into a docker image using sbt (on Lagom 1.4)

can someone help with how to add a file system folder into a docker image... e.g. I want to add /opt/app/conf into the docker image at path /opt/docker/conf. A snippet of the build.sbt is as follows: dockerCommands := dockerCommands.value.flatMap…
0
votes
1 answer

Can't resolve docker related sbt tags

I'm trying to add sbt-docker to my sbt build of my play website but I'm running into an issue. For some reason none of the docker related stuff on the bottom can resolve. project/plugins.sbt logLevel := Level.Warn resolvers ++= Seq( "Typesafe…
Ryan Stull
  • 1,056
  • 14
  • 35
0
votes
1 answer

sbt-docker difference between add and addRaw

The title says it all: sbt-docker plugin examples use both add() and addRaw(), but the documentation only mentions add(). What is addRaw() for?
Christopher Helck
  • 1,130
  • 2
  • 8
  • 23
0
votes
1 answer

sbt-docker cannot run echo pipe

I am using sbt-docker and trying to setup ssh on docker by following this link: https://docs.docker.com/examples/running_ssh_service/. sbt-docker seems not to understand below: run("echo", "'root:root' | chpasswd") Instead of changing the root user…
jiangok
  • 2,622
  • 3
  • 21
  • 26