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

test: Fix Terraform Docker container #7873

Merged
merged 1 commit into from
Feb 7, 2025
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
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
FROM public.ecr.aws/amazonlinux/amazonlinux:2
FROM public.ecr.aws/amazonlinux/amazonlinux:2023

RUN yum -y update \
&& yum install -y unzip tar gzip bzip2-devel ed gcc gcc-c++ gcc-gfortran \
less libcurl-devel openssl openssl-devel readline-devel xz-devel \
zlib-devel glibc-static libcxx libcxx-devel llvm-toolset-7 zlib-static \
&& yum install -y unzip tar gzip ed less \
&& rm -rf /var/cache/yum

RUN yum -y install make \
Expand All @@ -15,11 +13,9 @@ RUN yum install -y yum-utils \
&& terraform --version

# AWS Lambda Builders
RUN amazon-linux-extras enable python3.9
RUN yum clean metadata && yum -y install python3.9
# AL2023 uses Python3.9 by default. This might fail in the future if that changes. We just need the proper version
RUN curl -L get-pip.io | python3.9
RUN pip3 install aws-lambda-builders
RUN ln -s /usr/bin/python3.9 /usr/bin/python3
RUN python3 --version

VOLUME /project
Expand Down
Loading