-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new
--run-port
flag to odo init
to set ports non-interactively (
#6953) * Add new `--run-port` flag to `odo init` to set ports non-interactively As depicted in [1], this leverages the default (or single non-default) run command to find the linked container component. As such, it assumes that the command found is an exec command, and that the linked component is a container component. [1] #6925 * Add unit and integration tests highlighting the expectations * Document the new `--run-port` flag * Fix some typos and language correctness issues in the `odo init` doc * Add doc automation test for the output of `odo init --run-port` This ensures the output and sample in the doc are kept in sync with the code base.
- Loading branch information
Showing
11 changed files
with
926 additions
and
14 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
docs/website/docs/command-reference/docs-mdx/init/devfile_with_run-port_output.mdx
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,14 @@ | ||
```console | ||
$ odo init --devfile go --name my-go-app --run-port 3456 --run-port 9876 | ||
__ | ||
/ \__ Initializing a new component | ||
\__/ \ | ||
/ \__/ odo version: v3.12.0 | ||
\__/ | ||
|
||
✓ Downloading devfile "go" [48ms] | ||
|
||
Your new component 'my-go-app' is ready in the current directory. | ||
To start editing your component, use 'odo dev' and open this folder in your favorite IDE. | ||
Changes will be directly reflected on the cluster. | ||
``` |
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
Oops, something went wrong.