ibm-messaging / mq-container

Container images for IBM® MQ
Apache License 2.0
255 stars 189 forks source link

Failed to build 9.4.0.5 on Mac #577

Open gkwan-ibm opened 2 months ago

gkwan-ibm commented 2 months ago

We followed this instruction to build a docker image for Mac ARM-based. We had no problem when built the 9.4.0.0 . But recently, when we built 9.4.0.5, we got error:

Downloading IBM MQ Advanced for Developers 9.4.0.5
mkdir -p downloads
curl --fail --location https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/9.4.0.5-IBM-MQ-Advanced-for-Developers-Non-Install-LinuxARM64.tar.gz --output downloads/9.4.0.5-IBM-MQ-Advanced-for-Developers-Non-Install-LinuxARM64.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   196    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
make: *** [downloads/9.4.0.5-IBM-MQ-Advanced-for-Developers-Non-Install-LinuxARM64.tar.gz] Error 22
gkwan-ibm commented 2 months ago

Looks like DHE does not have 9.4.0.5-IBM-MQ-Advanced-for-Developers-Non-Install-LinuxARM64.tar.gz

vgavinash commented 2 months ago

@gkwan-ibm I am not sure if the LTS fix-pack developer editions are published or not. I will try to get it confirmed.

gkwan-ibm commented 2 months ago

for workaround, yep, we used 9.4.0.0

git clone https://github.com/ibm-messaging/mq-container.git -b 9.4.0.0-r3
momzilla commented 2 months ago

Hi @gkwan-ibm I tried git clone https://github.com/ibm-messaging/mq-container.git -b 9.4.0.0-r3

getting below. Any help please?

`=> CACHED [mq-server 2/12] COPY --from=mq-redux /opt/mqm-redux/ /opt/mqm/ 0.0s => CACHED [mq-server 3/12] COPY setup-image.sh /usr/local/bin/ 0.0s => CACHED [mq-server 4/12] COPY install-mq-server-prereqs.sh /usr/local/bin/ 0.0s => ERROR [mq-server 5/12] RUN env && chmod u+x /usr/local/bin/install-*.sh && chmod u+x /usr/local/bin/setup-image.sh && install-mq-server-prereqs.sh && setup-image.sh && /opt/mqm/bin/security/amqpamcf && c 0.7s

[mq-server 5/12] RUN env && chmod u+x /usr/local/bin/install-.sh && chmod u+x /usr/local/bin/setup-image.sh && install-mq-server-prereqs.sh && setup-image.sh && /opt/mqm/bin/security/amqpamcf && chown -R 1001:root /opt/mqm/: 0.110 GO_WORKDIR=/opt/app-root/src/go/src/github.com/ibm-messaging/mq-container 0.110 PWD=/ 0.110 container=oci 0.110 HOME=/root 0.110 BASE_TAG=9.4-1134 0.110 SHLVL=1 0.110 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 0.110 BASEIMAGE=registry.access.redhat.com/ubi9/ubi-minimal 0.110 =/usr/bin/env 0.114 + test -f /usr/bin/yum 0.114 + YUM=false 0.114 + test -f /usr/bin/microdnf 0.114 + MICRODNF=true 0.114 + test -f /usr/bin/rpm 0.114 + RPM=true 0.114 + test -f /usr/bin/apt-get 0.114 + UBUNTU=false 0.114 ++ uname -m 0.115 + CPU_ARCH=aarch64 0.115 + false 0.116 + true 0.116 + EXTRA_RPMS='bash bc ca-certificates file findutils gawk glibc-common grep ncurses-libs passwd procps-ng sed shadow-utils tar util-linux which' 0.116 + false 0.116 + true 0.116 + microdnf --disableplugin=subscription-manager -y install bash bc ca-certificates file findutils gawk glibc-common grep ncurses-libs passwd procps-ng sed shadow-utils tar util-linux which 0.164 Downloading metadata... 0.666 error: cannot update repo 'ubi-9-baseos-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried; Last error: Curl error (60): SSL peer certificate or SSH remote key was not OK for https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/aarch64/baseos/os/repodata/repomd.xml [SSL certificate problem: self-signed certificate in certificate chain]

2 warnings found (use docker --debug to expand):

gkwan-ibm commented 2 months ago

hi @momzilla

momzilla commented 2 months ago

Hi @gkwan-ibm yes, using Mac ARM-based, and using docker desktop.

gkwan-ibm commented 2 months ago

did you run make build-devserver COMMAND=docker or other command to build?

I have no problem.

gkwan-ibm commented 2 months ago

And, as your description, can you access https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/aarch64/baseos/os/repodata/repomd.xml?

momzilla commented 2 months ago

I have tried running both make build-devserver COMMAND=docker And make build-devserver

But got that same error. Also, I am able to access the file https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/aarch64/baseos/os/repodata/repomd.xml from browser or curl it from command line.

arvest-bjoneson commented 2 months ago

Curious if there's any update on the availability of the 9.4.0.5 ARM64 package? It looks like historically they've released them all at the same time.

vgavinash commented 1 month ago

@gkwan-ibm please note images only for the supported platforms for production, i.e., LinuxPPC64LE, LinuxS390X & LinuxX64 have been made available for v9.4.0.5 as of now. The decision is yet to be made about ARM. Until then ARM images would be available for CD only. Or you can continue using the 9.4.0.0 LTS.

Cc: @arthurbarr

gkwan-ibm commented 1 month ago

Does it mean the "building mq container for Mac development is not supported anymore"?

arthurbarr commented 1 month ago

No, it just means that the arm64 build in the 9.4.0.x code stream is not being produced, as that code stream gets special treatment due to it being part of a longer support cycle. When the next CD release of MQ is produced, it will include the arm64 build for MQ Advanced for Developers as usual.

arvest-bjoneson commented 1 month ago

It's just a little bit annoying, because it looks like historically on the distribution site, they have included arm images for each fix version. We recently built a CI/CD pipeline which builds for arm and amd arches for each new fix version. We can add some logic to optionally exclude the arm build on fix versions, but was nice that it was consistently there previously.

On Tue, Oct 1, 2024, 10:46 AM Arthur Barr @.***> wrote:

Information Security REMINDER: This is an EXTERNAL EMAIL. Stop and think before RESPONDING or CLICKING a link or OPENING attachments.

No, it just means that the arm64 build in the 9.4.0.x code stream is not being produced, as that code stream gets special treatment due to it being part of a longer support cycle. When the next CD release of MQ is produced, it will include the arm64 build for MQ Advanced for Developers as usual.

— Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/ibm-messaging/mq-container/issues/577*issuecomment-2386371465__;Iw!!CyJt3Yc!_9LAB1_EWzNAtUf4s8QWrZ0763dhtQCEFUapebKuwS4B5dstod71C47kS13K5vd6rGFlygBQYbdoTJNjy_B_T3s$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/BLL674WUFCHDVAVSKZNWRH3ZZK7WBAVCNFSM6AAAAABN6YT36WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBWGM3TCNBWGU__;!!CyJt3Yc!_9LAB1_EWzNAtUf4s8QWrZ0763dhtQCEFUapebKuwS4B5dstod71C47kS13K5vd6rGFlygBQYbdoTJNj3skc0zQ$ . You are receiving this because you commented.Message ID: @.***>

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential or privileged material. Any review, distribution, or other unauthorized use of the information by persons or entities other than the intended recipient is prohibited. If you received this communication in error, please contact the sender and delete the material from any computer.

Arvest Confidential