Skip to content

Commit

Permalink
use docker-run to configure network
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasyang2022 committed Oct 10, 2024
1 parent e499bcd commit 5209970
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/run-functional-tests
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,7 @@ deploy_ha_node() {
make_cmd="cd $PROJECT_INSIDE;./autogen.sh && ./configure --prefix /usr && make install && make install-crmconfDATA prefix= && cp /usr/bin/crm /usr/sbin"

info "Deploying \"$node_name\"..."
docker run --restart always $docker_options $DOCKER_IMAGE &> /dev/null
for network in ${HA_NETWORK_ARRAY[@]};do
docker network connect --alias $node_name $network $node_name
done
docker run --network=${HA_NETWORK_FIRST} --network=${HA_NETWORK_SECOND} $docker_options $DOCKER_IMAGE &> /dev/null

if [ "$node_name" != "qnetd-node" ];then
rm_qnetd_cmd="rpm -q corosync-qnetd && rpm -e corosync-qnetd"
Expand Down

0 comments on commit 5209970

Please sign in to comment.