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

[kie-tools#2571] [sonataflow-management-console] Convert Containerfiles to Cekit #2573

Merged
merged 4 commits into from
Sep 12, 2024

Conversation

ricardozanini
Copy link
Member

@ricardozanini ricardozanini commented Sep 10, 2024

Fixes #2571

In this PR:

  • Fixed a bug in the sonata flow-image-common kogito-system-user when a base image already has the 1001 user id.
  • Removed the Containerfile in favor of Cekit to support reproducible builds and BDD tests in the future
  • Upgrade Cekit and docker-squash dependencies
  • Changed to the Red Hat httpd24 image based on ubi9 instead of manually installing and configuring the package. The httpd is tailored for this specific use case and is updated occasionally to fix CVEs in the httpd package. So, we avoid bringing this responsibility to this repo

Follow-up issues:

… Image

Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
Copy link
Contributor

@fantonangeli fantonangeli left a comment

Choose a reason for hiding this comment

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

@ricardozanini Thank you so much for this PR.
I left some suggestions but I'm not totally sure about all of them.
I think we also need to rename KOGITO_MANAGEMENT_CONSOLE_PORT to SONATAFLOW_MANAGEMENT_CONSOLE_PORT in the Containerfile.
Of course, if this renaming makes sense for you as well.

@ricardozanini
Copy link
Member Author

@fantonangeli, thanks for the insights!

Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
@ricardozanini ricardozanini changed the title Fix: #2571 - Add Cekit support to SonataFlow Management Console Image WIP - Dont MERGE - Fix: #2571 - Add Cekit support to SonataFlow Management Console Image Sep 11, 2024
@ricardozanini ricardozanini marked this pull request as ready for review September 11, 2024 21:23
Copy link
Contributor

@fantonangeli fantonangeli left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks a lot @ricardozanini

@ricardozanini
Copy link
Member Author

@fantonangeli where u able to build and run the image locally?

@fantonangeli
Copy link
Contributor

@ricardozanini Yes I tested successfully the image. I used the commands:

  • pnpm cekit:build
  • docker run --rm -it -p 8080:8080 docker.io/apache/incubator-kie-sonataflow-management-console:main
    Is that correct?

Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
@ricardozanini ricardozanini changed the title WIP - Dont MERGE - Fix: #2571 - Add Cekit support to SonataFlow Management Console Image Fix: #2571 - Add Cekit support to SonataFlow Management Console Image Sep 12, 2024
Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
Copy link
Contributor

@fantonangeli fantonangeli left a comment

Choose a reason for hiding this comment

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

@ricardozanini Re-tested with the last commits.

@tiagobento tiagobento changed the title Fix: #2571 - Add Cekit support to SonataFlow Management Console Image [kie-tools#2571] [sonataflow-management-console] Convert Containerfiles to Cekit Sep 12, 2024
@ricardozanini ricardozanini merged commit c921195 into apache:main Sep 12, 2024
12 of 14 checks passed
@ricardozanini ricardozanini deleted the issue-2571 branch September 12, 2024 17:05
rgdoliveira pushed a commit to rgdoliveira/kie-tools that referenced this pull request Sep 12, 2024
…es to Cekit (apache#2573)

Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
rgdoliveira added a commit to kiegroup/kie-tools that referenced this pull request Sep 12, 2024
…es to Cekit (apache#2573) (#43)

Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
Co-authored-by: Ricardo Zanini <1538000+ricardozanini@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[sonataflow-management-console] Convert Containerfiles to Cekit
3 participants