Skip to content

Commit 7b6f766

Browse files
committed
Add SBOM extraction instructions
1 parent e671cbc commit 7b6f766

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,22 @@ Docker image to run the AWS CLI and related tools.
77
[![Docker Stars](https://img.shields.io/docker/stars/leplusorg/aws-cli)](https://hub.docker.com/r/leplusorg/aws-cli)
88
[![Docker Pulls](https://img.shields.io/docker/pulls/leplusorg/aws-cli)](https://hub.docker.com/r/leplusorg/aws-cli)
99
[![Docker Version](https://img.shields.io/docker/v/leplusorg/aws-cli?sort=semver)](https://hub.docker.com/r/leplusorg/aws-cli)
10+
11+
## Usage
12+
13+
To run the AWS CLI using this image:
14+
15+
```bash
16+
docker run --rm -i leplusorg/aws-cli aws --version
17+
```
18+
19+
## Software Bill of Materials (SBOM)
20+
21+
To get the SBOM for the latest image (in SPDX JSON format), use the
22+
following command:
23+
24+
```bash
25+
docker buildx imagetools inspect leplusorg/aws-cli --format '{{ json (index .SBOM "linux/amd64").SPDX }}'
26+
```
27+
28+
Replace `linux/amd64` by the desired platform (`linux/amd64`, `linux/arm64` etc.).

0 commit comments

Comments
 (0)