aws-cli icon indicating copy to clipboard operation
aws-cli copied to clipboard

Include `tar` in the "amazon/aws-cli" Docker images

Open mririgoyen opened this issue 4 years ago • 7 comments

Is your feature request related to a problem? Please describe. Partially. Using the now available aws-cli Docker container doesn't really save us anything over building one manually.

Being able to easily tarball files before sending them to things, such as S3, is a common use case and its absence makes using the prebuilt container pretty worthless (in our use case). We currently are building an in-house container with tar and aws-cli to handle these jobs. Now, we'd have to build another based off of the official image which doesn't really save and/or gain us anything. The draw of using a container like this would be for the drop-in simplicity of deploying to AWS.

Describe the solution you'd like Add tar to the base aws-cli Docker container.

Describe alternatives you've considered We currently are building a custom Docker container with Python, aws-cli, and tarball for handling deploying assets to S3. We'd like to not have to maintain this custom container every time AWS CLI is updated.

mririgoyen avatar Apr 03 '20 19:04 mririgoyen

circleci relies on tar being available to attach workspaces:

tar utility is not present in this image but it is required. Please install it to have workflow workspace capability.

Please also add gzip

willthames avatar Jun 08 '20 12:06 willthames

Hi @goyney and @willthames! Thank you for submitting this feature request and the information about CircleCI. I'm labeling it for additional team review to discuss how to manage Docker image dependency or utility requests, as there are other requests as well (e.g., #5227).

kdaily avatar Jun 15 '20 20:06 kdaily

Hi there - wondering if this ever came to fruition

estebane-frb avatar Sep 22 '21 19:09 estebane-frb

Would also love this feature as we use CircleCI. Resorting to just using the official node image from dockerhub which is not ideal

kanocarra avatar Oct 31 '21 20:10 kanocarra

Would also love this feature as we use CircleCI. Resorting to just using the official node image from dockerhub which is not ideal

kanocarra avatar Oct 31 '21 20:10 kanocarra

I use CircleCI, and as a workaround I added a run step in my CircleCI config.yml that installs the tar utility.

deploy:
    docker:
      - image: amazon/aws-cli
    steps:
      - checkout
      - run:
          name: Install tar utility
          command: |
            yum install -y tar gzip

stangahh avatar Nov 29 '21 02:11 stangahh

@stangahh thanks came in handy

Chinwendu20 avatar Aug 28 '22 05:08 Chinwendu20

@stangahh Thank you. It worked!

Voldarco avatar Feb 22 '23 14:02 Voldarco