This folder contains the local Docker-based development environment for Pixels Sink.
- Docker Engine
- Docker Compose
- Pixels installed and available in your local or remote Maven repository
./installAfter installation, open Kafdrop to verify Kafka is up:
Grafana is also exposed at:
. scripts/common_func.sh
shutdown_containersThe ./install script supports the following flags (all are optional):
--need_build=on|offbuild images and Pixels Sink--need_init=on|offstart containers viadocker compose--generate_data=on|offgenerate TPCH data--data_scale=<number>TPCH scale factor, default0.1--enable_mysql=on|offenable MySQL connector and source DB--load_mysql=on|offload TPCH data into MySQL (requires--enable_tpch=on)--enable_postgres=on|offenable Postgres connector and source DB--load_postgres=on|offload TPCH data into Postgres (requires--enable_tpch=on)--enable_tpch=on|offenable TPCH dataset and loading logic--enable_tpcc=on|offrun TPC-C benchmark after startup--develop_debug=onenable verbose shell tracing
- Start containers only, no build, no data generation:
./install --need_build=off --generate_data=off --enable_mysql=off --load_postgres=off- Build images and start, without TPCH/TPC-C:
./install --need_build=on --generate_data=off --enable_tpch=off --enable_tpcc=off- MySQL only, no Postgres:
./install --need_build=on --generate_data=off --enable_mysql=on --enable_postgres=off --enable_tpch=off- MySQL + TPCH data generation (scale 10):
./install --need_build=on --generate_data=on --data_scale=10 --enable_mysql=on --enable_postgres=off --enable_tpch=on --enable_tpcc=off- MySQL + TPC-C benchmark:
./install --need_build=off --generate_data=off --enable_mysql=on --enable_postgres=off --enable_tpch=off --enable_tpcc=ondocker exec -it pixels_mysql_source_db \
mysql -upixels -ppixels_realtime_crud -D pixels_realtime_cruddocker exec -it pixels_postgres_source_db \
psql -Upixels -d pixels_realtime_crud