You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prior this commit, the bootc-image-builder container image had
a custom entrypoint that hardcoded the use of the build subcommand. This
meant that if a user wanted to use a different subcommand, they had to
overwrite the entrypoint.
This commit changes the cobra code in bib to fallback to build if no
subcommand was given. This is slighly ugly, but it allows us to remove
the custom entrypoint, streamlining the use of subcommands. Let's see
an example of calling the version subcommand:
Before:
podman run --rm -it --entrypoint=/usr/bin/bootc-image-builder \
quay.io/centos-bootc/bootc-image-builder:latest version
After:
sudo podman run --rm -it \
quay.io/centos-bootc/bootc-image-builder:latest version
Kudos to https://github.com/IKukhta for his code from
spf13/cobra#823 (comment)
Copy file name to clipboardExpand all lines: README.md
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -522,8 +522,7 @@ The contents of the file `$(pwd)/wheel-passwordless-sudo` should be
522
522
523
523
Please report bugs to the [Bug Tracker](https://github.com/osbuild/bootc-image-builder/issues) and include instructions to reproduce and the output of:
524
524
```
525
-
$ sudo podman run --rm -it --entrypoint=/usr/bin/bootc-image-builder \
526
-
quay.io/centos-bootc/bootc-image-builder:latest version
525
+
$ sudo podman run --rm -it quay.io/centos-bootc/bootc-image-builder:latest version
0 commit comments