Skip to content

Commit cb7817c

Browse files
Update distro and runtime versions in compatibility tests
1 parent 0e176f5 commit cb7817c

15 files changed

+27
-133
lines changed

Diff for: Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ setup-codebuild-agent:
1717

1818
.PHONY: test-smoke
1919
test-smoke: setup-codebuild-agent
20-
CODEBUILD_IMAGE_TAG=codebuild-agent tests/integration/codebuild-local/test_one.sh tests/integration/codebuild/buildspec.os.alpine.1.yml alpine 3.12 3.8
20+
CODEBUILD_IMAGE_TAG=codebuild-agent tests/integration/codebuild-local/test_one.sh tests/integration/codebuild/buildspec.os.alpine.yml alpine 3.15 3.9
2121

2222
.PHONY: test-integ
2323
test-integ: setup-codebuild-agent

Diff for: README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ You can include this package in your preferred base image to make that base imag
1010

1111
## Requirements
1212
The Python Runtime Interface Client package currently supports Python versions:
13-
- 3.6.x up to and including 3.9.x
13+
- 3.7.x up to and including 3.9.x
1414

1515
## Usage
1616

@@ -58,7 +58,7 @@ Example Dockerfile (to keep the image light we use a multi-stage build):
5858
# Define custom function directory
5959
ARG FUNCTION_DIR="/function"
6060

61-
FROM python:buster as build-image
61+
FROM public.ecr.aws/docker/library/python:buster as build-image
6262

6363
# Include global arg in this stage of the build
6464
ARG FUNCTION_DIR
@@ -82,7 +82,7 @@ RUN pip install \
8282
awslambdaric
8383

8484

85-
FROM python:buster
85+
FROM public.ecr.aws/docker/library/python:buster
8686

8787
# Include global arg in this stage of the build
8888
ARG FUNCTION_DIR

Diff for: tests/integration/codebuild-local/Dockerfile.agent

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM amazonlinux:2
1+
FROM public.ecr.aws/amazonlinux/amazonlinux:2
22

33
RUN amazon-linux-extras enable docker && \
44
yum clean metadata && \

Diff for: tests/integration/codebuild/buildspec.os.alpine.3.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ env:
44
variables:
55
OS_DISTRIBUTION: alpine
66
PYTHON_LOCATION: "/usr/local/bin/python"
7-
TEST_NAME: "aws-lambda-python-rtc-alpine-3-test"
7+
TEST_NAME: "aws-lambda-python-rtc-alpine-test"
88
batch:
99
build-matrix:
1010
static:
@@ -15,9 +15,10 @@ batch:
1515
env:
1616
variables:
1717
DISTRO_VERSION:
18-
- "3.12"
18+
- "3.13"
19+
- "3.14"
20+
- "3.15"
1921
RUNTIME_VERSION:
20-
- "3.6"
2122
- "3.7"
2223
- "3.8"
2324
- "3.9"

Diff for: tests/integration/codebuild/buildspec.os.amazonlinux.1.yml

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ batch:
1717
DISTRO_VERSION:
1818
- "1"
1919
RUNTIME_VERSION:
20-
- "3.6"
2120
- "3.7"
2221
- "3.8"
2322
- "3.9"

Diff for: tests/integration/codebuild/buildspec.os.amazonlinux.2.yml

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ batch:
1717
DISTRO_VERSION:
1818
- "2"
1919
RUNTIME_VERSION:
20-
- "3.6"
2120
- "3.7"
2221
- "3.8"
2322
- "3.9"

Diff for: tests/integration/codebuild/buildspec.os.centos.1.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ env:
44
variables:
55
OS_DISTRIBUTION: centos
66
PYTHON_LOCATION: "/usr/local/bin/python3"
7-
TEST_NAME: "aws-lambda-python-rtc-centos-1-test"
7+
TEST_NAME: "aws-lambda-python-rtc-centos-test"
88
batch:
99
build-matrix:
1010
static:
@@ -17,7 +17,6 @@ batch:
1717
DISTRO_VERSION:
1818
- "7"
1919
RUNTIME_VERSION:
20-
- "3.6"
2120
- "3.7"
2221
- "3.8"
2322
- "3.9"

Diff for: tests/integration/codebuild/buildspec.os.debian.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ batch:
1616
variables:
1717
DISTRO_VERSION:
1818
- "buster"
19+
- "bullseye"
1920
RUNTIME_VERSION:
20-
- "3.6"
2121
- "3.7"
2222
- "3.8"
2323
- "3.9"

Diff for: tests/integration/codebuild/buildspec.os.ubuntu.1.yml

-110
This file was deleted.

Diff for: tests/integration/codebuild/buildspec.os.ubuntu.2.yml renamed to tests/integration/codebuild/buildspec.os.ubuntu.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ env:
44
variables:
55
OS_DISTRIBUTION: ubuntu
66
PYTHON_LOCATION: "/usr/bin/python"
7-
TEST_NAME: "aws-lambda-python-rtc-ubuntu-2-test"
7+
TEST_NAME: "aws-lambda-python-rtc-ubuntu-test"
88
batch:
99
build-matrix:
1010
static:
@@ -16,7 +16,9 @@ batch:
1616
variables:
1717
DISTRO_VERSION:
1818
- "20.04"
19+
- "22.04"
1920
RUNTIME_VERSION:
21+
- "3.7"
2022
- "3.8"
2123
- "3.9"
2224
phases:

Diff for: tests/integration/docker/Dockerfile.echo.alpine

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ARG DISTRO_VERSION
44

55
# Stage 1 - bundle base image + runtime interface client
66
# Grab a fresh copy of the image and install GCC
7-
FROM python:${RUNTIME_VERSION}-alpine${DISTRO_VERSION} AS python-alpine
7+
FROM public.ecr.aws/docker/library/python:${RUNTIME_VERSION}-alpine${DISTRO_VERSION} AS python-alpine
88
# Install libstdc++
99
RUN apk add --no-cache \
1010
libstdc++

Diff for: tests/integration/docker/Dockerfile.echo.amazonlinux

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG DISTRO_VERSION
22
# Stage 1 - bundle base image + runtime interface client
33
# Grab a fresh copy of the image and install Python
4-
FROM amazonlinux:${DISTRO_VERSION} AS python-amazonlinux-builder
4+
FROM public.ecr.aws/amazonlinux/amazonlinux:${DISTRO_VERSION} AS python-amazonlinux-builder
55

66
ARG RUNTIME_VERSION
77

@@ -38,7 +38,7 @@ RUN RUNTIME_LATEST_VERSION=${RUNTIME_VERSION}.$(curl -s https://www.python.org/f
3838
&& ln -s /usr/local/bin/python${RUNTIME_VERSION} /usr/local/bin/python${RUNTIME_LATEST_VERSION}
3939

4040
# Stage 2 - clean python build dependencies
41-
FROM amazonlinux:${DISTRO_VERSION} AS python-amazonlinux
41+
FROM public.ecr.aws/amazonlinux/amazonlinux:${DISTRO_VERSION} AS python-amazonlinux
4242
RUN yum install -y \
4343
libffi-devel
4444

Diff for: tests/integration/docker/Dockerfile.echo.centos

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ARG DISTRO_VERSION
22

33
# Stage 1 - bundle base image + runtime interface client
44
# Grab a fresh copy of the image and install Python
5-
FROM centos:${DISTRO_VERSION} AS python-centos-builder
5+
FROM public.ecr.aws/docker/library/centos:${DISTRO_VERSION} AS python-centos-builder
66

77
ARG RUNTIME_VERSION
88

@@ -39,7 +39,7 @@ RUN RUNTIME_LATEST_VERSION=${RUNTIME_VERSION}.$(curl -s https://www.python.org/f
3939
&& ln -s /usr/local/bin/python${RUNTIME_VERSION} /usr/local/bin/python${RUNTIME_LATEST_VERSION}
4040

4141
# Stage 2 - clean python build dependencies
42-
FROM centos:${DISTRO_VERSION} AS python-centos
42+
FROM public.ecr.aws/docker/library/centos:${DISTRO_VERSION} AS python-centos
4343
RUN yum install -y \
4444
libffi-devel
4545

Diff for: tests/integration/docker/Dockerfile.echo.debian

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ARG RUNTIME_VERSION
22
ARG DISTRO_VERSION
33

44
# Stage 1 - build function and dependencies
5-
FROM python:${RUNTIME_VERSION}-${DISTRO_VERSION} AS python-debian-builder
5+
FROM public.ecr.aws/docker/library/python:${RUNTIME_VERSION}-${DISTRO_VERSION} AS python-debian-builder
66

77
# Install aws-lambda-cpp build dependencies
88
RUN apt-get update && \
@@ -40,8 +40,8 @@ RUN pip install \
4040

4141

4242
# Stage 2 - final runtime interface client image
43-
# Grab a fresh slim copy of the Node image
44-
FROM python:${RUNTIME_VERSION}-slim-${DISTRO_VERSION}
43+
# Grab a fresh slim copy of the Python image
44+
FROM public.ecr.aws/docker/library/python:${RUNTIME_VERSION}-slim-${DISTRO_VERSION}
4545

4646
# Include global arg in this stage of the build
4747
ARG FUNCTION_DIR="/home/app/"

Diff for: tests/integration/docker/Dockerfile.echo.ubuntu

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@ ARG DISTRO_VERSION
22

33
# Stage 1 - bundle base image + runtime interface client
44
# Grab a fresh copy of the image and install Python
5-
FROM ubuntu:${DISTRO_VERSION} AS python-image
5+
FROM public.ecr.aws/ubuntu/ubuntu:${DISTRO_VERSION} AS python-image
66

77
ENV DEBIAN_FRONTEND=noninteractive
88

99
ARG RUNTIME_VERSION
1010

1111
# Install python and pip
12+
RUN apt-get update && \
13+
apt-get install -y \
14+
software-properties-common
15+
RUN add-apt-repository ppa:deadsnakes/ppa
1216
RUN apt-get update && \
1317
apt-get install -y \
1418
curl \

0 commit comments

Comments
 (0)