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

Fluentd 1.16 base image #81

Conversation

OverOrion
Copy link
Contributor

This PR introduces a three stages docker build:

  • base => only the label router is added
  • minimal => some plugins are added
  • full => all plugins are added

I am more than happy to change which plugin goes where, just let me know.

Proof for the base image successfully running the E2E tests: OverOrion/logging-operator#3

  • The old v1.15 image is no longer in the CI, but the dockerfile is still there for it. Should I add back the old image, or just delete the whole folder?

Signed-off-by: Szilard Parrag <[email protected]>
Signed-off-by: Szilard Parrag <[email protected]>
Signed-off-by: Szilard Parrag <[email protected]>
Signed-off-by: Szilard Parrag <[email protected]>
Signed-off-by: Szilard Parrag <[email protected]>
Signed-off-by: Szilard Parrag <[email protected]>
Signed-off-by: Szilard Parrag <[email protected]>
Signed-off-by: Szilard Parrag <[email protected]>
Signed-off-by: Szilard Parrag <[email protected]>
Signed-off-by: Szilard Parrag <[email protected]>
Signed-off-by: Szilard Parrag <[email protected]>
Signed-off-by: Szilard Parrag <[email protected]>
@OverOrion OverOrion requested a review from pepov October 20, 2023 11:44
v1.16/Dockerfile Outdated Show resolved Hide resolved
v1.16/Dockerfile Outdated
Comment on lines 57 to 61
RUN apk update \
&& apk add --no-cache --virtual .build-deps \
build-base \
ruby-dev gnupg \
&& apk add $BUILD_DEPS \
Copy link
Member

Choose a reason for hiding this comment

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

isn't this already installed in the base?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@OverOrion OverOrion Oct 20, 2023

Choose a reason for hiding this comment

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

I was a bit hasty, sorry!

The are installed and then removed at every stage, so each image/stage is as small as possible, that's why it seemed like a duplicate, but it's not.

I am open to just installing it during the first stage and only removing it at the last stage, if you think it's not worth it.

Copy link
Member

Choose a reason for hiding this comment

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

depends on how big the result will be, but would make the dockerfile much simpler

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The difference on the base target is 3 MBs:

$ docker images | grep clean

fluentd-base-without-cleaned-up               latest                               fa9756961272   4 seconds ago        189MB
fluentd-base-cleaned-up                       latest                               ca135c728c7a   About a minute ago   192MB

I think it makes sense to keep it in this case.

v1.16/Dockerfile Outdated Show resolved Hide resolved
v1.16/Dockerfile Outdated Show resolved Hide resolved
@OverOrion
Copy link
Contributor Author

Superseded by #82

@OverOrion OverOrion closed this Oct 26, 2023
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