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

Stop providing ZIP versions by default for Linux (make tar.bz2 the default for Linux) #6339

Closed
dlmiles opened this issue Aug 19, 2021 · 6 comments
Labels
duplicate This issue is a duplicate. feature-request A feature should be added or improved. installation v2

Comments

@dlmiles
Copy link

dlmiles commented Aug 19, 2021

This request is make tar.bz2 (or tar.gz) the default distribution format for Linux.

You should also continue to make available to the ZIP version (so you don't break peoples download links).

You should also update ALL documentation as much as possible to reflect the .tar.bz2 version.
Such as pages like this: https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html#cliv2-linux-install

You should also modify and update the AWS Image Builder Components: arn:aws:imagebuilder:*:aws:component/aws-cli-version-2-linux/1.0.1/1 so that it can locate and find the tar.bz2 version (as well as .zip) in the event that "unzip" command is not present on the EC2 image. Ideally it should detect which archive tool is available tar/bzip2 or unzip before downloading any data.

The rationale on this:

  • When building EC2 instances that use Minimal package set by default, they do not support zip/unzip because that is not installed.
  • All modern (those younger than 20 years old) Linux distributions I have seen have tar/cpio/gzip/bzip2 installed since the package managers themselves use these archiving and compression formats themselves.
  • As an example of this make use of the AWS Image Builder and the Amazon maintained images and components and run builds on all the Linux distributions and customize to include the arn:aws:imagebuilder:*:aws:component/aws-cli-version-2-linux component. See how many of them will actually succeed.
  • This is the reason why I shall not be upgrading my AMI image to use aws-cli v2 when I can install the system package aws-cli the Linux distribution vendor provides (which is currently v1). Good luck getting people to upgrade.

Thank you for your consideration.

@dlmiles dlmiles added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Aug 19, 2021
@dlmiles dlmiles changed the title Stop provicing ZIP version by default for Linux Stop providing ZIP versions by default for Linux (make tar.bz2 the default for Linux) Aug 19, 2021
@stobrien89
Copy link
Member

Thanks for the feature request and the additional info, @dlmiles! I'll ask the team to review this.

@stobrien89 stobrien89 added needs-review This issue or pull request needs review from a core team member. and removed needs-triage This issue or PR still needs to be triaged. labels Aug 19, 2021
@brogers-propstream
Copy link

I second this for one major reason.

  • Multiple EC2 Image Builder Components supplied by Amazon require unzip, but do not install it themselves.

It makes dealing with the Image builder a royal pain since the Amazon supplied components are incomplete.

@stobrien89 stobrien89 removed the needs-review This issue or pull request needs review from a core team member. label Aug 20, 2021
@stobrien89
Copy link
Member

Hi all,

Just discussed this with the team this morning. I don't think we'll make tar.bz2 or tar.gz the default distribution format, but we're definitely open to adding either as an option to choose from. I don't have an estimate for when we'll be able to work on this, but we'll let you know once we have an update!

@dlmiles
Copy link
Author

dlmiles commented Aug 21, 2021

Thanks for your consideration.

I don't support @brogers-propstream (potential suggestion) "but do not install it themselves" which might insinuate to someone that "dnf install unzip" / "apt-get install unzip" should be placed inside the script for arn:aws:imagebuilder:*:aws:component/aws-cli-version-2-linux component. This is a particularly lazy solution.

This is because it doesn't support best practice for building images of not installing per-requisites for no good reason. Maybe this can be addressed by uninstalling it after installation is complete (if it wasn't already on the system, since it is not needed at runtime only at install time).

@stobrien89 stobrien89 added the duplicate This issue is a duplicate. label Aug 26, 2021
@stobrien89
Copy link
Member

Hi all,

Sorry for missing this up front, but this is close enough to #4842 to be considered a duplicate. That said, this is something we plan to work on sometime in the near future, so keep an eye out on the above issue for updates!

@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue is a duplicate. feature-request A feature should be added or improved. installation v2
Projects
None yet
Development

No branches or pull requests

3 participants