anyproto / any-sync-dockercompose

docker-compose for testing any-sync
MIT License
394 stars 56 forks source link

feat: allow to customize the number of sync nodes #77

Closed hellodword closed 3 months ago

hellodword commented 4 months ago


Description

Partly fixes #75

  1. Now users could simply edit the .env.common for different number of sync nodes:
diff --git a/.env.common b/.env.common
index bae57f2..90eb610 100644
--- a/.env.common
+++ b/.env.common
@@ -37,6 +37,42 @@ ANY_SYNC_NODE_3_ADDRESSES=${ANY_SYNC_NODE_3_HOST}:${ANY_SYNC_NODE_3_PORT}
 ANY_SYNC_NODE_3_QUIC_PORT=1013
 ANY_SYNC_NODE_3_QUIC_ADDRESSES=${ANY_SYNC_NODE_3_HOST}:${ANY_SYNC_NODE_3_QUIC_PORT}

+ANY_SYNC_NODE_4_HOST=any-sync-node-4
+ANY_SYNC_NODE_4_PORT=2004
+ANY_SYNC_NODE_4_ADDRESSES=${ANY_SYNC_NODE_4_HOST}:${ANY_SYNC_NODE_4_PORT}
+ANY_SYNC_NODE_4_QUIC_PORT=2014
+ANY_SYNC_NODE_4_QUIC_ADDRESSES=${ANY_SYNC_NODE_4_HOST}:${ANY_SYNC_NODE_4_QUIC_PORT}
+ANY_SYNC_NODE_5_HOST=any-sync-node-5
+ANY_SYNC_NODE_5_PORT=2005
+ANY_SYNC_NODE_5_ADDRESSES=${ANY_SYNC_NODE_5_HOST}:${ANY_SYNC_NODE_5_PORT}
+ANY_SYNC_NODE_5_QUIC_PORT=2015
+ANY_SYNC_NODE_5_QUIC_ADDRESSES=${ANY_SYNC_NODE_5_HOST}:${ANY_SYNC_NODE_5_QUIC_PORT}
+ANY_SYNC_NODE_6_HOST=any-sync-node-6
+ANY_SYNC_NODE_6_PORT=2006
+ANY_SYNC_NODE_6_ADDRESSES=${ANY_SYNC_NODE_6_HOST}:${ANY_SYNC_NODE_6_PORT}
+ANY_SYNC_NODE_6_QUIC_PORT=2016
+ANY_SYNC_NODE_6_QUIC_ADDRESSES=${ANY_SYNC_NODE_6_HOST}:${ANY_SYNC_NODE_6_QUIC_PORT}
+ANY_SYNC_NODE_7_HOST=any-sync-node-7
+ANY_SYNC_NODE_7_PORT=2007
+ANY_SYNC_NODE_7_ADDRESSES=${ANY_SYNC_NODE_7_HOST}:${ANY_SYNC_NODE_7_PORT}
+ANY_SYNC_NODE_7_QUIC_PORT=2017
+ANY_SYNC_NODE_7_QUIC_ADDRESSES=${ANY_SYNC_NODE_7_HOST}:${ANY_SYNC_NODE_7_QUIC_PORT}
+ANY_SYNC_NODE_8_HOST=any-sync-node-8
+ANY_SYNC_NODE_8_PORT=2008
+ANY_SYNC_NODE_8_ADDRESSES=${ANY_SYNC_NODE_8_HOST}:${ANY_SYNC_NODE_8_PORT}
+ANY_SYNC_NODE_8_QUIC_PORT=2018
+ANY_SYNC_NODE_8_QUIC_ADDRESSES=${ANY_SYNC_NODE_8_HOST}:${ANY_SYNC_NODE_8_QUIC_PORT}
+ANY_SYNC_NODE_9_HOST=any-sync-node-9
+ANY_SYNC_NODE_9_PORT=2009
+ANY_SYNC_NODE_9_ADDRESSES=${ANY_SYNC_NODE_9_HOST}:${ANY_SYNC_NODE_9_PORT}
+ANY_SYNC_NODE_9_QUIC_PORT=2019
+ANY_SYNC_NODE_9_QUIC_ADDRESSES=${ANY_SYNC_NODE_9_HOST}:${ANY_SYNC_NODE_9_QUIC_PORT}
+ANY_SYNC_NODE_10_HOST=any-sync-node-10
+ANY_SYNC_NODE_10_PORT=2010
+ANY_SYNC_NODE_10_ADDRESSES=${ANY_SYNC_NODE_10_HOST}:${ANY_SYNC_NODE_10_PORT}
+ANY_SYNC_NODE_10_QUIC_PORT=2110
+ANY_SYNC_NODE_10_QUIC_ADDRESSES=${ANY_SYNC_NODE_10_HOST}:${ANY_SYNC_NODE_10_QUIC_PORT}
+
 ANY_SYNC_COORDINATOR_HOST=any-sync-coordinator
 ANY_SYNC_COORDINATOR_PORT=1004
 ANY_SYNC_COORDINATOR_ADDRESSES=${ANY_SYNC_COORDINATOR_HOST}:${ANY_SYNC_COORDINATOR_PORT}
  1. Remove the minio/mc, because the minio/minio contains mc
  2. Install pip dependencies with pip, not system package manager

What type of PR is this? (check all applicable)

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings

Added tests?

Added to documentation?

[optional] Are there any post-deployment tasks we need to perform?

socket-security[bot] commented 4 months ago

New dependencies detected. Learn more about Socket for GitHub β†—οΈŽ

Package New capabilities Transitives Size Publisher
pypi/jinja2@3.1.4 environment, eval, filesystem, unsafe 0 921 kB
pypi/pyyaml@6.0.1 environment, eval, filesystem, network 0 3.4 MB ingy, nitzmahone, tinita

View full reportβ†—οΈŽ