-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kie-kogito-docs-574 - Add prepare environment guide for sonataflow (#575
) * 574 - Initial skeleton and learning environment guide * 574 - Add preparing-environment.adoc and link it to getting started * 574 - Add production environment.adoc, improve original ones * 574 - improve the getting-started guide based on new additions * 574 - add cluster startup into prepare-enevironment.adoc * 574 - fix typos and links * 574 - add nav.adoc and minor improvements * 574 - fix link to production guide * 574 - improve memory for minikube, add prereq to learning * 574 - use prepare environment guides in quarkus getting started * 574 - fix references to non quarkus getting-started-req * 574 - fix getting-started-with-kn-cli guide * 574 - Fix wrong tabs * Update serverlessworkflow/modules/ROOT/pages/getting-started/learning-environment.adoc Co-authored-by: Walter Medvedeo <[email protected]> --------- Co-authored-by: Walter Medvedeo <[email protected]>
- Loading branch information
Showing
17 changed files
with
221 additions
and
70 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
3 changes: 3 additions & 0 deletions
3
...low/modules/ROOT/pages/_common-content/getting-started-requirement-quarkus.adoc
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,3 @@ | ||
* A quarkus workflow project is created. | ||
+ | ||
For more information about creating a workflow project, see xref:use-cases/advanced-developer-use-cases/getting-started/create-your-first-workflow-service.adoc[Creating your first Serverless Workflow Java service]. |
2 changes: 1 addition & 1 deletion
2
...essworkflow/modules/ROOT/pages/_common-content/getting-started-requirement.adoc
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
* A workflow project is created. | ||
+ | ||
For more information about creating a workflow project, see xref:use-cases/advanced-developer-use-cases/getting-started/create-your-first-workflow-service.adoc[Creating your first Serverless Workflow Java service]. | ||
For more information about creating a workflow project, see xref:getting-started/create-your-first-workflow-service-with-kn-cli-and-vscode.adoc[Creating your first workflow project]. |
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
20 changes: 20 additions & 0 deletions
20
serverlessworkflow/modules/ROOT/pages/getting-started/learning-environment.adoc
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,20 @@ | ||
= Learning environment | ||
|
||
.Prerequisites | ||
* Basic knowledge of cloud environments, containers, docker and Kubernetes | ||
* You are familiar with https://github.com/serverlessworkflow/specification/blob/0.8.x/specification.md[CNCF Serverless Workflow Specification 0.8] | ||
If you are new to {product_name} we recommend a few starting points to get up to speed with the technology and what it has to offer. | ||
|
||
* Read the xref:core/cncf-serverless-workflow-specification-support.adoc[serverless workflow specification and what is supported]. | ||
* Try our link:{serverless_logic_web_tools_url}/sample-catalog?category=serverless-workflow[{serverless_logic_web_tools_name} samples]. | ||
Once familiar with the specification and samples, navigate to xref:getting-started/preparing-environment.adoc[] guide to complete the necesarry setup of your environment. After that, you should be ready to create your first {product_name} application. | ||
|
||
== Additional resources | ||
|
||
* xref:getting-started/preparing-environment.adoc[] | ||
* xref:getting-started/production-environment.adoc[] | ||
|
||
|
||
include::../../pages/_common-content/report-issue.adoc[] |
90 changes: 90 additions & 0 deletions
90
serverlessworkflow/modules/ROOT/pages/getting-started/preparing-environment.adoc
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,90 @@ | ||
= Environment setup | ||
|
||
This guide lists the different ways to set up your environment for {product_name} development. | ||
If you are new, start with the minimal one. | ||
|
||
[[proc-minimal-local-environment-setup]] | ||
== Minimal local environment setup | ||
|
||
Recommended steps to setup your local development environment. By completing these steps you are able to | ||
start the development on your local machine using our guides. | ||
|
||
.Procedure | ||
. Install https://docs.docker.com/engine/install/[Docker] or https://podman.io/docs/installation[Podman]. | ||
. Install https://minikube.sigs.k8s.io/docs/start/[minikube] or https://kind.sigs.k8s.io/docs/user/quick-start/#installation[kind]. | ||
. Install https://kubernetes.io/docs/tasks/tools/[Kubernetes CLI]. | ||
. Install https://knative.dev/docs/install/quickstart-install/[Knative using quickstart]. This will also setup Knative Serving and Eventing for you and the cluster should be running. | ||
. xref:cloud/operator/install-serverless-operator.adoc[] | ||
. Install xref:testing-and-troubleshooting/kn-plugin-workflow-overview.adoc[Knative Workflow CLI]. | ||
. Install https://code.visualstudio.com/[Visual Studio Code] with https://marketplace.visualstudio.com/items?itemName=kie-group.swf-vscode-extension[our extension] that simplifies development of workflows by provifing visual aids and auto-complete features. | ||
|
||
[[proc-starting-cluster-fo-local-development]] | ||
== Starting the cluster for local development | ||
|
||
If you have used https://knative.dev/docs/install/quickstart-install/[Knative using quickstart] guide, your selected cluster should be running and properly configured to work with our guides. | ||
|
||
Please note, that if the knative quickstart procedure is not used, you need to install Knative Serving and Eventing manually. See <<proc-additional-options-for-local-environment>>. | ||
|
||
|
||
.To startup the selected cluster without quickstart, use the following command: | ||
[tabs] | ||
==== | ||
Minikube:: | ||
+ | ||
-- | ||
.Configure and startup minikube | ||
[source,shell] | ||
---- | ||
# Set a driver and container runtime | ||
minikube config set driver docker/podman | ||
minikube config set container-runtime docker/podman | ||
# Set cpu and memory | ||
# 4096 is minimal baseline, increase to 6144 or 8192 if possible | ||
minikube config set cpus 4 | ||
minikube config set memory 4096 | ||
# Start the cluster | ||
minikube start --cpus 4 --memory 4096 --addons registry --addons metrics-server --insecure-registry "10.0.0.0/24" --insecure-registry "localhost:5000" | ||
# Set the active profile | ||
minikube profile minikube | ||
---- | ||
-- | ||
Kind:: | ||
+ | ||
-- | ||
.Start a kind cluster | ||
[source,shell] | ||
---- | ||
kind create cluster | ||
---- | ||
-- | ||
==== | ||
|
||
[[proc-advanced-local-environment-setup]] | ||
== Advanced local environment setup | ||
|
||
If you are interested in our Java and Quarkus development path, consider completing this procedure in addition to the | ||
<<proc-minimal-local-environment-setup>>. By completing these steps you are able to start the development of applications on your local machine using our xref:use-cases/advanced-developer-use-cases/index.adoc[advanced developer guides]. | ||
|
||
.Procedure | ||
. Install https://openjdk.org/[OpenJDK] {java_min_version} and cofigure `JAVA_HOME` appropriately by adding it to the `PATH`. | ||
. Install https://maven.apache.org/index.html[Apache Maven] {maven_min_version}. | ||
. Install https://quarkus.io/guides/cli-tooling[Quarkus CLI] corresponding to currently supported version by {product_name}. Currently it is {quarkus_version}. | ||
|
||
[[proc-additional-options-for-local-environment]] | ||
== Additional options for local environment setup | ||
|
||
Points listed in this section provide extra posibilties when working with our guides and are considered optional. | ||
|
||
* Install https://www.graalvm.org/[GraalVM] {graalvm_min_version}. This will allow you to create https://www.graalvm.org/22.0/reference-manual/native-image/[native image] of your {product_name} application. | ||
* Install https://knative.dev/docs/install/yaml-install/serving/install-serving-with-yaml/[Knative Serving using YAML files] for advanced customizations or in cases where the quickstart procedure fails. | ||
* Install https://knative.dev/docs/install/yaml-install/eventing/install-eventing-with-yaml/[Knative Eventing using YAML files] for advanced customizations or in cases where the quickstart procedure fails. | ||
|
||
== Additional resources | ||
|
||
* xref:getting-started/production-environment.adoc[] | ||
* xref:getting-started/create-your-first-workflow-service-with-kn-cli-and-vscode.adoc[] | ||
|
||
include::../../pages/_common-content/report-issue.adoc[] |
13 changes: 13 additions & 0 deletions
13
serverlessworkflow/modules/ROOT/pages/getting-started/production-environment.adoc
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,13 @@ | ||
= Production environment | ||
|
||
In thise guide, you can find {product_name} recommendations and best-practices for production environment. | ||
|
||
`NOTE: Guide is not complete and under construction. For now, please explore the cloud chapters linked in the additional resources section.` | ||
|
||
Are you using {product_name} in production? Let us know how so that we can expand our test suites! | ||
|
||
== Additional resources | ||
|
||
* xref:cloud/index.adoc[] | ||
|
||
include::../../pages/_common-content/report-issue.adoc[] |
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.