Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ibmmq e2e image #166

Merged
merged 1 commit into from
May 12, 2024
Merged

Add ibmmq e2e image #166

merged 1 commit into from
May 12, 2024

Conversation

ayoyu
Copy link
Contributor

@ayoyu ayoyu commented May 12, 2024

This is the e2e image in preparation for the ibm-mq scaler e2e test kedacore/keda#1287

The image will help to create the producer/consumer resources inside the k8s cluster.

Demo

After building the docker image:

  • producer:
$ docker run --network=host \
    --env APP_USERNAME="app" \
    --env APP_PASSWORD="my-app-password" \
    --env QUEUE_MANAGER="ibmmqnonativeha" \
    --env QUEUE_NAME="DEV.QUEUE.2" \
    --env HOST="192.168.49.2" \
    --env PORT="31335" \
    --env NUM_MESSAGES="10" \
    --env CHANNEL="DEV.APP.SVRCONN" \
    --env PRODUCER_SLEEP_TIME="1" \
    ibm-mq-cli /app producer
2024/05/12 12:39:18 setting up connection to MQ
2024/05/12 12:39:18 username 'app' has been specified
2024/05/12 12:39:18 connecting to 192.168.49.2(31335)
2024/05/12 12:39:18 attempting connection to queue manager(QMGR): ibmmqnonativeha
2024/05/12 12:39:18 message: {"content":"Msg created at 2024-05-12T12:39:18Z","number":1} sent to DEV.QUEUE.2
2024/05/12 12:39:19 message: {"content":"Msg created at 2024-05-12T12:39:19Z","number":2} sent to DEV.QUEUE.2
2024/05/12 12:39:20 message: {"content":"Msg created at 2024-05-12T12:39:20Z","number":3} sent to DEV.QUEUE.2
2024/05/12 12:39:21 message: {"content":"Msg created at 2024-05-12T12:39:21Z","number":4} sent to DEV.QUEUE.2
2024/05/12 12:39:22 message: {"content":"Msg created at 2024-05-12T12:39:22Z","number":5} sent to DEV.QUEUE.2
2024/05/12 12:39:23 message: {"content":"Msg created at 2024-05-12T12:39:23Z","number":6} sent to DEV.QUEUE.2
2024/05/12 12:39:24 message: {"content":"Msg created at 2024-05-12T12:39:24Z","number":7} sent to DEV.QUEUE.2
2024/05/12 12:39:25 message: {"content":"Msg created at 2024-05-12T12:39:25Z","number":8} sent to DEV.QUEUE.2
2024/05/12 12:39:26 message: {"content":"Msg created at 2024-05-12T12:39:26Z","number":9} sent to DEV.QUEUE.2
2024/05/12 12:39:27 message: {"content":"Msg created at 2024-05-12T12:39:27Z","number":10} sent to DEV.QUEUE.2
  • consumer:
$ docker run --network=host \
    --env APP_USERNAME="app" \
    --env APP_PASSWORD="my-app-password" \
    --env QUEUE_MANAGER="ibmmqnonativeha" \
    --env HOST="192.168.49.2" \
    --env PORT="31335" \
    --env QUEUE_NAME="DEV.QUEUE.2" \
    --env CHANNEL="DEV.APP.SVRCONN" \
    ibm-mq-cli /app consumer
2024/05/12 12:39:31 setting up connection to MQ
2024/05/12 12:39:31 username 'app' has been specified
2024/05/12 12:39:31 connecting to 192.168.49.2(31335)
2024/05/12 12:39:31 attempting connection to queue manager(QMGR): ibmmqnonativeha
2024/05/12 12:39:31 received message from DEV.QUEUE.2 with content: Msg created at 2024-05-12T12:39:18Z, number: 1
2024/05/12 12:39:32 received message from DEV.QUEUE.2 with content: Msg created at 2024-05-12T12:39:19Z, number: 2
2024/05/12 12:39:33 received message from DEV.QUEUE.2 with content: Msg created at 2024-05-12T12:39:20Z, number: 3
2024/05/12 12:39:34 received message from DEV.QUEUE.2 with content: Msg created at 2024-05-12T12:39:21Z, number: 4
2024/05/12 12:39:35 received message from DEV.QUEUE.2 with content: Msg created at 2024-05-12T12:39:22Z, number: 5
2024/05/12 12:39:36 received message from DEV.QUEUE.2 with content: Msg created at 2024-05-12T12:39:23Z, number: 6
2024/05/12 12:39:37 received message from DEV.QUEUE.2 with content: Msg created at 2024-05-12T12:39:24Z, number: 7
2024/05/12 12:39:38 received message from DEV.QUEUE.2 with content: Msg created at 2024-05-12T12:39:25Z, number: 8
2024/05/12 12:39:39 received message from DEV.QUEUE.2 with content: Msg created at 2024-05-12T12:39:26Z, number: 9
2024/05/12 12:39:40 received message from DEV.QUEUE.2 with content: Msg created at 2024-05-12T12:39:27Z, number: 10

Checklist

  • Commits are signed with Developer Certificate of Origin (DCO)

@JorTurFer JorTurFer merged commit 452d701 into kedacore:main May 12, 2024
8 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants