Commit Graph

39 Commits

Author SHA1 Message Date
Logan Zhu 772b7c2a5f
MINOR: Add Docker version requirement and permission warning to README (#19994)
Adds a new section **"Installation Preparation"** to the Kafka Docker
examples README. It documents a known issue with Docker versions prior
to 20.10.4, where directory permissions (such as `/opt/kafka/config`)
are not properly set, causing startup failures for non-root users (e.g.,
`appuser`).

This issue was fixed in Docker [20.10.4
release](https://docs.docker.com/engine/release-notes/20.10/#20104),
specifically in Use 0755 permissions when creating missing directories
[moby/moby#42017](https://github.com/moby/moby/pull/42017).

Reviewers: Jhen-Yung Hsu <jhenyunghsu@gmail.com>, Lan Ding
 <isDing_L@163.com>, Chia-Ping Tsai <chia7712@gmail.com>

---------

Co-authored-by: Jhen-Yung Hsu <yungyung7654321@gmail.com>
2025-06-19 17:07:45 +08:00
Luke Chen ed79212fb8
MINOR: bump zstd minor version to 1.5.6-10 (#19512)
Bump zstd minor version to 1.5.6-10.

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2025-04-21 14:13:41 +08:00
S.Y. Wang e9ca0bb0f6
KAFKA-18983 Ensure all README.md(s) are mentioned by the root README.md (#19420)
There are few README not added because I am not sure if they need to be
mentioned in root README.
```
./test-common/test-common-internal-api/src/main/java/org/apache/kafka/common/test/api/README.md
./storage/src/test/java/org/apache/kafka/tiered/storage/README.md
./.github/workflows/README.md
./raft/README.md
./committer-tools/README.md
```

Reviewers: Ken Huang <s7133700@gmail.com>, TengYao Chi
<kitingiao@gmail.com>, PoAn Yang <payang@apache.org>, Jhen-Yung Hsu
<jhenyunghsu@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
2025-04-16 01:06:48 +08:00
TengYao Chi 767a62ade6
KAFKA-18737 KafkaDockerWrapper setup functions fails due to storage format command (#18844)
The current Docker Hub documentation for Kafka is based on the use of static voters. Since Kafka 4.0 utilizes dynamic voters, users following the doc of docker hub may encounter unexpected behavior. Due to the limited time available for the 4.0.0 release, a simple and quick solution is to revert to using static voters within the Docker image. This can be achieved by adding a configuration file with static voter definitions to the kafka/docker folder, keeping it separate from the main kafka/config directory. This approach allows us to encourage the use of dynamic voters in typical deployments while maintaining compatibility within the Docker image.

Reviewers: Vedarth Sharma <142404391+VedarthConfluent@users.noreply.github.com>, Chia-Ping Tsai <chia7712@gmail.com>
2025-02-21 20:43:41 +08:00
PoAn Yang 1132f08c57
KAFKA-18773 Migrate the log4j1 config to log4j 2 for native image and README (#18872)
- update reflection-config.json and resource-config.json to include log4j2 and jackson
- remove unused jackson scala library
- fix the incorrect path of log4j2.yaml
- adopt workaround (--standalone) to make this PR work and it will be fixed by KAFKA-18737)

Reviewers: TengYao Chi <kitingiao@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
2025-02-19 00:48:46 +08:00
Jimmy Wang ea5d0864d5
KAFKA-18772 Define share group config defaults for Docker (#18899)
Co-authored-by: jimmy <wangzhiwang@qq.com>
Reviewers: Andrew Schofield <aschofield@confluent.io>
2025-02-14 12:26:18 +00:00
TengYao Chi f5dd661cb5
KAFKA-18396: Migrate log4j1 configuration to log4j2 in KafkaDockerWrapper (#18394)
After log4j migration, we need to update the logging configuration in KafkaDockerWrapper from log4j1 to log4j2.

Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>
2025-02-11 13:25:23 +05:30
TengYao Chi 7e86bd8281
KAFKA-18229: Move configs out of "kraft" directory (#18389)
Reviewers: Mickael Maison <mickael.maison@gmail.com>, Ismael Juma <ismael@juma.me.uk>, José Armando García Sancio <jsancio@apache.org>
2025-01-22 15:47:57 +01:00
Ken Huang cd061c8039
KAFKA-18340: Change Dockerfile to use log4j2 yaml instead log4j properties (#18378)
Reviewers: Mickael Maison <mickael.maison@gmail.com>
2025-01-10 15:58:39 +01:00
Yung eedd9cdf43
MINOR: Fix README for running a Kafka broker (#18030)
Reviewers: Josep Prat <josep.prat@aiven.io>, Chia-Ping Tsai <chia7712@gmail.com>
2024-12-08 01:06:51 +08:00
Federico Valeri 918a67ece8
MINOR: Improve Docker examples readme (#17894)
This patch adds some clarity about the environment variables usage and limitations.
It also removes the invalid example and adds few style fixes.

Signed-off-by: Federico Valeri <fedevaleri@gmail.com>

Reviewers: Vedarth Sharma <vesharma@confluent.io>, Luke Chen <showuon@gmail.com>
2024-11-26 10:21:07 +08:00
kevin-wu24 aa4782aea3
KAFKA-17576 Fix all references to kraft/server.properties to use reconfig-server.properties (#17567)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-11-08 03:58:21 +08:00
wperlichek 49ea947095
MINOR: Fix spelling typo in Docker Compose examples in README (#17631)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-30 20:44:24 +08:00
PoAn Yang 2d896d9130
KAFKA-17614: Remove AclAuthorizer (#17424)
Reviewers: Mickael Maison <mickael.maison@gmail.com>
2024-10-23 17:07:48 +02:00
Dmitry Werner 672c617233
KAFKA-14577: Move ConsoleProducer to tools module (#17157)
Reviewers: Mickael Maison <mickael.maison@gmail.com>, Federico Valeri <fedevaleri@gmail.com>
2024-10-07 11:19:59 +02:00
Oleg Bonar 42cc3c0ad5
Update zstd-jni lib (#17253)
Reviewers: Josep Prat <josep.prat@aiven.io>
2024-09-24 08:52:47 +02:00
Oleg Bonar 2703b64c4c
MINOR: Update zstd-jni to 1.5.6-5 (#17151)
Reviewers: Mickael Maison <mickael.maison@gmail.com>
2024-09-12 17:47:32 +02:00
Krishna Agarwal 24d88c46c0
MINOR: Add experimental message for the native docker image (#17040)
The docker image for Native Apache Kafka was introduced with KIP-974 and was first release with 3.8 AK release.
The docker image for Native Apache Kafka is currently intended for local development and testing purposes.

This PR intends to add a logline indicating the same during docker image startup.

Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>
2024-08-29 16:33:32 +05:30
Josep Prat a4277c6617
KAFKA-17227: Update zstd-jni lib (#16763)
* KAFKA-17227: Update zstd-jni lib
* Add note in upgrade docs
* Change zstd-jni version in docker native file and add warning in dependencies.gradle file
* Add reference to snappy in upgrade

Reviewers:  Chia-Ping Tsai <chia7712@gmail.com>,  Mickael Maison <mickael.maison@gmail.com>
2024-08-05 09:51:46 +02:00
Krishna Agarwal bcf781230e
KAFKA-16932: Add documentation for the native docker image (#16338)
This PR contains the the following documentation changes for the native docker image:

in the docker/README.md: How to build, release and promote the native docker image.
in the tests/README.md: How to run system tests by bringing up kafka in the native mode.
added docker/native/README.md
added html changes for the kafka-site
added native docker image support in the docker compose files examples.

Testing:
Tested all the docker compose files with both the docker images - jvm and native
Tested the html changes locally with the kafka-site

Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>, Vedarth Sharma <vesharma@confluent.io>
2024-06-16 14:01:13 +05:30
KrishVora01 b7dcae44ff
KAFKA-16373: KIP-1028: Modfiying download url for kafka dockerfile (#16281)
This PR modifies the download url from https://downloads.apache.org/kafka/ to https://archive.apache.org/dist/kafka/ as the former is not permanent.

Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>, Vedarth Sharma <vesharma@confluent.io>
2024-06-11 21:02:33 +05:30
KrishVora01 f746d67c3b
KAFKA-16373: KIP-1028: Adding 3.7.0 docker official images static assets (#16267)
This PR aims to add the static Dockerfile and scripts for AK 3.7.0 version. As mentioned in KIP-1028 this PR aims to start the release of the kafka:3.7.0 Docker Official image. This will also help us validate the process and allow us to address any changes suggested by Dockerhub before the 3.8.0 release.

The static Dockerfile and scripts have been generated via the github actions workflows and scripts added as part of https://github.com/apache/kafka/pull/16027. The reports of build and testing the 3.7.0 Docker official image are below.

Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>, Vedarth Sharma <vesharma@confluent.io>
2024-06-11 16:20:47 +05:30
KrishVora01 557c232675
[MINOR] KAFKA-16373: KIP-1028: Modifying dockerfile comments (#16261)
This PR aims to add the replace the dockerfile comments under the jvm/dockerfile  Dockerfile, with updated url.
The original comment read
# Get kafka from https://archive.apache.org/dist/kafka and pass the url through build arguments . For DOI dockerfiles, we replace this with
# Get Kafka from https://downloads.apache.org/kafka, url passed as env var, for version {kafka_version} .

Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>, Vedarth Sharma <vesharma@confluent.io>
2024-06-10 14:55:55 +05:30
KrishVora01 84b2d5bedf
modifying Readme for Docker official images (#16226)
This PR aims to modify the README file under /docker, to include the steps to release the Docker Official Images.

Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>, Vedarth Sharma <vesharma@confluent.io>
2024-06-10 12:11:13 +05:30
Krishna Agarwal bb6a042e99
KAFKA-16827: Integrate kafka native-image with system tests (#16046)
This PR does following things

System tests should bring up Kafka broker in the native mode
System tests should run on Kafka broker in native mode
Extract out native build command so that it can be reused.
Allow system tests to run on Native Kafka broker using Docker mechanism

To run system tests by bringing up Kafka in native mode:
Pass kafka_mode as native in the ducktape globals:--globals '{\"kafka_mode\":\"native\"}'

Running system tests by bringing up kafka in native mode via docker mechanism
_DUCKTAPE_OPTIONS="--globals '{\"kafka_mode\":\"native\"}'" TC_PATHS="tests/kafkatest/tests/"  bash tests/docker/run_tests.sh

To only bring up ducker nodes to cater native kafka
bash tests/docker/ducker-ak up -m native

Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>
2024-05-30 22:24:23 +05:30
KrishVora01 2432a1866e
KAFKA-16373: KIP-1028: Adding code to support Apache Kafka Docker Official Images (#16027)
This PR aims to add JVM based Docker Official Image for Apache Kafka as per the following KIP - https://cwiki.apache.org/confluence/display/KAFKA/KIP-1028%3A+Docker+Official+Image+for+Apache+Kafka

This PR adds the following functionalities:
Introduces support for Apache Kafka Docker Official Images via:

GitHub Workflows:

- Workflow to prepare static source files for Docker images
- Workflow to build and test Docker official images
- Scripts to prepare source files and perform Docker image builds and tests

A new directory for Docker official images, named docker/docker_official_images. This is the new directory to house all Docker Official Image assets.

Co-authored-by: Vedarth Sharma <vesharma@confluent.io>

Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>, Vedarth Sharma <vesharma@confluent.io>
2024-05-24 22:21:02 +05:30
Krishna Agarwal 271c04bd17
KAFKA-15444: Native docker image for Apache Kafka (KIP-974) (#15927)
This PR aims to add Docker Image for GraalVM based Native Kafka Broker as per the following KIP - https://cwiki.apache.org/confluence/display/KAFKA/KIP-974%3A+Docker+Image+for+GraalVM+based+Native+Kafka+Broker

This PR adds the following functionalities:

Ability to build the docker image for Native Apache Kafka
   - Dockerfile
   - Launch script
   - metadata configs required by graalVM native-image: link
Add Kafka startup ability in the KafkaDockerWrapper.scala
Ability to build and test the image - integrated with the existing JVM docker image framework.
2024-05-22 10:52:46 +05:30
Vedarth Sharma e4d34ddd20
MINOR: Fix CDS in docker image (#15771)
Due to difference in packages present when jsa files were generated and when docker image is generated, there is a log on starting docker image.

[0.001s][warning][cds] The shared archive file has a bad magic number: 0

There is no functionality impact, only startup time is higher because of this issue.

This PR fixes the warning and improves startup performance of the docker image

Reviewers:  Manikumar Reddy <anikumar.reddy@gmail.co
2024-04-22 14:51:39 +05:30
Vedarth Sharma e9e007aec8
KAFKA-15882: Add nightly docker image scan job (#15013)
Reviewers: Mickael Maison <mickael.maison@gmail.com>
2024-03-25 09:23:01 +01:00
Vedarth Sharma ec4a8aaadb
[MINOR] Fix docker image build by introducing bash (#15347)
The base eclipse-temuring:21-jre-alpine image got modified and had `bash` removed from it. This broke our build, since downstream steps utilizing bash scripts depended on it. This patch explicitly installs bash
2024-02-09 14:00:20 +01:00
Vedarth Sharma 116762fdce
KAFKA-16016: Add docker wrapper in core and remove docker utility script (#15048)
Migrates functionality provided by utility to Kafka core. This wrapper will be used to generate property files and format storage when invoked from docker container.

Reviewers: Mickael Maison <mickael.maison@gmail.com>, Viktor Somogyi-Vass <viktorsomogyi@gmail.com>, Manikumar Reddy <manikumar.reddy@gmail.com>
2024-01-08 18:07:38 +05:30
Lokesh Kumar 810f63b5b6
MINOR: update docker readme (#15120)
Fixed minor typos in docker/README documentation.

Reviewers: Lokesh Kumar <lkumar94@gmail.com>
2024-01-04 11:35:55 +08:00
Vedarth Sharma ad66f1395c
MINOR: Use random cluster id for jsa file preparation (#15041)
Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>
2023-12-19 11:04:45 +05:30
Vedarth Sharma fb3a059262
MINOR: Rename and update test files for docker image (#14991)
Update the port mapping in test compose files to align with the recommendations in example files

Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>
2023-12-13 11:59:48 +05:30
Vedarth Sharma c5ee82cab4
KAFKA-15881: Update Release Process for Docker images documentation (#14990)
Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>
2023-12-12 17:26:45 +05:30
Vedarth Sharma dfc456daa7
MINOR: Fix typos in docker/example/README.md (#14989)
Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>, Luke Chen <showuon@gmail.com>
2023-12-12 14:27:28 +05:30
Vedarth Sharma 0cd2be8718
KAFKA-15879: Add documentation and examples for docker image (#14938)
Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>
2023-12-12 10:29:05 +05:30
Vedarth Sharma e610767f95
MINOR: Add documentation for docker image github actions (#14952)
Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>
2023-12-07 16:28:59 +05:30
Vedarth Sharma eec1530da0
KAFKA-15445: Add JVM Docker image (#14552)
This PR aims to add Apache Kafka JVM Docker image as per the following KIP - https://cwiki.apache.org/confluence/display/KAFKA/KIP-975%3A+Docker+Image+for+Apache+Kafka

Reviewers:  Ismael Juma <ismael@juma.me.uk>, Ashwin Pankaj <apankaj@confluent.io>, Manikumar Reddy <manikumar.reddy@gmail.com>, Sanjay Awatramani <sawatramani@confluent.io>, 
Nikita Konev
2023-12-06 15:59:13 +05:30