Skip to content

Commit

Permalink
Merge pull request #240 from tylerslaton/update-alpha-generate
Browse files Browse the repository at this point in the history
docs: opm alpha generate => opm generate
  • Loading branch information
tylerslaton authored May 6, 2022
2 parents 8f82e05 + 396e2d3 commit 83e6301
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions content/en/docs/Reference/file-based-catalogs.md
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ Examples:
opm alpha diff registry.org/my-catalog:abc123 registry.org/my-catalog:def456 -o yaml > ./my-catalog-index/index.yaml
# Build and push this index into an index image.
opm alpha generate dockerfile ./my-catalog-index
opm generate dockerfile ./my-catalog-index
docker build -t registry.org/my-catalog:latest-abc123-def456 -f index.Dockerfile .
docker push registry.org/my-catalog:latest-abc123-def456
Expand All @@ -652,7 +652,7 @@ Global Flags:
--skip-tls skip TLS certificate verification for container image registries while pulling bundles or index
```

### `opm alpha generate dockerfile`
### `opm generate dockerfile`

```
Generate a Dockerfile for a declarative config index.
Expand All @@ -665,7 +665,7 @@ When specifying extra labels, note that if duplicate keys exist, only the last
value of each duplicate key will be added to the generated Dockerfile.
Usage:
opm alpha generate dockerfile <dcRootDir> [flags]
opm generate dockerfile <dcRootDir> [flags]
Flags:
-i, --binary-image string Image in which to build catalog. (default "quay.io/operator-framework/upstream-opm-builder")
Expand Down Expand Up @@ -737,7 +737,7 @@ There are many possible ways to build a catalog, but an extremely simple approac
file=$(echo $l | cut -d'|' -f2)
opm render "$image" > "$file"
done
opm alpha generate dockerfile "$name"
opm generate dockerfile "$name"
indexImage=$(yq eval '.repo + ":" + .tag' catalog.yaml)
docker build -t "$indexImage" -f "$name.Dockerfile" .
docker push "$indexImage"
Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/Tasks/creating-a-catalog.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ image, and then populate our catalog with our operator.
### Initialize the Catalog
```sh
$ mkdir cool-catalog
$ opm alpha generate dockerfile cool-catalog
$ opm generate dockerfile cool-catalog
$ opm init example-operator \
--default-channel=preview \
--description=./README.md \
Expand Down

0 comments on commit 83e6301

Please sign in to comment.