VedarthConfluent commented on code in PR #14552:
URL: https://github.com/apache/kafka/pull/14552#discussion_r1412765462


##########
docker/README.md:
##########
@@ -0,0 +1,72 @@
+Docker Images
+=============
+
+This directory contains docker image for Kafka.
+The scripts take a url containing kafka as input and generate the respective 
docker image.
+There are interactive python scripts to release the docker image and promote a 
release candidate.
+
+Local Setup
+-----------
+Make sure you have python (>= 3.7.x) and java (>= 17) installed before running 
the tests and scripts.
+
+Run `pip install -r requirements.txt` to get all the requirements for running 
the scripts.
+
+Bulding image and running tests locally
+---------------------------------------
+- `docker_build_test.py` script builds and tests the docker image.
+- kafka binary tarball url along with image name, tag and type is needed to 
build the image. For detailed usage description check `python 
docker_build_test.py --help`.
+- Sanity tests for the docker image are present in test/docker_sanity_test.py.
+- By default image will be built and tested, but if you only want to build the 
image, pass `-b` flag and if you only want to test the given image pass `-t` 
flag.
+- An html test report will be generated after the tests are executed 
containing the results.
+
+Bulding image and running tests using github actions
+----------------------------------------------------
+This is the recommended way to build, test and get a CVE report for the docker 
image.

Review Comment:
   Yes, github actions UI provides the option to select the branch that you 
want to run the workflow on. Note that the kafka containerised will still be 
fetched from the tarball url. The code to build the container will depend on 
the branch selected.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to