Skip to content
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

[DRAFT] KN workflow plugin installation #665

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions serverlessworkflow/modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
** xref:cloud/custom-ingress-authz.adoc[Securing Workflows]
** Operator
*** xref:cloud/operator/install-serverless-operator.adoc[Installation]
*** xref:cloud/operator/install-kn-workflow-cli.adoc[Kn Workflow CLI Installation]
*** xref:cloud/operator/global-configuration.adoc[Admin Configuration]
*** xref:cloud/operator/developing-workflows.adoc[Development Mode]
*** xref:cloud/operator/referencing-resource-files.adoc[Referencing Workflow Resources]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
= Installing the Knative Workflow Plugin
:compat-mode!:
// Metadata:
:description: Install the operator on Kubernetes clusters
:keywords: kogito, sonataflow, workflow, serverless, operator, kubernetes, minikube, openshift, containers
// links

*Prerequisites*

https://75129--ocpdocs-pr.netlify.app/openshift-serverless/latest/install/installing-kn

* You have first installed the link:https://76490--ocpdocs-pr.netlify.app/openshift-serverless/latest/install/installing-kn[Knative CLI].
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a link to official community documentation of knative

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we can change that link.
But please note that this PR is just a draft to share what the proposal of installing the kn workflow plugin was. IDK if we are publishing that image in community·


== Installing the Knative Workflow Plugin using the artifacts image

To install the Knative Workflow Plugin using the artifacts image you must follow this procedure:

*Start the `kn-workflow-cli-artifacts-rhel8` image*

[source, shell]
----
export KN_IMAGE=registry.redhat.io/openshift-serverless-1/kn-workflow-cli-artifacts-rhel8:1.33.0
wmedvede marked this conversation as resolved.
Show resolved Hide resolved

export KN_CONTAINER_ID=$(docker run -di $KN_IMAGE)
----

*Copy the Knative Workflow Plugin binary according to your environment*

.Binaries copy for `Linux` amd64 / arm64 architectures
[source, shell]
----
docker cp $KN_CONTAINER_ID:/usr/share/kn/linux_amd64/kn-workflow-linux-amd64.tar.gz kn-workflow-linux-amd64.tar.gz

docker cp $KN_CONTAINER_ID:/usr/share/kn/linux_arm64/kn-workflow-linux-arm64.tar.gz kn-workflow-linux-arm64.tar.gz
----

.Binaries copy for `macOS` amd64 / arm64 architectures
[source, shell]
----
docker cp $KN_CONTAINER_ID:/usr/share/kn/macos_amd64/kn-workflow-macos-amd64.tar.gz kn-workflow-macos-amd64.tar.gz

docker cp $KN_CONTAINER_ID:/usr/share/kn/macos_arm64/kn-workflow-macos-arm64.tar.gz kn-workflow-macos-arm64.tar.gz
----

.Binaries copy for `Windows` amd64 architecture
[source, shell]
----
docker cp $KN_CONTAINER_ID:/usr/share/kn/windows/kn-workflow-windows-amd64.zip kn-workflow-windows-amd64.zip
----

*Stop the Container*

[source, shell]
----
docker stop $KN_CONTAINER_ID

docker rm $KN_CONTAINER_ID
----

*Extract the selected Knative Workflow Plugin binary*

.Extract the binary example
[source,shell]
----
tar xvzf kn-workflow-linux-amd64.tar.gz <install_dir_path>
----

In the `<install_dir_path>`, you'll find the `kn` executable that you must rename to `kn-workflow`

[source,shell]
----
mv <install_dir_path>/kn <install_dir_path>/kn-workflow
----

[IMPORTANT]
====
Make sure that `<install_dir_path>` is included in your system PATH.
====

To verify that the installation was successful, you can execute the following command:
[source,shell]
----
kn workflow version
----
output:
[source,shell]
----
1.33.0
----