Run KaDeck Web All In One Box to test your applications

This article shows how to use the KaDeck Web All In One Box from Docker Hub with Kafka components for testing or development purpose. 

The KaDeck Web All In One Box provides an environment with the following components inside one Docker container:

  • KaDeck Web with test data (can be disabled)

  • One Kafka Broker

  • One Zookeeper

  • One SchemaRegistry

  • One KafkaConnect Worker

This environment can be useful if you want to connect from your development environment to a Kafka cluster and other Kafka components to run tests.

Try KaDeck Web

Run this docker script if you want to check out KaDeck Web in a demo environment. If you want to have an environment for testing and development, read the section "Setup for development".

docker run -it -p 80:80 xeotek/kadeck-allinone:latest

Then log in via http://localhost:80 with both, the user name & password "admin".

Note: Depending on your configuration, you may need to replace localhost with a different IP, e.g. if your container/docker network is accessible from your host machine via an IP other than 127.0.0.1.

 

Starting the container on Apple silicon

To start the Docker container on Apple silicon, please add the following parameter:

--platform linux/amd64

Like so:

docker run -it --platform linux/amd64 -p 80:80 xeotek/kadeck-allinone:latest

 

Setup for development

Run this docker script (also, read the note below!).

docker run -p 80:80 -p 9092:9092 -p 8083:8083 -p 8081:8081 -e FULLENV=true -e DEMO_ARGS="true true" -e ADV_HOST=127.0.0.1:9092 xeotek/kadeck-allinone:latest

Note: Depending on your configuration, you may need to change the ADV_HOST environment variable, e.g. if your container/docker network is accessible from your host machine via an IP other than 127.0.0.1. The value of this variable is passed to the Kafka broker as KAFKA_ADVERTISED_LISTENERS.

 

Access KaDeck Web user interface

The KaDeck web UI should be accessible after about a minute (see the container's logs) via http://127.0.0.1:80. If your Docker container/Docker network is accessible from your host machine via an IP address other than 127.0.0.1, you must use this IP address instead (see the note above).

If everything worked, you will be greeted by the KaDeck Web login screen.

The username and password for the login are both "admin" (without the apostrophes).

 

Disable test data creation

The test data creation can be disabled with the following environment variable:

-e NODATA=true

 

Disable Kafka Connect and SchemaRegistry

To run the container without Kafka Connect and Schema Registry, set the following environment variable to false or leave it away completely:

-e FULLENV=false
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.