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

Fix: nifi reduce image size #1027

Merged
merged 23 commits into from
Apr 3, 2025
Merged

Fix: nifi reduce image size #1027

merged 23 commits into from
Apr 3, 2025

Conversation

maltesander
Copy link
Member

@maltesander maltesander commented Mar 14, 2025

Description

part of #961

REPOSITORY                     TAG                                     IMAGE ID       CREATED             SIZE
oci.stackable.tech/sdp/nifi    2.2.0-stackable0.0.0-dev-reduce-size    92c05585b8be   47 seconds ago      2.05GB
oci.stackable.tech/sdp/nifi    2.2.0-stackable0.0.0-dev                e00e41c2c1c5   36 hours ago        3.45GB
  • Does remove the recursive chmod/chown in the final image and attempts non recursive chmod/chown or doing as much as possible in the builder step.
  • Uses check-permissions-ownership script to validate any wrong permissions / ownership in the /stackable folder
 => [nifi-2_2_0 final  7/10] RUN <<EOF (microdnf update...)                                                                                                                                         8.2s
 => ERROR [nifi-2_2_0 final  8/10] RUN <<EOF (chmod +x /tmp/check-permissions-ownership...)                                                                                                         0.9s
------
 > [nifi-2_2_0 final  8/10] RUN <<EOF (chmod +x /tmp/check-permissions-ownership...):
0.601 Ownership mismatch:  /stackable/nifi (Expected: 1000:0, Found: 0:0)
0.622 Permission mismatch: /stackable/python (Owner: rwx, Group: r-x)
0.624 Permission mismatch: /stackable/bin (Owner: rwx, Group: r-x)
0.628 Permission mismatch: /stackable/nifi-2.2.0 (Owner: rwx, Group: r-x)
0.843 Permission and Ownership checks failed for /stackable!

@maltesander maltesander changed the title Fix: nifi reduce image sizereduce size Fix: nifi reduce image size Mar 14, 2025
@maltesander maltesander self-assigned this Mar 26, 2025
@maltesander maltesander marked this pull request as ready for review March 26, 2025 13:00
@siegfriedweber siegfriedweber self-requested a review March 31, 2025 07:26
Copy link
Member

@siegfriedweber siegfriedweber left a comment

Choose a reason for hiding this comment

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

LGTM

@maltesander maltesander added this pull request to the merge queue Apr 3, 2025
Merged via the queue into main with commit 5a508c1 Apr 3, 2025
3 checks passed
@maltesander maltesander deleted the fix/nifi-reduce-image-size branch April 3, 2025 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Development: In Review
Development

Successfully merging this pull request may close these issues.

3 participants