Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Decouple examples from service #129

Merged

Conversation

masayag
Copy link
Collaborator

@masayag masayag commented Mar 20, 2023

The purpose of this PR is to decouple the user's workflows from being built into the workflow-service by using the PropertiesLauncher as the Start-Class of the application.

Extra dependencies can be provided via env-var loader.path. In addition, to satisfy all runtime dependencies, the workflow-example is being built with a plugin to include all of its dependencies in a single jar.

For local development, a local profile was added to include the
workflow-examples dependency in the service's path:

mvn clean install -Plocal

@masayag masayag force-pushed the decouple-workflow-example branch 2 times, most recently from 4fa786c to be95404 Compare March 20, 2023 21:53
Copy link
Contributor

@gciavarrini gciavarrini left a comment

Choose a reason for hiding this comment

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

/lgtm

@pkliczewski
Copy link
Collaborator

@masayag we fail with building the image. Please take a look

Service 'workflow-service' failed to build : Build failed

@openshift-ci openshift-ci bot removed the lgtm label Mar 21, 2023
@masayag masayag force-pushed the decouple-workflow-example branch 2 times, most recently from 81d1049 to f286a18 Compare March 21, 2023 16:34
@masayag masayag force-pushed the decouple-workflow-example branch 6 times, most recently from bb790e7 to ae7d933 Compare March 22, 2023 11:55
The purpose of this PR is to decouple the user's workflows from being
built into the workflow-service by using the PropertiesLauncher as the
Start-Class of the application.

Extra dependencies can be provided via system property `loader.path`.
In addition, to satisfy all runtime dependencies, the workflow-example
is being built with a plugin to include all of its dependencies in a
single jar.

For local development, a local profile was added to include the
workflow-examples dependency in the service's path:

```
mvn clean install -Plocal
```

Signed-off-by: Moti Asayag <masayag@redhat.com>
Copy link
Collaborator

@pkliczewski pkliczewski left a comment

Choose a reason for hiding this comment

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

/lgtm

@@ -1 +1,3 @@
java -jar -Dspring.profiles.active=local target/workflow-service-1.0.3-SNAPSHOT.jar
java -jar -Dspring.profiles.active=local \
Copy link
Collaborator

Choose a reason for hiding this comment

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

TBH, this is already part of the makefile :-)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Do you suggest deleting this script? It also repeats itself under workflow-examples.
And if we maintain that script, it should probably be parameterized with the version instead hard-coding it

@eloycoto
Copy link
Collaborator

/lgtm

@eloycoto
Copy link
Collaborator

/approve

@openshift-ci
Copy link

openshift-ci bot commented Mar 22, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: eloycoto, masayag, RichardW98

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 4b5bfdb into parodos-dev:main Mar 22, 2023
@masayag masayag deleted the decouple-workflow-example branch May 7, 2023 14:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants