...
kafka-native:3.5.1
native
indicates that the image consists of the native binary.For many users,
native
might not make much sense.kafka-native:3.5.1-1
In case of docker dedicated release, added a suffix -1
Directory Structure
A new directory named docker
will be added to the repository. This directory will contain all the Docker related code.
Directory Structure:
|
NOTE: This structure is designed with the anticipation of introducing another Docker image based on the native Apache Kafka Broker (as per KIP-975). Both images will share the same resources for image building.
Configuring Properties
We offer two methods for passing the above properties to the container:
File Mounting: Users can mount a properties file to a specific path within the container (we will clearly document this path). This file will then be utilized to start up Kafka.
Using Environment Variables: Alternatively, users have the option to provide configurations via environment variables. Here's how to structure these variables:
- Replace
.
with_
- Replace
_
with__
(double underscore)
- Replace - with
___
(triple underscore)
- Prefix the result with
KAFKA_
Examples:
- For
abc.def
, useKAFKA_ABC_DEF
- For
abc-def
, useKAFKA_ABC___DEF
- For
abc_def
, useKAFKA_ABC__DEF
- Replace
This way, you have flexibility in how you pass configurations to the container, making it more adaptable to various user preferences and requirements.
NOTE:
- Secrets will be provided to the container using folder mount.
- If a property is provided both in the mounted file and as an environment variable, the value from the environment variable will take precedence.
Compatibility, Deprecation, and Migration Plan
...