mq-container icon indicating copy to clipboard operation
mq-container copied to clipboard

Using LTS means the filename in MQ_ARCHIVE variable gets overwritten

Open bhasterix opened this issue 4 years ago • 0 comments

The MQ_ARCHIVE variable gets overwritten with some constructed value if LTS is true as I run make-build-advancedserver.

At this point: https://github.com/ibm-messaging/mq-container/blob/master/Makefile#L34 my variable is set correctly as what I pass in ("IBM_MQ_9.2.0.4_LIN_X86-64_NOINST.tar.gz") as downloaded from Extreme Leverage. Within this block, and on this line: https://github.com/ibm-messaging/mq-container/blob/master/Makefile#L124, the variable is overwritten and calculated as "9.2.0.4-IBM-MQ-Advanced-Non-Install-LinuxX86-64.tar.gz". The build then subsequently fails as it can't download that file in the install-mq.sh (https://github.com/ibm-messaging/mq-container/blob/master/install-mq.sh#L31).

I've had to manually rename the file to suit the script, this should be documented or fixed so that it respects the filename passed as an environment variable.

Steps to reproduce: update config.env REGISTRY_USER=<REGISTRY USER> REGISTRY_PASS=<REGISTRY_PASS> MQ_ARCHIVE=IBM_MQ_9.2.0.4_LIN_X86-64_NOINST.tar.gz MQ_VERSION=9.2.0.4 LTS=true

Then execute in the workspace: make build-advancedserver

(I've confirmed the config will override any environment variables passed on the "make..." line.)

bhasterix avatar Dec 01 '21 16:12 bhasterix