An open API service indexing awesome lists of open source software.

https://github.com/sjednac/codeship-sbt-ecr

A sample Scala application, which is released as a Docker image to Amazon ECR, using SBT, in a Codeship pipeline.
https://github.com/sjednac/codeship-sbt-ecr

amazon-ecr amazon-web-services codeship docker sbt scala

Last synced: about 2 months ago
JSON representation

A sample Scala application, which is released as a Docker image to Amazon ECR, using SBT, in a Codeship pipeline.

Awesome Lists containing this project

README

          

# Codeship SBT Docker

A sample [Scala](https://www.scala-lang.org/) application, which is released as a [Docker](https://www.docker.com/) image to [Amazon ECR](https://aws.amazon.com/ecr/), using [SBT](https://www.scala-sbt.org/), in a [Codeship](https://codeship.com/) pipeline.

## Prerequisites

* Install [Docker](https://docs.docker.com/install/)
* Install [jet](https://documentation.codeship.com/pro/jet-cli/installation/)

## Running locally

Put your AWS environment variables in `aws.env`:

AWS_REGION=us-east-1
AWS_ACCESS_KEY_ID=???
AWS_SECRET_ACCESS_KEY=???

Setup a Codeship project and download [codeship.aes](https://documentation.codeship.com/pro/builds-and-configuration/environment-variables/#downloading-your-aes-key) to the project root directory.

Encrypt the file using `jet encrypt`:

jet encrypt aws.env aws.env.encrypted

Run all pipeline steps using `jet`:

jet steps

**NOTE:** Make sure that `aws.env` and `codeship.aes` are included in `.gitignore` in your target project.