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.
- Host: GitHub
- URL: https://github.com/sjednac/codeship-sbt-ecr
- Owner: sjednac
- Created: 2018-02-08T21:20:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-09T06:26:51.000Z (over 8 years ago)
- Last Synced: 2025-06-04T14:50:52.738Z (about 1 year ago)
- Topics: amazon-ecr, amazon-web-services, codeship, docker, sbt, scala
- Language: Scala
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.