generated from konveyor-ecosystem/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Emily McMullan <[email protected]>
- Loading branch information
1 parent
1db1096
commit dd95d5d
Showing
4 changed files
with
51 additions
and
47 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
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,41 @@ | ||
Once you have kantra installed, these examples will help you run both an | ||
analyze and a transform command. | ||
|
||
### Analyze | ||
|
||
- Get the example application to run analysis on | ||
`git clone https://github.com/konveyor/example-applications` | ||
|
||
- List available target technologies | ||
`kantra analyze --list-targets` | ||
|
||
- Run analysis with a specified target technology | ||
`kantra analyze --input=<path-to/example-applications/example-1> --output=<path-to-output-dir> --target=cloud-readiness` | ||
|
||
- Several analysis reports will have been created in your specified output path: | ||
|
||
```sh | ||
$ ls ./output/ -1 | ||
analysis.log | ||
dependencies.yaml | ||
dependency.log | ||
output.yaml | ||
static-report | ||
``` | ||
|
||
`output.yaml` is the file that contains issues report. | ||
`static-report` contains the static HTML report. | ||
`dependencies.yaml`contains a dependencies report. | ||
|
||
### Transform | ||
|
||
- Get the example application to transform source code | ||
`git clone https://github.com/ivargrimstad/jakartaee-duke` | ||
|
||
- View available OpenRewrite recipes | ||
`kantra transform openrewrite --list-targets` | ||
|
||
- Run a recipe on the example application | ||
`kantra transform openrewrite --input=<path-to/jakartaee-duke> --target=jakarta-imports` | ||
|
||
- Inspect the `jakartaee-duke` application source code diff to see the transformation |
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