-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor: Test Framework and Update Docker Compose Configuration #701
base: master
Are you sure you want to change the base?
Changes from all commits
15fb14c
d9607f9
ffc737c
4139b87
6817913
96134ac
c32cfa1
ce9bfe1
20d686f
71e827a
d6c0471
dd385cc
c183c2e
71c19af
edd7f22
81a22ae
702d34b
55b0158
33203c3
95ae436
eaea991
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
version: "3.9" | ||
|
||
services: | ||
node1: | ||
image: ghcr.io/xline-kv/xline:latest | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add |
||
networks: | ||
xline_network: | ||
ipv4_address: 172.22.0.2 | ||
volumes: | ||
- ./fixtures:/mnt | ||
ports: | ||
- "2479:2379" # No change for node1 | ||
environment: | ||
RUST_LOG: curp=debug,xline=debug | ||
command: > | ||
xline | ||
rohansx marked this conversation as resolved.
Show resolved
Hide resolved
|
||
--name node1 | ||
--members node1=http://172.22.0.2:2379,node2=http://172.22.0.3:2379,node3=http://172.22.0.4:2379 | ||
--storage-engine rocksdb | ||
--data-dir /usr/local/xline/data-dir | ||
--auth-public-key /mnt/public.pem | ||
--auth-private-key /mnt/private.pem | ||
--client-listen-urls http://172.22.0.2:2379 | ||
--peer-listen-urls http://172.22.0.2:2380 | ||
|
||
node2: | ||
image: ghcr.io/xline-kv/xline:latest | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above. |
||
networks: | ||
xline_network: | ||
ipv4_address: 172.22.0.3 | ||
volumes: | ||
- ./fixtures:/mnt | ||
ports: | ||
- "2480:2379" # Changed from 2479:2379 to avoid conflict | ||
environment: | ||
RUST_LOG: curp=debug,xline=debug | ||
command: > | ||
xline | ||
--name node2 | ||
--members node1=http://172.22.0.2:2379,node2=http://172.22.0.3:2379,node3=http://172.22.0.4:2379 | ||
--storage-engine rocksdb | ||
--data-dir /usr/local/xline/data-dir | ||
--auth-public-key /mnt/public.pem | ||
--auth-private-key /mnt/private.pem | ||
--client-listen-urls http://172.22.0.3:2379 | ||
--peer-listen-urls http://172.22.0.3:2380 | ||
|
||
node3: | ||
image: ghcr.io/xline-kv/xline:latest | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above |
||
networks: | ||
xline_network: | ||
ipv4_address: 172.22.0.4 | ||
volumes: | ||
- ./fixtures:/mnt | ||
ports: | ||
- "2381:2379" # No conflict here | ||
environment: | ||
RUST_LOG: curp=debug,xline=debug | ||
command: > | ||
xline | ||
--name node3 | ||
--members node1=http://172.22.0.2:2379,node2=http://172.22.0.3:2379,node3=http://172.22.0.4:2379 | ||
--storage-engine rocksdb | ||
--data-dir /usr/local/xline/data-dir | ||
--auth-public-key /mnt/public.pem | ||
--auth-private-key /mnt/private.pem | ||
--client-listen-urls http://172.22.0.4:2379 | ||
--peer-listen-urls http://172.22.0.4:2380 | ||
|
||
client: | ||
image: ghcr.io/xline-kv/etcdctl:v3.5.9 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above |
||
depends_on: | ||
- node1 | ||
- node2 | ||
- node3 | ||
networks: | ||
- xline_network | ||
command: sh -c "while true; do sleep 30; done" # Keeps the client running | ||
|
||
rohansx marked this conversation as resolved.
Show resolved
Hide resolved
|
||
networks: | ||
xline_network: | ||
driver: bridge | ||
ipam: | ||
config: | ||
- subnet: "172.22.0.0/16" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please keep this subnet unify with the subnet in |
Original file line number | Diff line number | Diff line change |
---|---|---|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
ikNtYltbUHtamOXZzpdk/KA7X2dYi0QpVfbbpfP/ly5lYvgZwl8h90Obopru+ACM | ||
ndlKBfNQYArmWY6bJ2CwF7j1aTCCHZuVuX6/pzFVStRcssn15uoVaIyKd/MhJzLF | ||
S3ertQkSwwKBgAniMYRhWsjeaghQ/RWXzzyYL3N5oNn92h5MWvB4mjDIFbnW2hC8 | ||
1m/cDmPlIVijZyklAuGuhcFaMfBhxgLf+s/dQv+0xSuDGs8rP7yHpeZYY6NGtelQ | ||
d9oEu8dCKXybo3kMbq6wyB7xWyRLvdkuZ+WmXVumgb/uL0K0nIfzMscrAoGAeA1e | ||
K845YSslBQaSbk7/e/X1iguyDWT2eRO01zvTYgPNwZipl2CPHjkPM2km0fy5oaps | ||
N/94IUd7+EsSmsAKL5LytGbtRFyR+c376rw8+OIFz/iy4BsQCRqJQjWa1lHZf96x | ||
PIg2hW2xhD9OTv3IS94sdeG4NmUdipMQryhEqoECgYEAkvXOg66IAVTrO6qgoyl5 | ||
42oufa/QE+qOAYoQEpmx3SZx6tMkycfAQqUHYcXhW1HNjyGbbg/sl13yddnPQqig | ||
+ObtQNSIqGZWCc/HIqM//pPI3MHPhWARMOmAbk0I1mT0QKhuFfSugV2xb1Dj/Rvf | ||
0VdB8txY+5Wz6zP1F2g46gM= | ||
-----END PRIVATE KEY----- |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
-----BEGIN PUBLIC KEY----- | ||
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApwMcUlyWFmQiq+n+o9B0 | ||
VMJIV/9Phl4xHJVqCwOfimQLljErvG8+l/iEnL+LzcDkZRkljp68/vJm9iNBerXl | ||
WVn1harJ8lpOyMTPofck4O2mP/OvOWH1ky+36Vqtf9xZ4s+EG7GBbswdVYGmeXw9 | ||
gkmCCs0g/qlUpVxduSQxR1e29jnR619FCmTk1mP1RP/0k7fjySnV/Ud6ZZBsAMyS | ||
JJHAGctL4b6k9wEk4F3ITXjfMBmGG92Iq5KiLEAeV3LNUdVvss/iK1Wuv9FjHMhO | ||
qrST2dJb4sk9Jx1f6WY17g+AdGo2v9X5Px5lwzzI6StQbggU0rTPypXKwKAMaPmA | ||
4QIDAQAB | ||
-----END PUBLIC KEY----- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The version is obsolete, please remove this line. FYI: mailcow/mailcow-dockerized#5797