aws-cli-v2 with alpine image on docker

Open
#9 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
aws, docker

Research direction

Start by reviewing the AWS CLI issue at https://github.com/aws/aws-cli/issues/4685 and the Alpine Dockerfile recipe included here; the repository file to update is not identified. Done should mean the AWS CLI v2 installation guidance for Alpine Docker is documented clearly and can be followed successfully.

Written by the indexing model from the issue text.

Description

aws-cli-v2 could not be install on alpine docker easily. Follow instructions here, and it works.

https://github.com/aws/aws-cli/issues/4685

FROM alpine:3.14.2

ENV AWSCLI_VERSION=2.2.41
ENV GLIBC_VER=2.31-r0

RUN apk add --update --no-cache groff
RUN apk add --no-cache --virtual .dependencies binutils curl
&& curl -sL https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub -o /etc/apk/keys/sgerrand.rsa.pub
&& curl -sLO https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VER}/glibc-${GLIBC_VER}.apk
&& curl -sLO https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VER}/glibc-bin-${GLIBC_VER}.apk
&& curl -sLO https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VER}/glibc-i18n-${GLIBC_VER}.apk
&& apk add --no-cache --virtual .glibc
glibc-${GLIBC_VER}.apk
glibc-bin-${GLIBC_VER}.apk
glibc-i18n-${GLIBC_VER}.apk
&& /usr/glibc-compat/bin/localedef -i en_US -f UTF-8 en_US.UTF-8
&& curl -sL https://awscli.amazonaws.com/awscli-exe-linux-x86_64-${AWSCLI_VERSION}.zip -o awscliv2.zip
&& unzip awscliv2.zip
&& aws/install
&& rm -rf
awscliv2.zip
aws
/usr/local/aws-cli/v2//dist/aws_completer
/usr/local/aws-cli/v2/
/dist/awscli/data/ac.index
/usr/local/aws-cli/v2//dist/awscli/examples
glibc-
.apk
&& apk del --purge .dependencies

Dominant language
Python
Stars
5
Forks
2
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from davideuler/programming-tips

All issues in davideuler/programming-tips

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.