Skip to content

Commit

Permalink
Fix action
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiee committed Jan 10, 2022
1 parent 1d77ce5 commit 3d7723d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nebula-docker-compose/docker-compose-ssl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -418,13 +418,17 @@ services:
- -c
- |
for i in `seq 1 60`;do
var=`nebula-console -addr graphd -port 3699 -u root -p nebula -enable_ssl=true -ssl_root_ca_path ./secrets/test.ca.pem -ssl_cert_path ./secrets/test.client.crt -ssl_private_key_path ./secrets/test.client.key --ssl_insecure_skip_verify=true -e 'ADD HOSTS "storaged0":44500,"storaged1":44500,"storaged2":44500'`;
echo "Adding hosts..."
var=`nebula-console -addr graphd -port 3699 -u root -p nebula -enable_ssl=true -ssl_root_ca_path /secrets/test.ca.pem -ssl_cert_path /secrets/test.client.crt -ssl_private_key_path /secrets/test.client.key --ssl_insecure_skip_verify=true -e 'ADD HOSTS "storaged0":44500,"storaged1":44500,"storaged2":44500'`;
if [[ $$? == 0 ]];then
echo "Hosts added successfully"
break;
fi;
sleep 1;
echo "retry to add hosts.";
done && tail -f /dev/null;
volumes:
- ./secrets:/secrets
depends_on:
- graphd
networks:
Expand Down

0 comments on commit 3d7723d

Please sign in to comment.