confluentinc / cp-docker-images

[DEPRECATED] Docker images for Confluent Platform.
Apache License 2.0
1.14k stars 703 forks source link

How to build Rhel/Centos docker image for confluent kafka/ zookeeper/schema registry /kafka connect #677

Open himmatb opened 5 years ago

himmatb commented 5 years ago

There is lot of vulnerabilities scaned in debian version of docker images of confluent kafka.. As per our company's security recommendation, they are not allowing to use these images..

Can anyone help me out to build docker images based on rhel for all confluent kafka, with process or docker image.. Didnt fond a way to start building images for that..

Help will be appreciated!!

OneCricketeer commented 5 years ago

Build from the Dockerfile.rpm files. https://github.com/confluentinc/cp-docker-images/blob/5.1.0-post/debian/base/Dockerfile.rpm#L15

himmatb commented 5 years ago

what will be value in base docker file "$CONFLUENT_MAJOR_VERSION.$CONFLUENT_MINOR_VERSION.$CONFLUENT_PATCH_VERSION" is there any confluent document available for these specific versions.

OneCricketeer commented 5 years ago

is there any confluent document available for these specific versions

Yes, the Confluent Platform release notes. 5.1.0, for example.

You can also try the build script here for all containers - https://github.com/confluentinc/cp-docker-images/blob/5.1.0-post/bin/build-debian (even though it says Debian, you'll see rpm docker files used inside)

himmatb commented 5 years ago

Thanks ..

Dragsaw commented 4 years ago

I was able to build CentOS images using makefile, e.g. make build-debian COMPONENTS='base zookeeper kafka enterprise-kafka'

Make sure you have maven version >3.2 installed.