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

Build docker image with serdes #251

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions api/Dockerfile-Serdes
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ARG BASE_UI_IMAGE=ghcr.io/kafbat/kafka-ui:main
Copy link
Member

Choose a reason for hiding this comment

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

This means that if we run this workflow without running our main image, we're gonna build an outdated image. We need to either depend on the base image workflow or use some other approach.

Copy link
Member Author

Choose a reason for hiding this comment

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

it is possible, but I think it is better approach
this enables to track versioning of serders separatly from the kafka-ui main.

FROM $BASE_UI_IMAGE

ARG SERDE_SMILE_JAR=https://github.com/kafbat/ui-serde-smile/releases/download/v1.0.1/serde-smile-v1.0.1-jar-with-dependencies.jar
Copy link
Member

Choose a reason for hiding this comment

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

Could we add glue serde also?

Copy link
Member

Choose a reason for hiding this comment

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

@germanosin yes, it's a WIP

ARG SERDE_SMILE_VERSION=1.0.1
USER root
RUN mkdir /usr/lib/serdes; \
chown -R kafkaui:kafkaui /usr/lib/serdes
USER kafkaui

RUN cd /usr/lib/serdes; \
wget -O "kafka-ui-smile-serde-${SERDE_SMILE_VERSION}.jar" $SERDE_SMILE_JAR
ENV kafka.clusters.0.serde.0.name="Smile"
ENV kafka.clusters.0.serde.0.filePath="/usr/lib/serdes/kafka-ui-smile-serde-${SERDE_SMILE_VERSION}.jar"
ENV kafka.clusters.0.serde.0.className="io.kafbat.serde.smile.SmileSerde"
Loading