Skip to content

Commit e52879b

Browse files
committed
Makefile: Import cluster-other-node target locally
This target, initially in rabbitmq-common/mk/rabbitmq-run.mk, is only used by this project. [#127356157]
1 parent 7715f41 commit e52879b

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,12 @@ clean:
3737

3838
distclean: clean
3939
$(MAKE) -C $(DEPS_DIR)/rabbitmq_codegen clean
40+
41+
.PHONY: cluster-other-node
42+
43+
cluster-other-node:
44+
$(exec_verbose) $(RABBITMQCTL) -n $(OTHER_NODE) stop_app
45+
$(verbose) $(RABBITMQCTL) -n $(OTHER_NODE) reset
46+
$(verbose) $(RABBITMQCTL) -n $(OTHER_NODE) join_cluster \
47+
$(if $(MAIN_NODE),$(MAIN_NODE),$(RABBITMQ_NODENAME)@$$(hostname -s))
48+
$(verbose) $(RABBITMQCTL) -n $(OTHER_NODE) start_app

src/main/scripts/manage_test_broker.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ case ~/^create-test-cluster$/:
3333

3434
command = [
3535
properties['make.bin'],
36-
'-C', properties['rabbitmq.dir'],
3736
'--no-print-directory',
3837
'cluster-other-node',
38+
"RABBITMQCTL=${properties['rabbitmqctl.bin']}",
3939
"DEPS_DIR=${properties['deps.dir']}",
4040
"OTHER_NODE=${nodename}",
4141
"MAIN_NODE=${target}"

0 commit comments

Comments
 (0)