Sbt-native-packager & AutoPlugin & Mappings in Docker

This configuration works for Universal but not for Docker:

sbt-native-packager Universal config:

  • Howto detect in Docker the container kernel version
  • Docker config : Celery + RabbitMQ
  • Unable to locate package while building Docker image
  • Docker container running Mesos cluster and running other docker containers on cluster (using Marathon)
  • How to configure CouchDB authentication in Docker?
  • Is it possible to use Docker 17.03 secrets in Drupal 8?
  • 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"}
    

  • Link containers env
  • Docker: System error: can’t create pivot_root dir
  • Can't connect to a supevisor-socket in Nginx
  • Docker swarm with a custom network
  • Running iPython Notebook in Docker container on Amazon EC2 instance
  • prometheus notis “sample timestamp out of order”
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.