-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Do like redis * Add workflow to test jepsen tests... * Remove jepson tests on pull/push * Let's check a scenario with time-limit 7200 * Change gen/time-limit * Okay... Let's set it to 3600s * Take up timeouts!.. * Let's check it with 60000 read timeout * Rename errors * Add keys to the mysql hosts * Fix ssh connection * fix timeout * Remove on_push and on_pull_request triggers
- Loading branch information
1 parent
4a012aa
commit 193ef65
Showing
4 changed files
with
21 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
for i in mysql1 mysql2 mysql3; do | ||
docker exec mysync_${i}_1 rm /root/.ssh/id_rsa | ||
docker exec mysync_${i}_1 ssh-keygen -m PEM -t rsa -b 2048 -N '' -C root@mysync_${i}_1 -f /root/.ssh/id_rsa | ||
done | ||
|
||
for i in mysql1 mysql2 mysql3; do | ||
docker cp mysync_${i}_1:/root/.ssh/id_rsa.pub id_rsa.pub | ||
for j in mysql1 mysql2 mysql3; do | ||
docker exec mysync_${j}_1 /bin/bash -c "echo '$(cat id_rsa.pub)' >>/root/.ssh/authorized_keys" | ||
done | ||
done | ||
|
||
rm id_rsa.pub |
This file contains 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
This file contains 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