This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pipeline { | |
| agent { label "docker" } | |
| stages { | |
| stage("test sidecar") { | |
| steps{ | |
| script { | |
| withDockerNetwork { n -> | |
| // we could use Image.withRun() instead of Image.run(), | |
| // and get rid of try/catch/finally blocks | |
| // It's prefferable way, but it doesn't remove volumes after containers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: kafka-sandbox | |
| services: | |
| kafka: | |
| image: bitnami/kafka:4.0.0 | |
| environment: | |
| - KAFKA_CLUSTER_ID=lkorDA4qT6W1K_dk0LHvtg | |
| # Start Kraft Setup (Kafka as Controller - no Zookeeper) | |
| - KAFKA_CFG_NODE_ID=1 | |
| - KAFKA_CFG_PROCESS_ROLES=broker,controller | |
| - KAFKA_CFG_BROKER_ID=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT | |
| relname AS "relation", | |
| C .reltuples::bigint AS approximate_rows, | |
| pg_size_pretty ( | |
| pg_total_relation_size (C .oid) | |
| ) AS "data_size", | |
| pg_size_pretty ( | |
| pg_indexes_size(C .oid) | |
| ) as "indexes_size", | |
| pg_size_pretty ( |
OlderNewer