Skip to content

Commit

Permalink
docs: add ECR docs (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
RichiCoder1 authored Sep 10, 2020
1 parent d19ad98 commit eeb3b5f
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions implementors.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ See [OCI Artifacts][artifacts] for how to add OCI Artifacts support to your regi

- [docker/distribution](#docker-distribution) - local/offline verification
- [Azure Container Registry](#azure-container-registry-acr)
- [Amazon Elastic Container Registry](#amazon-elastic-container-registry-ecr)

## Artifact Types Using ORAS

Expand Down Expand Up @@ -173,6 +174,33 @@ Then you can pull files from the registry or push files to the registry.
```sh
oras logout <registry-ip>:5000
```

### [Amazon Elastic Container Registry (ECR)](https://aws.amazon.com/ecr/)

ECR Artifact Blog Post: <https://aws.amazon.com/blogs/containers/oci-artifact-support-in-amazon-ecr/>

- Authenticating with ECR using the AWS CLI
```sh
aws ecr get-login-password --region $AWS_REGION --profile $PROFILE | oras login \
--password-stdin \
--username AWS \
"${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_REGION}.amazonaws.com"
```

- Pushing Artifacts to ECR

```sh
oras push $REPO_URI:1.0 \
--manifest-config /dev/null:application/vnd.unknown.config.v1+json \
./artifact.txt:application/vnd.unknown.layer.v1+txt
```

- Pulling Artifacts from ECR

```sh
oras pull $REPO_URI:1.0 \
--media-type application/vnd.unknown.layer.v1+txt
```

### [Azure Container Registry (ACR)](https://aka.ms/acr)

Expand Down

0 comments on commit eeb3b5f

Please sign in to comment.