Skip to content

Commit

Permalink
KOGITO-9412: Create the serverless-workflow-timeouts-showcase for the…
Browse files Browse the repository at this point in the history
… Operator Dev Mode (apache#1712)

- rename from devmode to devprofile
  • Loading branch information
wmedvede authored and fjtirado committed Jul 3, 2023
1 parent b8afeed commit d7258bd
Show file tree
Hide file tree
Showing 31 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions serverless-workflow-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<module>serverless-workflow-testing-with-rest-assured</module>
<module>serverless-workflow-timeouts-showcase-embedded</module>
<module>serverless-workflow-timeouts-showcase-extended</module>
<module>serverless-workflow-timeouts-showcase-operator-devmode</module>
<module>serverless-workflow-timeouts-showcase-operator-devprofile</module>
<module>serverless-workflow-openvino-quarkus</module>
<module>serverless-workflow-python-quarkus</module>
</modules>
Expand Down Expand Up @@ -136,7 +136,7 @@
<module>serverless-workflow-testing-with-rest-assured</module>
<module>serverless-workflow-timeouts-showcase-embedded</module>
<module>serverless-workflow-timeouts-showcase-extended</module>
<module>serverless-workflow-timeouts-showcase-operator-devmode</module>
<module>serverless-workflow-timeouts-showcase-operator-devprofile</module>
</modules>
</profile>
</profiles>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ For more information about the installation procedure see [Install the SonataFlo

### Deploying the workflows

Once the minikube environment is running, open a terminal window, go to the `serverless-workflow-timeouts-showcase-operator-devmode` directory, and execute these commands:
Once the minikube environment is running, open a terminal window, go to the `serverless-workflow-timeouts-showcase-operator-devprofile` directory, and execute these commands:

```shell
# The namespace name is very important to ensure all the services that compose the showcase can interact.
Expand All @@ -31,7 +31,7 @@ kubectl create namespace timeouts-showcase
To deploy the workflows you must execute these commands:

```shell
kubectl apply -f workflows/callback_state_timeouts_devmode.yaml -n timeouts-showcase
kubectl apply -f workflows/callback_state_timeouts_devprofile.yaml -n timeouts-showcase
```


Expand All @@ -52,11 +52,11 @@ kubectl apply -f workflows/callback_state_timeouts_devmode.yaml -n timeouts-show
```shell
kubectl apply -f workflows/event_state_timeouts_devmode.yaml -n timeouts-showcase
kubectl apply -f workflows/event_state_timeouts_devprofile.yaml -n timeouts-showcase
```
```shell
kubectl apply -f workflows/switch_state_timeouts_devmode.yaml -n timeouts-showcase
kubectl apply -f workflows/switch_state_timeouts_devprofile.yaml -n timeouts-showcase
```

After executing the commands you should have seen the following outputs:
Expand Down Expand Up @@ -259,7 +259,7 @@ kubectl apply -f target/kubernetes/kubernetes.yml -n timeouts-showcase
```

```shell
minikube service timeouts-showcase-operator-devmode-ui --url -n timeouts-showcase
minikube service timeouts-showcase-operator-devprofile-ui --url -n timeouts-showcase
# the command will produce an output like this
http://192.168.49.2:31021
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<modelVersion>4.0.0</modelVersion>

<groupId>org.kie.kogito.examples</groupId>
<artifactId>serverless-workflow-timeouts-showcase-operator-devmode</artifactId>
<artifactId>serverless-workflow-timeouts-showcase-operator-devprofile</artifactId>
<version>1.0-SNAPSHOT</version>
<name>Kogito Example :: Serverless Workflow Timeouts Showcase Operator Dev Mode</name>
<name>Kogito Example :: Serverless Workflow Timeouts Showcase Operator Dev Profile</name>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
#
# Then, build the image with:
#
# docker build -f src/main/docker/Dockerfile.jvm -t quarkus/serverless-workflow-timeouts-showcase-embedded-jvm .
# docker build -f src/main/docker/Dockerfile.jvm -t quarkus/serverless-workflow-timeouts-showcase-operator-devprofile-jvm .
#
# Then run the container using:
#
# docker run -i --rm -p 8080:8080 quarkus/serverless-workflow-timeouts-showcase-embedded-jvm
# docker run -i --rm -p 8080:8080 quarkus/serverless-workflow-timeouts-showcase-operator-devprofile-jvm
#
# If you want to include the debug port into your docker image
# you will have to expose the debug port (default 5005) like this : EXPOSE 8080 5005
#
# Then run the container using :
#
# docker run -i --rm -p 8080:8080 quarkus/serverless-workflow-timeouts-showcase-embedded-jvm
# docker run -i --rm -p 8080:8080 quarkus/serverless-workflow-timeouts-showcase-operator-devprofile-jvm
#
# This image uses the `run-java.sh` script to run the application.
# This scripts computes the command line to execute your Java application, and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
#
# Then, build the image with:
#
# docker build -f src/main/docker/Dockerfile.legacy-jar -t quarkus/serverless-workflow-timeouts-showcase-embedded-legacy-jar .
# docker build -f src/main/docker/Dockerfile.legacy-jar -t quarkus/serverless-workflow-timeouts-showcase-operator-devprofile-legacy-jar .
#
# Then run the container using:
#
# docker run -i --rm -p 8080:8080 quarkus/serverless-workflow-timeouts-showcase-embedded-legacy-jar
# docker run -i --rm -p 8080:8080 quarkus/serverless-workflow-timeouts-showcase-operator-devprofile-legacy-jar
#
# If you want to include the debug port into your docker image
# you will have to expose the debug port (default 5005) like this : EXPOSE 8080 5005
#
# Then run the container using :
#
# docker run -i --rm -p 8080:8080 quarkus/serverless-workflow-timeouts-showcase-embedded-legacy-jar
# docker run -i --rm -p 8080:8080 quarkus/serverless-workflow-timeouts-showcase-operator-devprofile-legacy-jar
#
# This image uses the `run-java.sh` script to run the application.
# This scripts computes the command line to execute your Java application, and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
#
# Then, build the image with:
#
# docker build -f src/main/docker/Dockerfile.native -t quarkus/serverless-workflow-timeouts-showcase-embedded .
# docker build -f src/main/docker/Dockerfile.native -t quarkus/serverless-workflow-timeouts-showcase-operator-devprofile .
#
# Then run the container using:
#
# docker run -i --rm -p 8080:8080 quarkus/serverless-workflow-timeouts-showcase-embedded
# docker run -i --rm -p 8080:8080 quarkus/serverless-workflow-timeouts-showcase-operator-devprofile
#
###
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
#
# Then, build the image with:
#
# docker build -f src/main/docker/Dockerfile.native-micro -t quarkus/serverless-workflow-timeouts-showcase-embedded .
# docker build -f src/main/docker/Dockerfile.native-micro -t quarkus/serverless-workflow-timeouts-showcase-operator-devprofile .
#
# Then run the container using:
#
# docker run -i --rm -p 8080:8080 quarkus/serverless-workflow-timeouts-showcase-embedded
# docker run -i --rm -p 8080:8080 quarkus/serverless-workflow-timeouts-showcase-operator-devprofile
#
###
FROM quay.io/quarkus/quarkus-micro-image:1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ quarkus.rest-client.event_state_timeouts.url=http://eventstatetimeouts.timeouts-
quarkus.container-image.build=true
quarkus.container-image.group=${USER}
quarkus.container-image.registry=dev.local
quarkus.container-image.name=timeouts-showcase-operator-devmode-ui
quarkus.container-image.name=timeouts-showcase-operator-devprofile-ui
quarkus.container-image.tag=1.0-SNAPSHOT
quarkus.kubernetes.service-type=node-port
quarkus.kubernetes.image-pull-policy=if-not-present
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ quarkus.rest-client.event_state_timeouts.url=http://localhost:9090
%container.quarkus.container-image.push=false
%container.quarkus.container-image.group=${USER}
%container.quarkus.container-image.registry=dev.local
%container.quarkus.container-image.name=timeouts-showcase-operator-devmode-ui
%container.quarkus.container-image.name=timeouts-showcase-operator-devprofile-ui
%container.quarkus.container-image.tag=1.0-SNAPSHOT
%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh
%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest
Expand Down

0 comments on commit d7258bd

Please sign in to comment.