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

build: fix aws-iam-authenticator build #388

Merged
merged 1 commit into from
May 5, 2022
Merged

build: fix aws-iam-authenticator build #388

merged 1 commit into from
May 5, 2022

Conversation

webern
Copy link
Contributor

@webern webern commented May 4, 2022

Issue number:

N.A

Description of changes:

Apparently, GitHub archive hashes are not stable. The sha sum for
aws-iam-authenticator changed and it broke our build. Now we pull it
from the Bottlerocket lookaside cache instead.

We probably need to do something like this with the rest of our GitHub archive sourcecode pulls as well, but for now this fixes our build.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

@webern webern requested review from jpculp and etungsten May 4, 2022 18:55
Dockerfile Outdated
Comment on lines 194 to 195
ARG AWS_IAM_AUTHENTICATOR_SHA512_SUM=24c2a7fd141f921e18c17f4c7e90bbf5325cc6fad3b35753c0da2d879cf64d8f6af0130f8c45ec7693d6fce043181abbd04a911e6fa778f686bd5c313631ed0f
ARG AWS_IAM_AUTHENTICATOR_SOURCE_URL="https://cache.bottlerocket.aws/aws-iam-authenticator-0.5.5.tar.gz/${AWS_IAM_AUTHENTICATOR_SHA512_SUM}/aws-iam-authenticator-${AWS_IAM_AUTHENTICATOR_VERSION}.tar.gz"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have strong feelings about this, but should we take the sdk-fetch/hashes approach that we're using with the other Bottlerocket containers?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, probably, I would need to find a prototype example. Are these in the Bottlerocfket rpm spec files?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably the most straight forward example: bottlerocket-os/bottlerocket-admin-container#35

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to leave sdk-fetch as a future enhancement. It seems like it makes the most sense when you have all of your sources in the lookaside cache.

Apparently, GitHub archive hashes are not stable. The sha sum for
aws-iam-authenticator changed and it broke our build. Now we pull it
from the Bottlerocket lookaside cache instead.
@webern
Copy link
Contributor Author

webern commented May 5, 2022

^ We need to use 0.5.3 to avoid a breaking change for now.

@webern webern merged commit 9055464 into bottlerocket-os:develop May 5, 2022
@webern webern deleted the sumfix branch May 5, 2022 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants