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

TEST PR replace base image #178

Open
wants to merge 4 commits into
base: 7.7.x
Choose a base branch
from
Open
Changes from all commits
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
8 changes: 7 additions & 1 deletion cp-ksqldb-cli/Dockerfile.ubi8
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG DOCKER_UPSTREAM_REGISTRY
ARG DOCKER_UPSTREAM_TAG

FROM ${DOCKER_UPSTREAM_REGISTRY}confluentinc/cp-base-new:${DOCKER_UPSTREAM_TAG}
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.10-1086

ENV COMPONENT=ksqldb-cli
ENV KSQL_CLASSPATH=/usr/share/java/${COMPONENT}/*
Expand All @@ -27,6 +27,10 @@ ARG CONFLUENT_PLATFORM_LABEL

USER root

RUN echo "===> Installing shadow-utils ..." \
&& microdnf install shadow-utils \
&& useradd -ms /bin/bash appuser

COPY --chown=appuser:appuser target/${ARTIFACT_ID}-${PROJECT_VERSION}-package/share/java/${ARTIFACT_ID}/* /usr/share/java/${COMPONENT}/
COPY --chown=appuser:appuser target/${ARTIFACT_ID}-${PROJECT_VERSION}-package/share/doc/* /usr/share/doc/${ARTIFACT_ID}/
COPY --chown=appuser:appuser target/dependency/ksqldb-console-scripts-*/* /usr/bin/
Expand All @@ -53,6 +57,8 @@ baseurl=${CONFLUENT_PACKAGES_REPO}/ \n\
gpgcheck=1 \n\
gpgkey=${CONFLUENT_PACKAGES_REPO}/archive.key \n\
enabled=1 " > /etc/yum.repos.d/confluent.repo \
&& echo "===> Installing yum ..." \
&& microdnf install -y yum \
&& echo "===> Installing Confluent Hub client ..." \
&& yum install -y confluent-hub-client-${CONFLUENT_VERSION} \
&& echo "===> Cleaning up ..." \
Expand Down