Skip to content

Commit 77baafd

Browse files
wphillipmoorewphillipmoore-claude
andcommitted
chore(ports): add explicit port exports to MQ lifecycle scripts
Export QM1_REST_PORT, QM2_REST_PORT, QM1_MQ_PORT, QM2_MQ_PORT in all five mq_*.sh scripts. Python keeps the base ports (9443/9444, 1414/1415). Ref mq-rest-admin-project/mq-rest-admin-common#121. Co-Authored-By: wphillipmoore-claude <255925739+wphillipmoore-claude@users.noreply.github.com>
1 parent 0d7a84a commit 77baafd

6 files changed

Lines changed: 26 additions & 0 deletions

File tree

CLAUDE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,12 @@ Container details:
237237
- QM2 REST base URL: `https://localhost:9444/ibmmq/rest/v2`
238238
- Object prefix: `DEV.*`
239239

240+
Port assignments are explicit in each `scripts/dev/mq_*.sh` script via
241+
`QM1_REST_PORT`, `QM2_REST_PORT`, `QM1_MQ_PORT`, and `QM2_MQ_PORT` exports.
242+
Python uses the base ports (9443/9444, 1414/1415). See the
243+
[port allocation table](https://github.com/wphillipmoore/mq-rest-admin-common)
244+
in mq-rest-admin-common for the full cross-language map.
245+
240246
## Architecture
241247

242248
### Core Components

scripts/dev/mq_reset.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ if [ ! -d "$mq_dev_env" ]; then
1111
fi
1212

1313
export COMPOSE_PROJECT_NAME=mqrest-python
14+
export QM1_REST_PORT=9443
15+
export QM2_REST_PORT=9444
16+
export QM1_MQ_PORT=1414
17+
export QM2_MQ_PORT=1415
1418

1519
cd "$mq_dev_env"
1620
exec scripts/mq_reset.sh

scripts/dev/mq_seed.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ if [ ! -d "$mq_dev_env" ]; then
1111
fi
1212

1313
export COMPOSE_PROJECT_NAME=mqrest-python
14+
export QM1_REST_PORT=9443
15+
export QM2_REST_PORT=9444
16+
export QM1_MQ_PORT=1414
17+
export QM2_MQ_PORT=1415
1418

1519
cd "$mq_dev_env"
1620
exec scripts/mq_seed.sh

scripts/dev/mq_start.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ if [ ! -d "$mq_dev_env" ]; then
1111
fi
1212

1313
export COMPOSE_PROJECT_NAME=mqrest-python
14+
export QM1_REST_PORT=9443
15+
export QM2_REST_PORT=9444
16+
export QM1_MQ_PORT=1414
17+
export QM2_MQ_PORT=1415
1418

1519
cd "$mq_dev_env"
1620
exec scripts/mq_start.sh

scripts/dev/mq_stop.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ if [ ! -d "$mq_dev_env" ]; then
1111
fi
1212

1313
export COMPOSE_PROJECT_NAME=mqrest-python
14+
export QM1_REST_PORT=9443
15+
export QM2_REST_PORT=9444
16+
export QM1_MQ_PORT=1414
17+
export QM2_MQ_PORT=1415
1418

1519
cd "$mq_dev_env"
1620
exec scripts/mq_stop.sh

scripts/dev/mq_verify.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ if [ ! -d "$mq_dev_env" ]; then
1111
fi
1212

1313
export COMPOSE_PROJECT_NAME=mqrest-python
14+
export QM1_REST_PORT=9443
15+
export QM2_REST_PORT=9444
16+
export QM1_MQ_PORT=1414
17+
export QM2_MQ_PORT=1415
1418

1519
cd "$mq_dev_env"
1620
exec scripts/mq_verify.sh

0 commit comments

Comments
 (0)