Skip to content

CPBR-2163: cp-ksqldb-server docker image size reduction#208

Merged
Prince Raheja (rahejaprince) merged 7 commits intomasterfrom
ksql_docker_refresh
Mar 24, 2025
Merged

CPBR-2163: cp-ksqldb-server docker image size reduction#208
Prince Raheja (rahejaprince) merged 7 commits intomasterfrom
ksql_docker_refresh

Conversation

@rahejaprince
Copy link
Copy Markdown
Member

@rahejaprince Prince Raheja (rahejaprince) commented Mar 21, 2025

This PR makes changes to cp-ksqldb-server docker image to reduce the size of the image.
Following changes are done to reduce the size

  1. use of new base image cp-base-java which is not containing a lot of packages present today in cp-base-new. This new image also removes python, which means no cub/dub. To get around this, CPBR team has extended already written ub.go script in golang to support the requirements for this migration.
  2. It uses a multi stage docker build for cp-ksqldb-server image. In first step, it follows the steps as followed today and adds 1 more stage of reducing the duplicate jars present in docker image with symlink to the first occurence found for that jar. In second stage, it just copies all files as it is to a ubi9-minimal docker image.

Testing for this has been done locally using docker-compose where 7.9.x-latest-ubi8 images are used for kafka and schema-registry. As there hasn't been any successful docker build for master branch, CI tests are going to fail until there is a green build for CP docker image pipeline.

@sonarqube-confluent

This comment has been minimized.

1 similar comment
@sonarqube-confluent

This comment has been minimized.

@rahejaprince Prince Raheja (rahejaprince) changed the title Ksql docker refresh CPBR-2163: cp-ksqldb-server docker image size reduction Mar 24, 2025
@sonarqube-confluent
Copy link
Copy Markdown

Passed

Analysis Details

1 Issue

  • Bug 0 Bugs
  • Vulnerability 0 Vulnerabilities
  • Code Smell 1 Code Smell

Coverage and Duplications

  • Coverage No coverage information (0.00% Estimated after merge)
  • Duplications No duplication information (0.00% Estimated after merge)

Project ID: ksql-images

View in SonarQube

@rahejaprince Prince Raheja (rahejaprince) marked this pull request as ready for review March 24, 2025 12:41
@rahejaprince Prince Raheja (rahejaprince) requested a review from a team as a code owner March 24, 2025 12:41
@rahejaprince Prince Raheja (rahejaprince) merged commit 078c438 into master Mar 24, 2025
1 of 2 checks passed
@rahejaprince Prince Raheja (rahejaprince) deleted the ksql_docker_refresh branch March 24, 2025 12:41
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