Lifecycle Scripts¶
All lifecycle scripts are located in the scripts/ directory. They
manage the Docker container lifecycle for the MQ development
environment.
Script reference¶
mq_start.sh¶
Starts the QM1 and QM2 containers and waits for both REST APIs to become ready.
The script:
- Runs
docker compose up -dusingconfig/docker-compose.yml - Waits for container health checks to pass
- Polls the REST API endpoints until they respond
mq_seed.sh¶
Runs the MQSC seed scripts against both queue managers to create all development objects.
The script:
- Copies
seed/base-qm1.mqscinto the QM1 container - Runs
runmqsc QM1with the seed file - Copies
seed/base-qm2.mqscinto the QM2 container - Runs
runmqsc QM2with the seed file
mq_verify.sh¶
Verifies that all expected seed objects exist by querying the REST API on both queue managers.
The script checks each object type (queues, channels, topics, etc.) and reports success or failure for each.
mq_reset.sh¶
Stops containers, removes Docker volumes, and restarts the environment cleanly.
The script runs docker compose down -v to remove all container
data, then calls mq_start.sh and mq_seed.sh to rebuild the
environment from scratch.
Warning
This removes all queue manager state including any messages
in queues. Use mq_stop.sh if you want to preserve state.
mq_stop.sh¶
Stops and removes the containers but preserves the named Docker volumes.
Queue manager state is retained in the qm1data and qm2data
volumes and will be available on the next mq_start.sh.