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

Staging sprint 11 #118

Merged
merged 14 commits into from
Nov 30, 2023
Merged

Staging sprint 11 #118

merged 14 commits into from
Nov 30, 2023

Conversation

kaladay
Copy link

@kaladay kaladay commented Nov 14, 2023

No description provided.

kaladay and others added 14 commits November 7, 2023 07:49
…rfiles.

Perform some upgrades to make the process more Java 17 friendly.

Switch the base Dockerfile to be compliant with folio practices.
Move our custom Dockerfile into a sub-directory under the newly created docker directory.
Add dependency maven-shade-plugin to perform tasks necessary for folio standard build.
Use the "-fat" nomenclature found in other FOLIO projects for this "shade" build.

Upgraded exec-maven-plugin to 3.1.0 and maven-surefire-plugin to 3.2.1.
Remove explicit versions for Camunda dependencies where being explicit is redundant.
While working on issue 115, these minor syntax and deprecated code issues were identified and resolved.
…ict.

The generated package with `-fat` in the name is conflicting on the wildcard select in the build and run `Dockerfile`.
Avoid this conflict by moving the `-fat` jar file into a sub-directory of `fat/` instead.
Remove the `-fat` from the file name after doing this.
Issue 115: Java 17 and related upgrades.
…with standard FOLIO practices.

Relocate the the Descriptors.
The `descriptors/` directory should be at the base project root but in this specific case with service as a sub-directory the `descriptors/` directory must be under `service/`.

Rename the Descriptors to be a template and bring in the template processing plugins into the POM file.

Change the variable behavior in the Descriptors to be consistent with how standard FOLIO practices use them (`${project.version}` instead of `@project.version@` for example).
This module is again an exceptional case where the project is under `service/`.
The standard `${artifactId}` cannot be used because that ends up being `workflow-service` rather than `mod-workflow`.
Therefore, hard code `mod-workflow` in places where `mod-workflow` must be used instead of `workflow-service`.

Added `-XX:MaxRAMPercentage=66.0` for consistency with other projects.
Some projects use a value like 85.0.
I don't have a realistic clue here on what value to use and I am open to not having this environment variable set at all if a proposal to remove it is given.

The Deployment Descriptor used to have only `--server.port=%p`.
Other FOLIO projects have both `-Dport=%p` and `-Dhttp.port=%p`.
This plays it safe by having all three.
The amount of memory needed is currently unknown and so the provided `357913941` is used.
The environment variables that are needed have yet to be fully hashed out.
Only the specifically required environment variables are added.
Others will needed to be added in another commit.

see: https://dev.folio.org/guides/module-descriptor/
see: https://dev.folio.org/guides/install-backend-module/
Update the `application.yml` to utilize these.

Update the default memory to 384MB.
Errors regarding multiple registrations of `AttributeConverter` have surfaced.
This is a bug between the shade plugin and hibernate as far as I can tell from my online research.

I believe that this is sufficient justification to deviate from the Folio practice of using the shade plugin.
Strip out the shade plugin entirely and update the `Dockerfile`.

I also noticed that the default `EXPOSE` for this project should be `9001` and not `9000`.
Issue 113: Mod Workflow needs to be registered/deployed as a FOLIO module.
@kaladay kaladay merged commit 751fc49 into main Nov 30, 2023
@kaladay kaladay deleted the staging-sprint_11 branch November 30, 2023 19:34
rmathew1011 pushed a commit that referenced this pull request Nov 5, 2024
MODWRKFLOW-20: Remove the build and run Dockerfile.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants