Sbt-native-packager & AutoPlugin & Mappings in Docker

This configuration works for Universal but not for Docker:

sbt-native-packager Universal config:

  • how to share folder between host os and docker container
  • How to observe scheduled tasks output with Django celery and Docker
  • How to get docker 'objects' completion on mintty-bash from git for windows
  • Why would I want to to use VOLUME inside a Dockerfile?
  • How to bind the VM docker-machine creates to OSX IP address?
  • How to mount private SSH key to Docker for Windows container?
  • 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 Swarm Service Clustering
  • How to containerize InfluxDB with Docker?
  • Why not found, while it does exist?
  • How to configure nginx to serve static from django running in a docker container
  • Query to dataframe very slow on Zeppelin
  • In dockerfile after create or copy file or directory in RUN statement it not/doesn't exists
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.