Sbt-native-packager & AutoPlugin & Mappings in Docker

This configuration works for Universal but not for Docker:

sbt-native-packager Universal config:

  • TFS workspace with Jenkins Docker container
  • Java app in Docker container does not log to syslog properly
  • Auto-reloading of code changes with Django development in Docker with Gunicorn
  • How to check that a local URL is reachable
  • Why does Liquibase migration on MySQL database die after acquiring lock on DC/OS (worked fine with docker-compose)?
  • How do I restart Docker for Mac from the terminal?
  • 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"}
    

  • Passing arguments from CMD in docker
  • run netflixoss docker on windows 8.1
  • Deploy Ansible project which include a docker-compose.yml
  • Docker machine in Mac OS X
  • Docker swarm: guarantee high availability after restart
  • Piping docker run container ID to docker exec
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.