-
Notifications
You must be signed in to change notification settings - Fork 506
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds the raw documentation for bom and its only subcommand: generate. The format mimics previous docs for our tools (like krel). Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
- Loading branch information
Showing
5 changed files
with
112 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# bom (Bill of Materials) | ||
|
||
Create SPDX compliant Bill of Materials | ||
|
||
- [Summary](#summary) | ||
- [Installation](#installation) | ||
- [Usage](#usage) | ||
|
||
## Summary | ||
|
||
bom is a little utility that lets software authors generate | ||
SPDX manifests to describe the contents of a release. The | ||
SPDX manifests provide a way to list and verify all items | ||
contained in packages, images, and individual files while | ||
packing the data along with licensing information. | ||
|
||
bom is still in its early stages and it is an effort to open | ||
the libraries developed for the Kubernetes SBOM for other | ||
projects to use. | ||
|
||
For a more in depth instructions on how to create an SBOM see | ||
[Generating a Bill of Materials for Your Project](create-a-bill-of-materials.md) | ||
|
||
## Installation | ||
|
||
To use bom generate, compile the release engineering tools: | ||
|
||
``` | ||
git clone [email protected]:kubernetes/release.git | ||
cd release | ||
./compile-release-tools bom | ||
``` | ||
|
||
## Usage | ||
``` | ||
bom [subcommand] | ||
``` | ||
|
||
### Available Commands | ||
``` | ||
generate bom generate → Create SPDX manifests | ||
help Help about any command | ||
``` | ||
|
||
### Command line flags | ||
|
||
``` | ||
Flags: | ||
-h, --help help for bom | ||
--log-level string the logging verbosity, either 'panic', 'fatal', 'error', 'warning', 'info', 'debug', 'trace' (default "info") | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# bom generate | ||
|
||
Create SPDX compliant Bill of Materials | ||
|
||
- [Summary](#summary) | ||
- [Installation](#installation) | ||
- [Usage](#usage) | ||
|
||
## Summary | ||
|
||
`bom generate` is the subcommand to generate SPDX manifests. | ||
Currently supports creating SBOM for files, images, and docker | ||
archives (images in tarballs). Supports pulling images from | ||
registries. | ||
|
||
bom can take a deeper look into images using a growing number | ||
of analyzers designed to add more sense to common base images. | ||
|
||
## Installation | ||
|
||
Simply [install bom](README.md). | ||
|
||
## Usage: | ||
|
||
``` | ||
bom generate [flags] | ||
``` | ||
|
||
### Command Line Flags | ||
|
||
``` | ||
Flags: | ||
-a, --analyze-images go deeper into images using the available analyzers | ||
-c, --config string path to yaml SBOM configuration file | ||
-d, --dirs strings list of directories to include in the manifest as packages | ||
-f, --file strings list of files to include | ||
-h, --help help for generate | ||
--ignore strings list of regexp patterns to ignore when scanning directories | ||
-i, --image strings list of images | ||
-n, --namespace string an URI that servers as namespace for the SPDX doc | ||
--no-gitignore don't use exclusions from .gitignore files | ||
--no-gomod don't perform go.mod analysis, sbom will not include data about go packages | ||
--no-transient don't include transient go dependencies, only direct deps from go.mod | ||
-o, --output string path to the file where the document will be written (defaults to STDOUT) | ||
-t, --tarball strings list of docker archive tarballs to include in the manifest | ||
``` |