From 7ee17c366bb4245d60bbcc1b1c60a0764863641d Mon Sep 17 00:00:00 2001 From: Marcial Rosales Date: Mon, 10 Jun 2024 09:16:58 +0200 Subject: [PATCH] Add instructios to build docker image --- .github/workflows/ibm-mq-make.yaml | 32 +++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ibm-mq-make.yaml b/.github/workflows/ibm-mq-make.yaml index 9395e6f6a71c..51e648af211c 100644 --- a/.github/workflows/ibm-mq-make.yaml +++ b/.github/workflows/ibm-mq-make.yaml @@ -4,9 +4,12 @@ on: push: branches: - 'main' + - ibm-mq-docker-workflow env: REGISTRY_IMAGE: pivotalrabbitmq/ibm-mqadvanced-server-dev - + IBM_MQ_REPOSITORY: ibm-messaging/mq-container + IBM_MQ_BRANCH_NAME: 9.3.5 + IMAGE_TAG: pivotalrabbitmq/ibm-mqadvanced-server-dev:9.3.5.1-amd64 jobs: docker: runs-on: ubuntu-latest @@ -28,14 +31,25 @@ jobs: - name: Checkout ibm-mqadvanced-server-dev uses: actions/checkout@v4 with: - repository: ibm-messaging/mq-container - ref: 9.3.5 + repository: ${{ env.IBM_MQ_REPOSITORY }} + ref: ${{ env.IBM_MQ_BRANCH_NAME }} - - name: Prepare ibm-mqadvanced-server-dev - uses: actions/download-artifact@v4 - with: - name: package-generic-unix - path: PACKAGES + - name: Prepare image + run: | + ls + echo "Enabling AMQP capability" + sed -i -e 's/genmqpkg_incamqp=0/genmqpkg_incamqp=1/g' Dockerfile-server + echo "AMQP Bootstrap instructions" + cat << EOF >> incubating/mqadvanced-server-dev/10-dev.mqsc.tpl + SET AUTHREC PRINCIPAL('app') OBJTYPE(QMGR) AUTHADD(CONNECT,INQ,ALTUSR) + SET CHLAUTH('SYSTEM.DEF.AMQP') TYPE(ADDRESSMAP) ADDRESS('*') USERSRC(CHANNEL) CHCKCLNT({{ .ChckClnt }}) DESCR('Allows connection via APP channel') ACTION(REPLACE) + SET AUTHREC PROFILE('SYSTEM.BASE.TOPIC') PRINCIPAL('app') OBJTYPE(TOPIC) AUTHADD(PUB,SUB) + SET AUTHREC PROFILE('SYSTEM.DEFAULT.MODEL.QUEUE') PRINCIPAL('app') OBJTYPE(QUEUE) AUTHADD(PUT,DSP) + ALTER CHANNEL(SYSTEM.DEF.AMQP) CHLTYPE(AMQP) MCAUSER('app') + START SERVICE(SYSTEM.AMQP.SERVICE) + START CHANNEL(SYSTEM.DEF.AMQP) + EOF + make build-devserver - name: Login to Docker Hub uses: docker/login-action@v3 @@ -47,4 +61,4 @@ jobs: uses: docker/build-push-action@v5 with: push: true - tags: user/app:latest \ No newline at end of file + tags: ${{ env.IMAGE_TAG }} \ No newline at end of file