-
Notifications
You must be signed in to change notification settings - Fork 38
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 the Docker file for integration testing #331
Refactor the Docker file for integration testing #331
Conversation
tests/integration/helpers/network.py
Outdated
@@ -197,6 +197,8 @@ def __init__( | |||
self._docker_client = docker.from_env(version=os.environ.get("DOCKER_API_VERSION")) | |||
|
|||
self._container = None | |||
|
|||
self.image = "raftkeeper/raftkeeper-integration-helper" |
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.
use a more intuitive name, such as network_partition_image
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.
Ok, i rename it from raftkeeper-integration-helper
to raftkeeper-network-partition
@@ -1,19 +1,26 @@ | |||
#!/bin/bash | |||
set -e | |||
|
|||
dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 &>/var/log/somefile & | |||
setsid dockerd --host=unix:///var/run/docker.sock --tls=false --host=tcp://0.0.0.0:2375 --default-address-pool base=172.17.0.0/12,size=24 &>/var/log/somefile & |
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.
Why we need set network to 172.17.0.0/12,size=24
?
Which issues of this PR fixes:
This PR try to fix #330
Change log: