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

Docker build fails for corretto-8 on alpine #131

Closed
dnafication opened this issue Jan 11, 2023 · 1 comment
Closed

Docker build fails for corretto-8 on alpine #131

dnafication opened this issue Jan 11, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@dnafication
Copy link

Thank you for taking the time to help improve Corretto.

If your request concerns a security vulnerability then please report it by email to [email protected] instead of here.
(You can find more information regarding security issues at https://aws.amazon.com/security/vulnerability-reporting/.)

If your issue is specific to the Amazon Linux image these containers are built upon, please, consider opening an issue on the Amazon Linux Docker github repository

If your issue is specific to Corretto docker images,
then you are in the right place.
Please proceed with the following.

Describe the bug

Docker image fails to build for alpine https://raw.githubusercontent.com/corretto/corretto-docker/main/8/jdk/al2/Dockerfile

To Reproduce

Steps and (source) code to reproduce the behavior. Run the following:

docker build -t amazon-corretto-8 https://raw.githubusercontent.com/corretto/corretto-docker/main/8/jdk/al2/Dockerfile

Produces the following errro:

[+] Building 9.2s (4/4) FINISHED                                                                                                                                                                         
 => [internal] load remote build context                                                                                                                                                            0.0s
 => [internal] load metadata for docker.io/library/alpine:3.16                                                                                                                                      3.2s
 => [1/2] FROM docker.io/library/alpine:3.16@sha256:b95359c2505145f16c6aa384f9cc74eeff78eb36d308ca4fd902eeeb0a0b161b                                                                                1.0s
 => => resolve docker.io/library/alpine:3.16@sha256:b95359c2505145f16c6aa384f9cc74eeff78eb36d308ca4fd902eeeb0a0b161b                                                                                0.0s
 => => sha256:b95359c2505145f16c6aa384f9cc74eeff78eb36d308ca4fd902eeeb0a0b161b 1.64kB / 1.64kB                                                                                                      0.0s
 => => sha256:559254f7ee68d88649077bd0cc6dfb94c337aadb8411d0fe5eae3b037578ec13 528B / 528B                                                                                                          0.0s
 => => sha256:2b4661558fb8cf1ec295ccd9c6d1cd42067ef517b0e538c9de65f733a8e3dd7e 1.49kB / 1.49kB                                                                                                      0.0s
 => => sha256:6875df1f535433e5affe18ecfde9acb7950ab5f76887980ff06c5cdd48cf98f4 2.71MB / 2.71MB                                                                                                      0.9s
 => => extracting sha256:6875df1f535433e5affe18ecfde9acb7950ab5f76887980ff06c5cdd48cf98f4                                                                                                           0.1s
 => ERROR [2/2] RUN wget -O /THIRD-PARTY-LICENSES-20200824.tar.gz https://corretto.aws/downloads/resources/licenses/alpine/THIRD-PARTY-LICENSES-20200824.tar.gz &&     echo "82f3e50e71b2aee21321b  4.9s
------                                                                                                                                                                                                   
 > [2/2] RUN wget -O /THIRD-PARTY-LICENSES-20200824.tar.gz https://corretto.aws/downloads/resources/licenses/alpine/THIRD-PARTY-LICENSES-20200824.tar.gz &&     echo "82f3e50e71b2aee21321b2b33de372feed5befad6ef2196ddec92311bc09becb  /THIRD-PARTY-LICENSES-20200824.tar.gz" | sha256sum -c - &&     tar x -ovzf THIRD-PARTY-LICENSES-20200824.tar.gz &&     rm -rf THIRD-PARTY-LICENSES-20200824.tar.gz &&     wget -O /etc/apk/keys/amazoncorretto.rsa.pub https://apk.corretto.aws/amazoncorretto.rsa.pub &&     SHA_SUM="6cfdf08be09f32ca298e2d5bd4a359ee2b275765c09b56d514624bf831eafb91" &&     echo "${SHA_SUM}  /etc/apk/keys/amazoncorretto.rsa.pub" | sha256sum -c - &&     echo "https://apk.corretto.aws" >> /etc/apk/repositories &&     apk add --no-cache amazon-corretto-8=8.352.08.1-r0:                         
#4 0.177 Connecting to corretto.aws (65.8.134.86:443)                                                                                                                                                    
#4 0.252 saving to '/THIRD-PARTY-LICENSES-20200824.tar.gz'
#4 0.256 THIRD-PARTY-LICENSES 100% |********************************| 25807  0:00:00 ETA
#4 0.256 '/THIRD-PARTY-LICENSES-20200824.tar.gz' saved
#4 0.257 /THIRD-PARTY-LICENSES-20200824.tar.gz: OK
#4 0.259 licenses/THIRD-PARTY-LICENSES
#4 0.377 Connecting to apk.corretto.aws (65.8.33.107:443)
#4 0.460 saving to '/etc/apk/keys/amazoncorretto.rsa.pub'
#4 0.460 amazoncorretto.rsa.p 100% |********************************|   451  0:00:00 ETA
#4 0.461 '/etc/apk/keys/amazoncorretto.rsa.pub' saved
#4 0.463 /etc/apk/keys/amazoncorretto.rsa.pub: OK
#4 0.471 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/aarch64/APKINDEX.tar.gz
#4 2.555 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/aarch64/APKINDEX.tar.gz
#4 3.853 fetch https://apk.corretto.aws/aarch64/APKINDEX.tar.gz
#4 4.786 WARNING: Ignoring https://apk.corretto.aws: Permission denied
#4 4.866 ERROR: unable to select packages:
#4 4.881   amazon-corretto-8 (no such package):
#4 4.881     required by: world[amazon-corretto-8=8.352.08.1-r0]
------
executor failed running [/bin/sh -c wget -O /THIRD-PARTY-LICENSES-20200824.tar.gz https://corretto.aws/downloads/resources/licenses/alpine/THIRD-PARTY-LICENSES-20200824.tar.gz &&     echo "82f3e50e71b2aee21321b2b33de372feed5befad6ef2196ddec92311bc09becb  /THIRD-PARTY-LICENSES-20200824.tar.gz" | sha256sum -c - &&     tar x -ovzf THIRD-PARTY-LICENSES-20200824.tar.gz &&     rm -rf THIRD-PARTY-LICENSES-20200824.tar.gz &&     wget -O /etc/apk/keys/amazoncorretto.rsa.pub https://apk.corretto.aws/amazoncorretto.rsa.pub &&     SHA_SUM="6cfdf08be09f32ca298e2d5bd4a359ee2b275765c09b56d514624bf831eafb91" &&     echo "${SHA_SUM}  /etc/apk/keys/amazoncorretto.rsa.pub" | sha256sum -c - &&     echo "https://apk.corretto.aws" >> /etc/apk/repositories &&     apk add --no-cache amazon-corretto-8=$version-r0]: exit code: 1

Expected behavior

The image should get built successfully.

Screenshots

If applicable, add screenshots to help explain your problem.

Platform information

Repository: [e.g. dockerhub, ECR]
Image tag: corretto 8 alpine 3.16. But it was failing for 3.17 too

Additional context

Add any other context about the problem here.

@dnafication dnafication added the bug Something isn't working label Jan 11, 2023
@dnafication dnafication changed the title Docker build fails for corretto-8 Docker build fails for corretto-8 on alpine Jan 11, 2023
@lutkerd
Copy link
Contributor

lutkerd commented Jan 11, 2023

You are trying to build for aarch64 which is not currently supported.
Please see: #46

@lutkerd lutkerd closed this as completed Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants