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

Install stubs for tools missing arm64 support #841

Merged
merged 3 commits into from
Apr 4, 2023
Merged

Install stubs for tools missing arm64 support #841

merged 3 commits into from
Apr 4, 2023

Conversation

Nuru
Copy link
Contributor

@Nuru Nuru commented Apr 3, 2023

what

  • For tools we have been including in Geodesic but that do not have arm64 support:
    • Install the tool in the amd4 versions of Geodesic
    • Install a stub script that explains the tool is missing due to lack of support

why

  • In Initial support for ARM #837, we removed all the tools without arm64 support from both versions. However, those tools are used by scripts and commands we continue to include, and we do not know how important those are to the Geodesic community. This way, they will continue to work as before for amd64 versions and will generate meaningful error messages (instead of generic "command not found" errors) in the arm64 version.

@Nuru Nuru requested a review from a team as a code owner April 3, 2023 22:09
@Nuru Nuru requested review from osterman, aknysh and nitrocode April 3, 2023 22:09
@@ -0,0 +1,4 @@
#!/bin/bash

printf "$(tput setaf 1)%s is not supported on this platform (arm64)$(tput setaf 0)\n" "$(basename "$0")" >&2
Copy link
Member

Choose a reason for hiding this comment

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

Nice.

Comment on lines +1 to +9
# These are packages that are only supported on amd64,
# typically because they have not been updated since 2021.
awless@cloudposse
cfssl@cloudposse
emailcli@cloudposse
goofys@cloudposse
rakkess@cloudposse
tfenv@cloudposse
tfmask@cloudposse
Copy link
Member

Choose a reason for hiding this comment

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

I do believe we should deprecate 💯 of these from our base image. We can do that in a follow on PR. None of these are critical to have in the base image, and it's easy enough for users to mitigate it in their downstream images. Since 2.x has many breaking changes, this would be the time, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@osterman The difficult one to remove is goofys, because we have commands s3 and s3fs (that work together to mount an S3 bucket as if it were a local disk) that depend on it. That was my motivation to restore these commands and add stubs. Do we want to remove s3 and s3fs as well?

osterman
osterman previously approved these changes Apr 3, 2023
@Nuru Nuru merged commit 99f5f07 into master Apr 4, 2023
@Nuru Nuru deleted the arm64-trim branch April 4, 2023 00:51
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.

2 participants