-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
:fix :(docs): changed env PODMAN_BIN to CONTAINER_TOOL #305
Changes from 6 commits
5b94681
326743a
b2c1761
38fce9a
8ecf097
f921c51
41f7d4d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
### Running kantra | ||
|
||
Two environment variables control the container runtime and the kantra image: `PODMAN_BIN` and `RUNNER_IMG`: | ||
- `PODMAN_BIN`: path to your container runtime (podman or docker) | ||
Two environment variables control the container runtime and the kantra image: `CONTAINER_TOOL` and `RUNNER_IMG`: | ||
- `CONTAINER_TOOL`: path to your container runtime (podman or docker) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: container tool not container runtime. Container Runtimes are actually different things https://kubernetes.io/docs/setup/production-environment/container-runtimes/ and in this case we don't work with most container runtimes we work with a container tool which is IMO something different. We can fix this on a follow up though There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the review @shawn-hurley! @eemcmullan do let me know if this PR needs any more changes |
||
- `RUNNER_IMG`: the tag of the kantra image to invoke | ||
|
||
#### example: | ||
|
||
`podman build -f Dockerfile -t kantra:dev` | ||
|
||
`RUNNER_IMG=kantra:dev PODMAN_BIN=/usr/local/bin/podman go run main.go analyze --input=<path-to-src-application> --output=./output` | ||
`RUNNER_IMG=kantra:dev CONTAINER_TOOL=/usr/local/bin/podman go run main.go analyze --input=<path-to-src-application> --output=./output` | ||
|
||
#### Helpful flags: | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the check should first look for
CONTAINER_TOOL
, and thenPODMAN_BIN
after, only if the former is empty, soCONTAINER_TOOL
takes priority.For the
Config
struct, we do not needPodmanBinary
any longer - justContainerBinary
. This field is used throughout the rest of the project to start the different commands, as the commands run in containers. For example, an analyze command will look something like/usr/bin/podman run --entrypoint <analyzer_bin>.... <image>...
where/usr/bin/podman
is set from this config struct. You can see an example of this here: https://github.com/konveyor/kantra/blob/main/cmd/analyze.go#L1476Once these commands are updated with the new struct field name, they should be able to run, and the CI testing should pass.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the review @eemcmullan. I have pushed the recent changes!