{"action":"created","issue":{"url":"https://api.github.com/repos/sbt/sbt-native-packager/issues/632","labels_url":"https://api.github.com/repos/sbt/sbt-native-packager/issues/632/labels{/name}","comments_url":"https://api.github.com/repos/sbt/sbt-native-packager/issues/632/comments","events_url":"https://api.github.com/repos/sbt/sbt-native-packager/issues/632/events","html_url":"https://github.com/sbt/sbt-native-packager/issues/632","id":97850412,"number":632,"title":"Add plugin/support for AWS Elastic Beanstalk Docker environments","user":{"login":"kipsigman","id":1268726,"avatar_url":"https://avatars.githubusercontent.com/u/1268726?v=3","gravatar_id":"","url":"https://api.github.com/users/kipsigman","html_url":"https://github.com/kipsigman","followers_url":"https://api.github.com/users/kipsigman/followers","following_url":"https://api.github.com/users/kipsigman/following{/other_user}","gists_url":"https://api.github.com/users/kipsigman/gists{/gist_id}","starred_url":"https://api.github.com/users/kipsigman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kipsigman/subscriptions","organizations_url":"https://api.github.com/users/kipsigman/orgs","repos_url":"https://api.github.com/users/kipsigman/repos","events_url":"https://api.github.com/users/kipsigman/events{/privacy}","received_events_url":"https://api.github.com/users/kipsigman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sbt/sbt-native-packager/labels/docker","name":"docker","color":"207de5"},{"url":"https://api.github.com/repos/sbt/sbt-native-packager/labels/feature%20request","name":"feature request","color":"02d7e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-07-29T03:23:20Z","updated_at":"2015-10-12T16:20:35Z","closed_at":null,"body":"I'm running a Play app on AWS Elastic Beanstalk with Docker deployment. I've created the following custom tasks which might work well as a plugin or extension to the DockerPlugin:\r\n\r\n```scala\r\n// Elastic Beanstalk tasks\r\nlazy val elasticBeanstalkStage = taskKey[Unit](\"Create a local directory with all the files for an AWS Elastic Beanstalk Docker distribution.\")\r\n\r\nelasticBeanstalkStage := {\r\n  // Depends on docker:stage\r\n  val dockerStageValue = (stage in Docker).value\r\n  \r\n  // Copy Elastic Beanstalk Dockerrun.aws.json configuration file to Docker stagingDirectory\r\n  val elasticBeanstalkSource = baseDirectory.value / \"elastic-beanstalk\"\r\n  IO.copyDirectory(elasticBeanstalkSource, dockerStageValue, true)\r\n}\r\n\r\nlazy val elasticBeanstalkDist = taskKey[File](\"Creates a zip for an AWS Elastic Beanstalk Docker distribution\")\r\n\r\nelasticBeanstalkDist := {\r\n  val log = streams.value.log\r\n  \r\n  // Depends on elasticBeanstalkStage\r\n  val stageValue = elasticBeanstalkStage.value\r\n  \r\n  // Zip Docker target\r\n  val dockerStagingDirectory: File = (stagingDirectory in Docker).value\r\n  \r\n  val zipFile: File = (target.value) / s\"${name.value}-${version.value}-elastic-beanstalk.zip\"\r\n  log.info(s\"Zipping $dockerStagingDirectory to $zipFile\")\r\n  Process(s\"zip -r $zipFile .\", dockerStagingDirectory) !!\r\n  \r\n  zipFile\r\n}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/sbt/sbt-native-packager/issues/comments/147450878","html_url":"https://github.com/sbt/sbt-native-packager/issues/632#issuecomment-147450878","issue_url":"https://api.github.com/repos/sbt/sbt-native-packager/issues/632","id":147450878,"user":{"login":"muuki88","id":647727,"avatar_url":"https://avatars.githubusercontent.com/u/647727?v=3","gravatar_id":"","url":"https://api.github.com/users/muuki88","html_url":"https://github.com/muuki88","followers_url":"https://api.github.com/users/muuki88/followers","following_url":"https://api.github.com/users/muuki88/following{/other_user}","gists_url":"https://api.github.com/users/muuki88/gists{/gist_id}","starred_url":"https://api.github.com/users/muuki88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muuki88/subscriptions","organizations_url":"https://api.github.com/users/muuki88/orgs","repos_url":"https://api.github.com/users/muuki88/repos","events_url":"https://api.github.com/users/muuki88/events{/privacy}","received_events_url":"https://api.github.com/users/muuki88/received_events","type":"User","site_admin":false},"created_at":"2015-10-12T16:20:35Z","updated_at":"2015-10-12T16:20:35Z","body":"I think it's just adding this line to your `build.sbt`\r\n\r\n```\r\nuseNativeZip\r\n```"}}