Skip to content

Commit

Permalink
feat(docker): add docker shell for new version (#2027)
Browse files Browse the repository at this point in the history
add docker shell for new version

Signed-off-by: cuisongliu <[email protected]>
  • Loading branch information
cuisongliu authored Sep 19, 2024
1 parent 84856f2 commit 8d4821a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ networks:
driver: default
config:
- subnet: "10.6.0.0/16"
gateway: "10.6.0.1"
gateway: "10.6.0.1"
7 changes: 3 additions & 4 deletions docker/scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,10 @@ kafka_up() {
for role in "broker" "controller" "server"; do
setup_value "node.id" "${node_id}" "${kafka_dir}/config/kraft/${role}.properties"
setup_value "controller.quorum.voters" "${quorum_voters}" "${kafka_dir}/config/kraft/${role}.properties"
setup_value "s3.region" "${s3_region}" "${kafka_dir}/config/kraft/${role}.properties"
setup_value "s3.bucket" "${s3_bucket}" "${kafka_dir}/config/kraft/${role}.properties"
setup_value "s3.data.bucket" "0@s3://${s3_bucket}?region=${s3_region}&endpoint=${s3_endpoint}&accessKey=static" "${kafka_dir}/config/kraft/${role}.properties"
setup_value "s3.ops.bucket" "0@s3://${s3_bucket}?region=${s3_region}&endpoint=${s3_endpoint}&accessKey=static" "${kafka_dir}/config/kraft/${role}.properties"
setup_value "log.dirs" "${data_path}/kraft-${role}-logs" "${kafka_dir}/config/kraft/${role}.properties"
setup_value "s3.wal.path" "${data_path}/wal" "${kafka_dir}/config/kraft/${role}.properties"
setup_value "s3.endpoint" "${s3_endpoint}" "${kafka_dir}/config/kraft/${role}.properties"
setup_value "s3.wal.path" "0@file://${data_path}/wal?capacity=2147483648" "${kafka_dir}/config/kraft/${role}.properties"
# turn on auto_balancer
turn_on_auto_balancer "${role}" "${kafka_dir}/config/kraft/${role}.properties"
done
Expand Down

0 comments on commit 8d4821a

Please sign in to comment.