Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kimxogus/sbt-elastic-beanstalk
sbt 1.0 plugin for elasticbeanstalk distribution
https://github.com/kimxogus/sbt-elastic-beanstalk
elasticbeanstalk sbt sbt-plugin
Last synced: about 18 hours ago
JSON representation
sbt 1.0 plugin for elasticbeanstalk distribution
- Host: GitHub
- URL: https://github.com/kimxogus/sbt-elastic-beanstalk
- Owner: kimxogus
- License: apache-2.0
- Created: 2017-12-30T07:45:33.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-03T12:43:52.000Z (over 5 years ago)
- Last Synced: 2024-11-06T05:35:52.713Z (about 2 months ago)
- Topics: elasticbeanstalk, sbt, sbt-plugin
- Language: Scala
- Homepage:
- Size: 34.2 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sbt-elastic-beanstalk-plugin
[ ![Download](https://api.bintray.com/packages/kimxogus/sbt-plugins/sbt-elastic-beanstalk/images/download.svg) ](https://bintray.com/kimxogus/sbt-plugins/sbt-elastic-beanstalk/_latestVersion)
Creates a distribution of your Scala/Play/Akka app for deployment on AWS Amazon Web Services) Elastic Beanstalk.
Forked from [kipsigman/sbt-elastic-beanstalk](https://github.com/kipsigman/sbt-elastic-beanstalk)## Features
* Build deployable zip for AWS (Amazon Web Services) Elastic Beanstalk environments with Docker config
* Works with any Scala, Play Framework, or Akka application
* Extends [SBT Native Packager Docker plugin](http://www.scala-sbt.org/sbt-native-packager/formats/docker.html)
* Allows addition of Elastic Beanstalk config (Dockerrun.aws.json)## Installation
Add the following to your `project/plugins.sbt` file:
```scala
addSbtPlugin("io.xogus" % "sbt-elastic-beanstalk" % "0.7.0")
```In your `build.sbt` enable the plugin.
```scala
enablePlugins(ElasticBeanstalkPlugin)
```## Usage
1. Add `build.sbt` settings for the [SBT Native Packager Docker plugin](http://www.scala-sbt.org/sbt-native-packager/formats/docker.html).
example (for a Play app):
```scala
packageName in ElasticBeanstalk := "zip-file-name",
elasticBeanstalkSources in ElasticBeanstalk := Seq(
baseDirectory.value / ".ebextensions", // add .ebextensions folder
baseDirectory.value / "Dockerrun.aws.json" // add Dockerrun.aws.json file
),
dockerLabels := Map(
"maintainer" -> "Taehyun Kim "
),
dockerExposedPorts := Seq(9000),
dockerBaseImage := "java:latest"
```2. Create distribution for upload to Elastic Beanstalk:
```sh
sbt elastic-beanstalk:dist
```3. The `elastic-beanstalk:dist` command will output the location of your deployable zip. Upload to your Elastic Beanstalk environment.
4. Enjoy a beer or re-watch the original "Point Break."## Sample projects
Here are some sample projects using this plugin which may be helpful in getting started.
- [Play Framework sample](https://github.com/kipsigman/play-elastic-beanstalk)