Open galderz opened 4 months ago
/cc @gastaldi (m1), @geoand (jib,openshift), @iocanel (openshift)
It seems Jib locates the manifest for both amd64 and arm64, but then you see this:
[DEBUG] [io.quarkus.container.image.jib.deployment.JibProcessor] (pool-5-thread-1) Searching for architecture=amd64, os=linux in the base image manifest list
Have you tried using quarkus.jib.platforms
?
Have you tried using
quarkus.jib.platforms
?
No, had to not tried. I assumed the Jib integration would be clever enough to figure out the architecture. I see If not specified, OS default is linux and architecture default is amd64
in the docs.
I wonder if it makes sense to choose our own default instead of letting Jib choose...
If we do, be sure to use io.smallrye.common.cpu.CPU#host()
to detect the CPU.
Is there also something for detecting the OS?
I see io.smallrye.common.os.OS
:)
Describe the bug
I've tried to use
quarkus-container-image-jib
to generate a container on an apple M1 machine and it generated an image for the wrong architecture. The image failed to start which includes this warning:TRACE logs of what Jib is doing:
Redirecting...
[\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-2 << "You should be redirected automatically to the target URL: https://cdn03.quay.io/quayio-production-s3/sha256/01/0163a6ffb082fefde753d14d6167ff13f537fdd249fea8b974071b5971f1766e?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAI5LUAQGPZRPNKSJA%2F20240711%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240711T053455Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Signature=5024207e9ae50f021cd10094fc12f8673e35362e4ded78ea319d2e4ac388783d&cf_sign=u4ad0%2BgK9XG%2B0jMdgKQpv%2FyGWf3%2BXTVaoAyUgVmNJGcYFVCXRcjfY%2B7Fy9R7wzGalQRNF887DJlyan4Qe2TKJrKqeVZajtaNQ9i4UOTq7V1uajVsSdgGCNvNbQpOwf7cMblcwvXhdzLOnwXSNBOqTIxfl5cIFSh71Z74fxuipxe9IQgZmxubWxnmfatcQn%2FT%2F65UdU7k11A4wE6bbDjj%2BWTmkzyWhrQxWxYeA3W0OQfbBVUVdfDv5Uh2adWeel6hvOmzPmFrCfEeH4Lfdu4Ua%2B58l4cabodwktShhcfKCcZ0Zwrzqs%2Fb%2FTAip1aRid1%2FFtpicG7BTdhtshp0szae1w%3D%3D&cf_expiry=1720676695®ion=us-east-1&namespace=quarkus&repo_name=quarkus-micro-image. If not, click the link.[\n]" [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-2 << HTTP/1.1 302 FOUND [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-2 << Date: Thu, 11 Jul 2024 05:34:55 GMT [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-2 << Content-Type: text/html; charset=utf-8 [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-2 << Content-Length: 1967 [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-2 << Connection: keep-alive [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-2 << Server: nginx/1.22.1 [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-2 << Location: https://cdn03.quay.io/quayio-production-s3/sha256/01/0163a6ffb082fefde753d14d6167ff13f537fdd249fea8b974071b5971f1766e?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAI5LUAQGPZRPNKSJA%2F20240711%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240711T053455Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Signature=5024207e9ae50f021cd10094fc12f8673e35362e4ded78ea319d2e4ac388783d&cf_sign=u4ad0%2BgK9XG%2B0jMdgKQpv%2FyGWf3%2BXTVaoAyUgVmNJGcYFVCXRcjfY%2B7Fy9R7wzGalQRNF887DJlyan4Qe2TKJrKqeVZajtaNQ9i4UOTq7V1uajVsSdgGCNvNbQpOwf7cMblcwvXhdzLOnwXSNBOqTIxfl5cIFSh71Z74fxuipxe9IQgZmxubWxnmfatcQn%2FT%2F65UdU7k11A4wE6bbDjj%2BWTmkzyWhrQxWxYeA3W0OQfbBVUVdfDv5Uh2adWeel6hvOmzPmFrCfEeH4Lfdu4Ua%2B58l4cabodwktShhcfKCcZ0Zwrzqs%2Fb%2FTAip1aRid1%2FFtpicG7BTdhtshp0szae1w%3D%3D&cf_expiry=1720676695®ion=us-east-1&namespace=quarkus&repo_name=quarkus-micro-image [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-2 << Docker-Content-Digest: sha256:0163a6ffb082fefde753d14d6167ff13f537fdd249fea8b974071b5971f1766e [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-2 << Cache-Control: max-age=31536000 [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-2 << Vary: Cookie [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-2 << X-Frame-Options: DENY [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-2 << Strict-Transport-Security: max-age=63072000; preload [DEBUG] [org.apache.http.impl.execchain.MainClientExec] (pool-5-thread-1) Connection can be kept alive indefinitely [DEBUG] [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] (pool-5-thread-1) Connection [id: 2][route: {s}->https://quay.io:443] can be kept alive indefinitely [DEBUG] [org.apache.http.impl.conn.DefaultManagedHttpClientConnection] (pool-5-thread-1) http-outgoing-2: set socket timeout to 0 [DEBUG] [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] (pool-5-thread-1) Connection released: [id: 2][route: {s}->https://quay.io:443][total available: 1; route allocated: 1 of 20; total allocated: 1 of 200] [DEBUG] [org.apache.http.client.protocol.RequestAddCookies] (pool-5-thread-1) CookieSpec selected: default [DEBUG] [org.apache.http.client.protocol.RequestAuthCache] (pool-5-thread-1) Auth cache not set in the context [DEBUG] [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] (pool-5-thread-1) Connection request: [route: {s}->https://cdn03.quay.io:443][total available: 1; route allocated: 0 of 20; total allocated: 1 of 200] [DEBUG] [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] (pool-5-thread-1) Connection leased: [id: 3][route: {s}->https://cdn03.quay.io:443][total available: 1; route allocated: 1 of 20; total allocated: 2 of 200] [DEBUG] [org.apache.http.impl.execchain.MainClientExec] (pool-5-thread-1) Opening connection {s}->https://cdn03.quay.io:443 [DEBUG] [org.apache.http.impl.conn.DefaultHttpClientConnectionOperator] (pool-5-thread-1) Connecting to cdn03.quay.io/104.18.37.147:443 [DEBUG] [org.apache.http.conn.ssl.SSLConnectionSocketFactory] (pool-5-thread-1) Connecting socket to cdn03.quay.io/104.18.37.147:443 with timeout 20000 [DEBUG] [org.apache.http.conn.ssl.SSLConnectionSocketFactory] (pool-5-thread-1) Enabled protocols: [TLSv1.3, TLSv1.2] [DEBUG] [org.apache.http.conn.ssl.SSLConnectionSocketFactory] (pool-5-thread-1) Enabled cipher suites:[TLS_AES_256_GCM_SHA384, TLS_AES_128_GCM_SHA256, TLS_CHACHA20_POLY1305_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_RSA_WITH_AES_256_GCM_SHA384, TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256, TLS_DHE_DSS_WITH_AES_256_GCM_SHA384, TLS_DHE_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_DSS_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, TLS_DHE_RSA_WITH_AES_256_CBC_SHA256, TLS_DHE_DSS_WITH_AES_256_CBC_SHA256, TLS_DHE_RSA_WITH_AES_128_CBC_SHA256, TLS_DHE_DSS_WITH_AES_128_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_DSS_WITH_AES_256_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_GCM_SHA384, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_EMPTY_RENEGOTIATION_INFO_SCSV] [DEBUG] [org.apache.http.conn.ssl.SSLConnectionSocketFactory] (pool-5-thread-1) Starting handshake [DEBUG] [org.apache.http.conn.ssl.SSLConnectionSocketFactory] (pool-5-thread-1) Secure session established [DEBUG] [org.apache.http.conn.ssl.SSLConnectionSocketFactory] (pool-5-thread-1) negotiated protocol: TLSv1.3 [DEBUG] [org.apache.http.conn.ssl.SSLConnectionSocketFactory] (pool-5-thread-1) negotiated cipher suite: TLS_AES_256_GCM_SHA384 [DEBUG] [org.apache.http.conn.ssl.SSLConnectionSocketFactory] (pool-5-thread-1) peer principal: CN=cdn03.quay.io, O="Cloudflare, Inc.", L=San Francisco, ST=California, C=US [DEBUG] [org.apache.http.conn.ssl.SSLConnectionSocketFactory] (pool-5-thread-1) peer alternative names: [cdn03.quay.io] [DEBUG] [org.apache.http.conn.ssl.SSLConnectionSocketFactory] (pool-5-thread-1) issuer principal: CN=Cloudflare Inc ECC CA-3, O="Cloudflare, Inc.", C=US [DEBUG] [org.apache.http.impl.conn.DefaultHttpClientConnectionOperator] (pool-5-thread-1) Connection established 10.102.254.10:55266<->104.18.37.147:443 [DEBUG] [org.apache.http.impl.conn.DefaultManagedHttpClientConnection] (pool-5-thread-1) http-outgoing-3: set socket timeout to 20000 [DEBUG] [org.apache.http.impl.execchain.MainClientExec] (pool-5-thread-1) Executing request GET /quayio-production-s3/sha256/01/0163a6ffb082fefde753d14d6167ff13f537fdd249fea8b974071b5971f1766e?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAI5LUAQGPZRPNKSJA%2F20240711%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240711T053455Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Signature=5024207e9ae50f021cd10094fc12f8673e35362e4ded78ea319d2e4ac388783d&cf_sign=u4ad0%2BgK9XG%2B0jMdgKQpv%2FyGWf3%2BXTVaoAyUgVmNJGcYFVCXRcjfY%2B7Fy9R7wzGalQRNF887DJlyan4Qe2TKJrKqeVZajtaNQ9i4UOTq7V1uajVsSdgGCNvNbQpOwf7cMblcwvXhdzLOnwXSNBOqTIxfl5cIFSh71Z74fxuipxe9IQgZmxubWxnmfatcQn%2FT%2F65UdU7k11A4wE6bbDjj%2BWTmkzyWhrQxWxYeA3W0OQfbBVUVdfDv5Uh2adWeel6hvOmzPmFrCfEeH4Lfdu4Ua%2B58l4cabodwktShhcfKCcZ0Zwrzqs%2Fb%2FTAip1aRid1%2FFtpicG7BTdhtshp0szae1w%3D%3D&cf_expiry=1720676695®ion=us-east-1&namespace=quarkus&repo_name=quarkus-micro-image HTTP/1.1 [DEBUG] [org.apache.http.impl.execchain.MainClientExec] (pool-5-thread-1) Target auth state: UNCHALLENGED [DEBUG] [org.apache.http.impl.execchain.MainClientExec] (pool-5-thread-1) Proxy auth state: UNCHALLENGED [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 >> GET /quayio-production-s3/sha256/01/0163a6ffb082fefde753d14d6167ff13f537fdd249fea8b974071b5971f1766e?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAI5LUAQGPZRPNKSJA%2F20240711%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240711T053455Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Signature=5024207e9ae50f021cd10094fc12f8673e35362e4ded78ea319d2e4ac388783d&cf_sign=u4ad0%2BgK9XG%2B0jMdgKQpv%2FyGWf3%2BXTVaoAyUgVmNJGcYFVCXRcjfY%2B7Fy9R7wzGalQRNF887DJlyan4Qe2TKJrKqeVZajtaNQ9i4UOTq7V1uajVsSdgGCNvNbQpOwf7cMblcwvXhdzLOnwXSNBOqTIxfl5cIFSh71Z74fxuipxe9IQgZmxubWxnmfatcQn%2FT%2F65UdU7k11A4wE6bbDjj%2BWTmkzyWhrQxWxYeA3W0OQfbBVUVdfDv5Uh2adWeel6hvOmzPmFrCfEeH4Lfdu4Ua%2B58l4cabodwktShhcfKCcZ0Zwrzqs%2Fb%2FTAip1aRid1%2FFtpicG7BTdhtshp0szae1w%3D%3D&cf_expiry=1720676695®ion=us-east-1&namespace=quarkus&repo_name=quarkus-micro-image HTTP/1.1 [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 >> Accept: [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 >> Accept-Encoding: gzip [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 >> User-Agent: jib 3.12.1 Quarkus Google-HTTP-Java-Client/1.44.2 (gzip) [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 >> Host: cdn03.quay.io [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 >> Connection: Keep-Alive [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 >> "GET /quayio-production-s3/sha256/01/0163a6ffb082fefde753d14d6167ff13f537fdd249fea8b974071b5971f1766e?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAI5LUAQGPZRPNKSJA%2F20240711%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240711T053455Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Signature=5024207e9ae50f021cd10094fc12f8673e35362e4ded78ea319d2e4ac388783d&cf_sign=u4ad0%2BgK9XG%2B0jMdgKQpv%2FyGWf3%2BXTVaoAyUgVmNJGcYFVCXRcjfY%2B7Fy9R7wzGalQRNF887DJlyan4Qe2TKJrKqeVZajtaNQ9i4UOTq7V1uajVsSdgGCNvNbQpOwf7cMblcwvXhdzLOnwXSNBOqTIxfl5cIFSh71Z74fxuipxe9IQgZmxubWxnmfatcQn%2FT%2F65UdU7k11A4wE6bbDjj%2BWTmkzyWhrQxWxYeA3W0OQfbBVUVdfDv5Uh2adWeel6hvOmzPmFrCfEeH4Lfdu4Ua%2B58l4cabodwktShhcfKCcZ0Zwrzqs%2Fb%2FTAip1aRid1%2FFtpicG7BTdhtshp0szae1w%3D%3D&cf_expiry=1720676695®ion=us-east-1&namespace=quarkus&repo_name=quarkus-micro-image HTTP/1.1[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 >> "Accept: [\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 >> "Accept-Encoding: gzip[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 >> "User-Agent: jib 3.12.1 Quarkus Google-HTTP-Java-Client/1.44.2 (gzip)[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 >> "Host: cdn03.quay.io[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 >> "Connection: Keep-Alive[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 >> "[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "HTTP/1.1 200 OK[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "Date: Thu, 11 Jul 2024 05:34:55 GMT[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "Content-Type: application/octet-stream[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "Content-Length: 4710[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "Connection: keep-alive[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "CF-Ray: 8a166d5f2e546550-LHR[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "CF-Cache-Status: HIT[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "Accept-Ranges: bytes[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "Access-Control-Allow-Origin: *[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "Age: 1833[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "Cache-Control: max-age=1500[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "ETag: "ee618cd21a39724bb5db130d552c2f59"[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "Expires: Thu, 11 Jul 2024 09:34:55 GMT[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "Last-Modified: Sun, 07 Jul 2024 00:30:59 GMT[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "x-amz-id-2: 4/jyE7DWyL1X1VpXY9WacJED9FEkMCOcoAs1ZgVmPEdOV1L9jsmaExF1wnP9ymjkhy5dRKl83m0=[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "x-amz-replication-status: PENDING[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "x-amz-request-id: VSGG46C1X0JF3TZ6[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "x-amz-server-side-encryption: AES256[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "x-amz-version-id: T.y950BkQfsnc4_y9VaAgaOP01uSUcS0[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "Vary: Accept-Encoding[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "Server: cloudflare[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "[\r][\n]" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "{"architecture":"amd64","config":{"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"],"Cmd":["/bin/sh","-c","/bin/sh"],"Labels":{"architecture":"x86_64","build-date":"2024-06-27T16:23:19","com.redhat.component":"ubi8-micro-container","com.redhat.license_terms":"https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI","description":"Very small image which doesn't install the package manager.","distribution-scope":"public","io.buildah.version":"1.29.0","io.k8s.description":"Very small image which doesn't install the package manager.","io.k8s.display-na" [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 << HTTP/1.1 200 OK [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 << Date: Thu, 11 Jul 2024 05:34:55 GMT [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 << Content-Type: application/octet-stream [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 << Content-Length: 4710 [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 << Connection: keep-alive [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 << CF-Ray: 8a166d5f2e546550-LHR [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 << CF-Cache-Status: HIT [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 << Accept-Ranges: bytes [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 << Access-Control-Allow-Origin: * [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 << Age: 1833 [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 << Cache-Control: max-age=1500 [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 << ETag: "ee618cd21a39724bb5db130d552c2f59" [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 << Expires: Thu, 11 Jul 2024 09:34:55 GMT [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 << Last-Modified: Sun, 07 Jul 2024 00:30:59 GMT [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 << Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 << x-amz-id-2: 4/jyE7DWyL1X1VpXY9WacJED9FEkMCOcoAs1ZgVmPEdOV1L9jsmaExF1wnP9ymjkhy5dRKl83m0= [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 << x-amz-replication-status: PENDING [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 << x-amz-request-id: VSGG46C1X0JF3TZ6 [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 << x-amz-server-side-encryption: AES256 [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 << x-amz-version-id: T.y950BkQfsnc4_y9VaAgaOP01uSUcS0 [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 << Vary: Accept-Encoding [DEBUG] [org.apache.http.headers] (pool-5-thread-1) http-outgoing-3 << Server: cloudflare [DEBUG] [org.apache.http.impl.execchain.MainClientExec] (pool-5-thread-1) Connection can be kept alive indefinitely [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "me":"Ubi8-micro","io.openshift.expose-services":"","maintainer":"Red Hat, Inc.","name":"ubi8/ubi-micro","release":"9","summary":"ubi8 micro image","url":"https://access.redhat.com/containers/#/registry.access.redhat.com/ubi8/ubi-micro/images/8.10-9","vcs-ref":"1896f974ffe7c48cc1c6f8871ac9752646d8dc34","vcs-type":"git","vendor":"Red Hat, Inc.","version":"8.10"}},"created":"2024-07-07T00:30:49.214937549Z","history":[{"created":"2024-06-27T16:25:25.178602865Z","created_by":"/bin/sh -c #(nop) LABEL maintainer=\"Red Hat, Inc.\"","empty_layer":true},{"created":"2024-06-27T16:25:25.178674415Z","created_by":"/bin/sh -c #(nop) LABEL com.redhat.component=\"ubi8-micro-container\"","empty_layer":true},{"created":"2024-06-27T16:25:25.178688991Z","created_by":"/bin/sh -c #(nop) LABEL name=\"ubi8/ubi-micro\"","empty_layer":true},{"created":"2024-06-27T16:25:25.178707058Z","created_by":"/bin/sh -c #(nop) LABEL version=\"8.10\"","empty_layer":true},{"created":"2024-06-27T16:25:25.178735329Z","created_by":"/bin/sh -c #(nop) LABEL com.redhat.license_terms=\"https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI\"","empty_layer":true},{"created":"2024-06-27T16:25:25.178754201Z","created_by":"/bin/sh -c #(nop) LABEL summary=\"ubi8 micro image\"","empty_layer":true},{"created":"2024-06-27T16:25:25.178777474Z","created_by":"/bin/sh -c #(nop) LABEL descr" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "iption=\"Very small image which doesn't install the package manager.\"","empty_layer":true},{"created":"2024-06-27T16:25:25.178796859Z","created_by":"/bin/sh -c #(nop) LABEL io.k8s.display-name=\"Ubi8-micro\"","empty_layer":true},{"created":"2024-06-27T16:25:25.178813627Z","created_by":"/bin/sh -c #(nop) LABEL io.openshift.expose-services=\"\"","empty_layer":true},{"created":"2024-06-27T16:25:25.76682647Z","created_by":"/bin/sh -c #(nop) COPY dir:b05dcb3a6ed85c9d6797966303956922d485c9479c1368eee17e339908d87ed7 in / ","empty_layer":true},{"created":"2024-06-27T16:25:25.980992902Z","created_by":"/bin/sh -c #(nop) COPY file:8a1c814f171edd8bd75797f42a80d00fa3b97b7ccc394c89c8a8cc591966bdfe in /etc/yum.repos.d/ubi.repo ","empty_layer":true},{"created":"2024-06-27T16:25:25.981029112Z","created_by":"/bin/sh -c #(nop) CMD /bin/sh","empty_layer":true},{"created":"2024-06-27T16:25:25.981092789Z","created_by":"/bin/sh -c #(nop) LABEL release=9","empty_layer":true},{"created":"2024-06-27T16:25:26.187646765Z","created_by":"/bin/sh -c #(nop) ADD file:778584848f9dca3863b0957bdb8871fc7bc6ad118a3cacc1e07ad578c3769b6a in /root/buildinfo/content_manifests/ubi8-micro-container-8.10-9.json ","empty_layer":true},{"created":"2024-06-27T16:25:26.38200794Z","created_by":"/bin/sh -c #(nop) ADD file:27533afba123e01138b8266a4ed5f8230d104950514118948273a4f89e43d52f in /root/bu" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "ildinfo/Dockerfile-ubi8-ubi-micro-8.10-9 ","empty_layer":true},{"created":"2024-06-27T16:25:26.594217834Z","created_by":"/bin/sh -c #(nop) LABEL \"distribution-scope\"=\"public\" \"vendor\"=\"Red Hat, Inc.\" \"build-date\"=\"2024-06-27T16:23:19\" \"architecture\"=\"x86_64\" \"vcs-type\"=\"git\" \"vcs-ref\"=\"1896f974ffe7c48cc1c6f8871ac9752646d8dc34\" \"io.k8s.description\"=\"Very small image which doesn't install the package manager.\" \"url\"=\"https://access.redhat.com/containers/#/registry.access.redhat.com/ubi8/ubi-micro/images/8.10-9\""},{"created":"2024-07-07T00:30:49.190840342Z","created_by":"COPY /usr/lib64/libgcc_s.so.1 /usr/lib64/libgcc_s.so.1 # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2024-07-07T00:30:49.204992949Z","created_by":"COPY /usr/lib64/libstdc++.so.6 /usr/lib64/libstdc++.so.6 # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2024-07-07T00:30:49.214937549Z","created_by":"COPY /usr/lib64/libz.so.1 /usr/lib64/libz.so.1 # buildkit","comment":"buildkit.dockerfile.v0"}],"os":"linux","rootfs":{"type":"layers","diff_ids":["sha256:5d956355c7105d23c9b5f597bb28d08685e46aa00d677d813ca14fc3f02be1f9","sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef","sha256:53a23ac9bae49ddd070b4a9d103eec5c55ffb8b907388f7c40d1dd65ec5195c4","sha256:2e8974c6a6835e96475ca109b9b9f4e2729e7817d9b431062865fa59aa3ce" [DEBUG] [org.apache.http.wire] (pool-5-thread-1) http-outgoing-3 << "34c"]}}" [DEBUG] [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] (pool-5-thread-1) Connection [id: 3][route: {s}->https://cdn03.quay.io:443] can be kept alive indefinitely [DEBUG] [org.apache.http.impl.conn.DefaultManagedHttpClientConnection] (pool-5-thread-1) http-outgoing-3: set socket timeout to 0 [DEBUG] [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] (pool-5-thread-1) Connection released: [id: 3][route: {s}->https://cdn03.quay.io:443][total available: 2; route allocated: 1 of 20; total allocated: 2 of 200] [DEBUG] [org.apache.http.impl.execchain.MainClientExec] (pool-5-thread-1) Cancelling request execution [DEBUG] [io.quarkus.container.image.jib.deployment.JibProcessor] (pool-5-thread-3) Building layer built sha256:eead577e257644635cd129cb23680617fa807fc6a0b009ab7b04c46ec54fef1e [INFO] [io.quarkus.container.image.jib.deployment.JibProcessor] Container entrypoint set to [./application] [DEBUG] [io.quarkus.container.image.jib.deployment.JibProcessor] (pool-5-thread-5) Loading to Docker daemon... [DEBUG] [io.quarkus.container.image.jib.deployment.JibProcessor] (pool-5-thread-5) Loaded image: localhost/galder/project:1.0.0-SNAPSHOT [DEBUG] [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] (build-3) Connection manager is shutting down [DEBUG] [org.apache.http.impl.conn.DefaultManagedHttpClientConnection] (build-3) http-outgoing-0: Close connection [DEBUG] [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] (build-3) Connection manager shut down [DEBUG] [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] (build-3) Connection manager is shutting down [DEBUG] [org.apache.http.impl.conn.DefaultManagedHttpClientConnection] (build-3) http-outgoing-1: Close connection [DEBUG] [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] (build-3) Connection manager shut down [DEBUG] [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] (build-3) Connection manager is shutting down [DEBUG] [org.apache.http.impl.conn.DefaultManagedHttpClientConnection] (build-3) http-outgoing-3: Close connection [DEBUG] [org.apache.http.impl.conn.DefaultManagedHttpClientConnection] (build-3) http-outgoing-2: Close connection [DEBUG] [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] (build-3) Connection manager shut down [INFO] [io.quarkus.container.image.jib.deployment.JibProcessor] Created container image galder/project:1.0.0-SNAPSHOT (sha256:60a703561f3d1184f5c32d412d547c2d7c3f1db9caa19a0c9c495da839650f61) [DEBUG] [io.quarkus.builder] (build-3) Finished step "io.quarkus.container.image.jib.deployment.JibProcessor#buildFromNative" in 4152 ms [DEBUG] [io.quarkus.builder] (build-3) End step completed; 0 remaining [DEBUG] [org.jboss.threads] (build-3) Thread "Thread[#68,build-3,5,build group]" exiting [DEBUG] [org.jboss.threads] (build-10) Thread "Thread[#75,build-10,5,build group]" exiting [DEBUG] [org.jboss.threads] (build-13) Thread "Thread[#78,build-13,5,build group]" exiting [DEBUG] [org.jboss.threads] (build-14) Thread "Thread[#79,build-14,5,build group]" exiting [DEBUG] [org.jboss.threads] (build-58) Thread "Thread[#124,build-58,5,build group]" exiting [DEBUG] [org.jboss.threads] (build-57) Thread "Thread[#123,build-57,5,build group]" exiting [DEBUG] [org.jboss.threads] (build-52) Thread "Thread[#118,build-52,5,build group]" exiting [INFO] [io.quarkus.deployment.QuarkusAugmentor] Quarkus augmentation completed in 177028ms ```
Switching to
quarkus-container-image-docker
it all works fine.Expected behavior
Container image generated should match
linux/arm64
architecture when generated in an ARM mac.Actual behavior
The container image is generated with
linux/amd64
architecture, which is x86.How to Reproduce?
cd dev-services-agent/project
quarkus-container-image-jib
dependency inpom.xml
quarkus-container-image-docker
dependency.mvn verify -Dnative -Dquarkus.native.container-build=true -Dquarkus.container-image.build=true
Quarkus version or git rev
3.12.1