Skip to content

Commit

Permalink
Merge branch 'develop' into feat-al2023-runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
hawflau authored Nov 8, 2023
2 parents 7a3086e + dd95726 commit dddf39f
Show file tree
Hide file tree
Showing 14 changed files with 165 additions and 48 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ on:
jobs:
run-workflow:
name: Parent PR Status Check
if: always()
# If any dependent jobs fails, this WF skips which won't block merging PRs
# calling always() is required for this WF to run all the time
if: github.repository_owner == 'aws' && always()
runs-on: ubuntu-latest
needs:
- build-single-arch
Expand Down
15 changes: 12 additions & 3 deletions build-image-src/Dockerfile-dotnet6
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ RUN yum groupinstall -y development && \
tar \
gzip \
unzip \
python3 \
jq \
grep \
curl \
Expand All @@ -19,8 +18,18 @@ RUN yum groupinstall -y development && \
libgmp3-dev \
zlib1g-dev \
libmpc-devel \
python3-devel \
&& yum clean all
amazon-linux-extras

# Install extras so that Python 3.8 is installable
# https://aws.amazon.com/amazon-linux-2/faqs/#Amazon_Linux_Extras
RUN amazon-linux-extras enable python3.8 && \
yum clean metadata && \
yum install -y python38 python38-devel && \
yum clean all && \
ln -s /usr/bin/python3.8 /usr/bin/python3 && \
ln -s /usr/bin/pip3.8 /usr/bin/pip3 && \
python3 --version && \
pip3 --version

# Install AWS CLI
ARG AWS_CLI_ARCH
Expand Down
19 changes: 15 additions & 4 deletions build-image-src/Dockerfile-dotnet7
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ RUN yum groupinstall -y development && \
tar \
gzip \
unzip \
python3 \
jq \
grep \
curl \
Expand All @@ -19,12 +18,24 @@ RUN yum groupinstall -y development && \
libgmp3-dev \
zlib1g-dev \
libmpc-devel \
python3-devel \
amazon-linux-extras \
clang krb5-devel \
openssl-devel \
llvm \
libicu \
&& yum clean all
libicu

RUN yum remove -y python3 python3-devel

# Install extras so that Python 3.8 is installable
# https://aws.amazon.com/amazon-linux-2/faqs/#Amazon_Linux_Extras
RUN amazon-linux-extras enable python3.8 && \
yum clean metadata && \
yum install -y python38 python38-devel && \
yum clean all && \
ln -s /usr/bin/python3.8 /usr/bin/python3 && \
ln -s /usr/bin/pip3.8 /usr/bin/pip3 && \
python3 --version && \
pip3 --version

# Install AWS CLI
ARG AWS_CLI_ARCH
Expand Down
15 changes: 12 additions & 3 deletions build-image-src/Dockerfile-java11
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ RUN yum groupinstall -y development && \
tar \
gzip \
unzip \
python3 \
jq \
grep \
curl \
Expand All @@ -19,8 +18,18 @@ RUN yum groupinstall -y development && \
libgmp3-dev \
zlib1g-dev \
libmpc-devel \
python3-devel \
&& yum clean all
amazon-linux-extras

# Install extras so that Python 3.8 is installable
# https://aws.amazon.com/amazon-linux-2/faqs/#Amazon_Linux_Extras
RUN amazon-linux-extras enable python3.8 && \
yum clean metadata && \
yum install -y python38 python38-devel && \
yum clean all && \
ln -s /usr/bin/python3.8 /usr/bin/python3 && \
ln -s /usr/bin/pip3.8 /usr/bin/pip3 && \
python3 --version && \
pip3 --version

# Install AWS CLI
ARG AWS_CLI_ARCH
Expand Down
15 changes: 12 additions & 3 deletions build-image-src/Dockerfile-java17
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ RUN yum groupinstall -y development && \
tar \
gzip \
unzip \
python3 \
jq \
grep \
curl \
Expand All @@ -19,8 +18,18 @@ RUN yum groupinstall -y development && \
libgmp3-dev \
zlib1g-dev \
libmpc-devel \
python3-devel \
&& yum clean all
amazon-linux-extras

# Install extras so that Python 3.8 is installable
# https://aws.amazon.com/amazon-linux-2/faqs/#Amazon_Linux_Extras
RUN amazon-linux-extras enable python3.8 && \
yum clean metadata && \
yum install -y python38 python38-devel && \
yum clean all && \
ln -s /usr/bin/python3.8 /usr/bin/python3 && \
ln -s /usr/bin/pip3.8 /usr/bin/pip3 && \
python3 --version && \
pip3 --version

# Install AWS CLI
ARG AWS_CLI_ARCH
Expand Down
17 changes: 13 additions & 4 deletions build-image-src/Dockerfile-java8_al2
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ RUN yum groupinstall -y development && \
tar \
gzip \
unzip \
python3 \
jq \
grep \
curl \
Expand All @@ -21,9 +20,19 @@ RUN yum groupinstall -y development && \
liblzma-dev \
libxslt-devel \
libmpc-devel \
python3-devel \
java-1.8.0-openjdk-devel \
&& yum clean all
amazon-linux-extras \
java-1.8.0-openjdk-devel

# Install extras so that Python 3.8 is installable
# https://aws.amazon.com/amazon-linux-2/faqs/#Amazon_Linux_Extras
RUN amazon-linux-extras enable python3.8 && \
yum clean metadata && \
yum install -y python38 python38-devel && \
yum clean all && \
ln -s /usr/bin/python3.8 /usr/bin/python3 && \
ln -s /usr/bin/pip3.8 /usr/bin/pip3 && \
python3 --version && \
pip3 --version

# Install AWS CLI
ARG AWS_CLI_ARCH
Expand Down
15 changes: 12 additions & 3 deletions build-image-src/Dockerfile-nodejs12x
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ RUN yum groupinstall -y development && \
tar \
gzip \
unzip \
python3 \
jq \
grep \
curl \
Expand All @@ -24,8 +23,18 @@ RUN yum groupinstall -y development && \
libgmp3-dev \
zlib1g-dev \
libmpc-devel \
python3-devel \
&& yum clean all
amazon-linux-extras

# Install extras so that Python 3.8 is installable
# https://aws.amazon.com/amazon-linux-2/faqs/#Amazon_Linux_Extras
RUN amazon-linux-extras enable python3.8 && \
yum clean metadata && \
yum install -y python38 python38-devel && \
yum clean all && \
ln -s /usr/bin/python3.8 /usr/bin/python3 && \
ln -s /usr/bin/pip3.8 /usr/bin/pip3 && \
python3 --version && \
pip3 --version

# Install AWS CLI
ARG AWS_CLI_ARCH
Expand Down
15 changes: 12 additions & 3 deletions build-image-src/Dockerfile-nodejs14x
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ RUN yum groupinstall -y development && \
tar \
gzip \
unzip \
python3 \
jq \
grep \
curl \
Expand All @@ -24,8 +23,18 @@ RUN yum groupinstall -y development && \
libgmp3-dev \
zlib1g-dev \
libmpc-devel \
python3-devel \
&& yum clean all
amazon-linux-extras

# Install extras so that Python 3.8 is installable
# https://aws.amazon.com/amazon-linux-2/faqs/#Amazon_Linux_Extras
RUN amazon-linux-extras enable python3.8 && \
yum clean metadata && \
yum install -y python38 python38-devel && \
yum clean all && \
ln -s /usr/bin/python3.8 /usr/bin/python3 && \
ln -s /usr/bin/pip3.8 /usr/bin/pip3 && \
python3 --version && \
pip3 --version

# Install AWS CLI
ARG AWS_CLI_ARCH
Expand Down
15 changes: 12 additions & 3 deletions build-image-src/Dockerfile-nodejs16x
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ RUN yum groupinstall -y development && \
tar \
gzip \
unzip \
python3 \
jq \
grep \
curl \
Expand All @@ -24,8 +23,18 @@ RUN yum groupinstall -y development && \
libgmp3-dev \
zlib1g-dev \
libmpc-devel \
python3-devel \
&& yum clean all
amazon-linux-extras

# Install extras so that Python 3.8 is installable
# https://aws.amazon.com/amazon-linux-2/faqs/#Amazon_Linux_Extras
RUN amazon-linux-extras enable python3.8 && \
yum clean metadata && \
yum install -y python38 python38-devel && \
yum clean all && \
ln -s /usr/bin/python3.8 /usr/bin/python3 && \
ln -s /usr/bin/pip3.8 /usr/bin/pip3 && \
python3 --version && \
pip3 --version

# Install AWS CLI
ARG AWS_CLI_ARCH
Expand Down
16 changes: 12 additions & 4 deletions build-image-src/Dockerfile-nodejs18x
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ ENV PATH=/var/lang/bin:$PATH \
AWS_EXECUTION_ENV=AWS_Lambda_nodejs18.x \
NODE_PATH=/opt/nodejs/node18/node_modules:/opt/nodejs/node_modules:/var/runtime/node_modules

# Installing by yum at copied location
RUN yum groupinstall -y development && \
yum install -d1 -y \
yum \
tar \
gzip \
unzip \
python3 \
jq \
grep \
curl \
Expand All @@ -25,8 +23,18 @@ RUN yum groupinstall -y development && \
libgmp3-dev \
zlib1g-dev \
libmpc-devel \
python3-devel \
&& yum clean all
amazon-linux-extras

# Install extras so that Python 3.8 is installable
# https://aws.amazon.com/amazon-linux-2/faqs/#Amazon_Linux_Extras
RUN amazon-linux-extras enable python3.8 && \
yum clean metadata && \
yum install -y python38 python38-devel && \
yum clean all && \
ln -s /usr/bin/python3.8 /usr/bin/python3 && \
ln -s /usr/bin/pip3.8 /usr/bin/pip3 && \
python3 --version && \
pip3 --version

# Install AWS CLI
ARG AWS_CLI_ARCH
Expand Down
15 changes: 12 additions & 3 deletions build-image-src/Dockerfile-provided_al2
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ RUN yum groupinstall -y development && \
tar \
gzip \
unzip \
python3 \
jq \
grep \
curl \
Expand All @@ -21,8 +20,18 @@ RUN yum groupinstall -y development && \
liblzma-dev \
libxslt-devel \
libmpc-devel \
python3-devel \
&& yum clean all
amazon-linux-extras

# Install extras so that Python 3.8 is installable
# https://aws.amazon.com/amazon-linux-2/faqs/#Amazon_Linux_Extras
RUN amazon-linux-extras enable python3.8 && \
yum clean metadata && \
yum install -y python38 python38-devel && \
yum clean all && \
ln -s /usr/bin/python3.8 /usr/bin/python3 && \
ln -s /usr/bin/pip3.8 /usr/bin/pip3 && \
python3 --version && \
pip3 --version

# Install AWS CLI
ARG AWS_CLI_ARCH
Expand Down
22 changes: 14 additions & 8 deletions build-image-src/Dockerfile-python37
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,24 @@ RUN yum groupinstall -y development && \
# Install AWS CLI
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && unzip awscliv2.zip && ./aws/install && rm awscliv2.zip && rm -rf ./aws

# Install SAM CLI in a dedicated Python virtualenv
# Install SAM CLI via native linux installer
ARG SAM_CLI_VERSION
RUN curl -L "https://github.com/awslabs/aws-sam-cli/archive/v$SAM_CLI_VERSION.zip" -o "samcli.zip" && \
unzip samcli.zip && python3 -m venv /usr/local/opt/sam-cli && \
/usr/local/opt/sam-cli/bin/pip3 --no-cache-dir install -r ./aws-sam-cli-$SAM_CLI_VERSION/requirements/base.txt && \
/usr/local/opt/sam-cli/bin/pip3 --no-cache-dir install ./aws-sam-cli-$SAM_CLI_VERSION && \
rm samcli.zip && rm -rf aws-sam-cli-$SAM_CLI_VERSION

ENV PATH=$PATH:/usr/local/opt/sam-cli/bin
RUN curl -L "https://github.com/aws/aws-sam-cli/releases/download/v$SAM_CLI_VERSION/aws-sam-cli-linux-x86_64.zip" -o "samcli.zip" && \
unzip samcli.zip -d sam-installation && ./sam-installation/install && \
rm samcli.zip && rm -rf sam-installation && sam --version

ENV LANG=en_US.UTF-8

# Prepare virtualenv for lambda builders
RUN python3 -m venv --without-pip /usr/local/opt/lambda-builders
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
RUN /usr/local/opt/lambda-builders/bin/python3 get-pip.py
# Install lambda builders in a dedicated Python virtualenv
RUN AWS_LB_VERSION=$(curl -sSL https://raw.githubusercontent.com/aws/aws-sam-cli/v$SAM_CLI_VERSION/requirements/base.txt | grep aws_lambda_builders | cut -d= -f3) && \
/usr/local/opt/lambda-builders/bin/pip3 --no-cache-dir install "aws-lambda-builders==$AWS_LB_VERSION"

ENV PATH=$PATH:/usr/local/opt/lambda-builders/bin

# Wheel is required by SAM CLI to build libraries like cryptography. It needs to be installed in the system
# Python for it to be picked up during `sam build`
RUN pip3 install wheel
Expand Down
15 changes: 12 additions & 3 deletions build-image-src/Dockerfile-ruby27
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ RUN yum groupinstall -y development && \
tar \
gzip \
unzip \
python3 \
jq \
grep \
curl \
Expand All @@ -19,8 +18,18 @@ RUN yum groupinstall -y development && \
libgmp3-dev \
zlib1g-dev \
libmpc-devel \
python3-devel \
&& yum clean all
amazon-linux-extras

# Install extras so that Python 3.8 is installable
# https://aws.amazon.com/amazon-linux-2/faqs/#Amazon_Linux_Extras
RUN amazon-linux-extras enable python3.8 && \
yum clean metadata && \
yum install -y python38 python38-devel && \
yum clean all && \
ln -s /usr/bin/python3.8 /usr/bin/python3 && \
ln -s /usr/bin/pip3.8 /usr/bin/pip3 && \
python3 --version && \
pip3 --version

RUN gem update --system --no-document

Expand Down
Loading

0 comments on commit dddf39f

Please sign in to comment.