Sbt-native-packager & AutoPlugin & Mappings in Docker

This configuration works for Universal but not for Docker:

sbt-native-packager Universal config:

  • Nginx in Docker container won't run PHP
  • changing transparent_hugepage in docker
  • docker blockio can not monitor when using dd to test
  • Accessing host usb device in docker for windows
  • Do spring boot apps need dockerization?
  • Connecting to a running docker container - differences between using ssh and running a command with “-t -i” parameters
  • mappings in Universal += {
    // logic like this belongs into an AutoPlugin
    val confFile = buildEnv.value match {
      case BuildEnv.Development => "dev.conf"
      case BuildEnv.Test => "test.conf"
      case BuildEnv.Production => "prod.conf"
    }
    ((resourceDirectory in Compile).value / confFile) -> "conf/application.conf"}
    

    sbt-native-packager Docker config:

    mappings in Docker += {
        // logic like this belongs into an AutoPlugin
        val confFile = buildEnv.value match {
          case BuildEnv.Development => "dev.conf"
          case BuildEnv.Test => "test.conf"
          case BuildEnv.Production => "prod.conf"
        }
        ((resourceDirectory in Compile).value / confFile) -> "conf/application.conf"}
    

  • docker-compose startup error cannot import name _thread
  • pkgProblemResolver::Resolve generated breaks, this may be caused by held packages
  • Port data out of docker container
  • Simple script needed to delete all docker images older than 4 weeks
  • How to provide certificates to mongod containers on different nodes in swarm cluster for internal authentication?
  • pipeline in docker exec from command line and from python api
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.