Skip to content

Commit

Permalink
Merge pull request #58 from NASA-IMPACT/dev
Browse files Browse the repository at this point in the history
Fix README.
  • Loading branch information
sharkinsspatial authored Aug 29, 2020
2 parents 8bf542f + 5591438 commit 2330cde
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,13 @@ This repository contains the Dockerfiles for running the HLS sentinel granule co

The `hls-sentinel` image uses [hls-base](https://github.com/NASA-IMPACT/hls-base/) as base image.

After building your base dependencies image and pushing it to ECR you can build the `hls-sentinel` processing image with:

### Development
You will require an AWS profile which has ECR pull permissions for the base image.
```shell
$ docker build --no-cache --build-arg AWS_ACCOUNT_ID="${AWS_ACCOUNT_ID}" -t hls-sentinel .
$ docker build --no-cache -t hls-sentinel .
```

Note: The command above assumes you have exported an environment variable `AWS_ACCOUNT_ID` which references the AWS account where the hls-base reference image is stored.

You can then tag this `hls-sentinel` image as `<AWS_ACCOUNT_ID>.dkr.ecr.us-west-2.amazonaws.com/hls-sentinel` and push it to ECR.
### CI
The repository contains two CI workflows. When commits are pushed to the dev branch a new image is built and pushed to ECR with no tag.

```shell
$ docker tag hls-sentinel "${AWS_ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/hls-sentinel"
```

```shell
$ docker push "${AWS_ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/hls-sentinel"
```
When a new release is created from master a new image is built and pushed to ECR with the release version as a tag.

0 comments on commit 2330cde

Please sign in to comment.