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

Fix awscli v1 dependency installation for legacy AMI base #253

Merged
merged 1 commit into from
Aug 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions Amazon_Linux_Base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@ LABEL maintainer="CJSE"
ARG YUM_PACKAGES="python-pip gzip tar unzip openssl shadow-utils xz wget gnupg"
ARG PIP_PACKAGES="awscli"

RUN yum update -y && \
amazon-linux-extras install -y epel && \
yum install -y deltarpm && \
yum install -y ${YUM_PACKAGES} && \
pip install --no-cache-dir ${PIP_PACKAGES} && \
rm -rf /var/log/* && \
yum clean all && \
RUN yum update -y &&\
amazon-linux-extras install -y epel &&\
yum install -y deltarpm &&\
yum install -y ${YUM_PACKAGES}

# https://github.com/aws/aws-cli/issues/8036
RUN pip install wheel &&\
pip install "Cython<3.0" "pyyaml<6" --no-build-isolation &&\
pip install --no-cache-dir ${PIP_PACKAGES}

RUN rm -rf /var/log/* &&\
yum clean all &&\
rm -rf /var/cache/yum

CMD ["tail", "-f", "/dev/null"]