Skip to content

Commit

Permalink
awscliv2 installtion step in docker build added which causing error
Browse files Browse the repository at this point in the history
  • Loading branch information
AbduRawoof committed Dec 13, 2024
1 parent 9d424de commit d2d9761
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,21 @@ ARG AWS_REGION="us-east-2"

#RUN apk add --update --no-cache curl tar ca-certificates && \
# added usage-schema to s3 bucket and from bucket the usaage schema is used in dockef build & passed arguments to aws configure
RUN apk add --update --no-cache curl tar python3 py3-pip && \
pip install awscli && \
# Install necessary tools, glibc, and AWS CLI v2
RUN apk add --no-cache curl tar unzip && \
curl -LO https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.35-r0/glibc-2.35-r0.apk && \
curl -LO https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.35-r0/glibc-bin-2.35-r0.apk && \
apk add --no-cache glibc-2.35-r0.apk glibc-bin-2.35-r0.apk && \
rm -f glibc-2.35-r0.apk glibc-bin-2.35-r0.apk && \
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install && \
rm -rf awscliv2.zip aws && \
aws --version && \
aws s3 cp ${S3_PATH_PRIVATE} /tmp/usage-schema.tar.gz && \
tar -xzf /tmp/usage-schema.tar.gz
tar -xzf /tmp/usage-schema.tar.gz && \
rm -f /tmp/usage-schema.tar.gz


# RUN apk add --update --no-cache curl tar unzip && \
# curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
Expand Down

0 comments on commit d2d9761

Please sign in to comment.