Skip to content

Commit b44ae16

Browse files
author
Alexander Smirnov
committed
fix SSL errors in AmazonLinux
1 parent f184ef4 commit b44ae16

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

tests/integration/codebuild/buildspec.os.ubuntu.yml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ batch:
1717
DISTRO_VERSION:
1818
- "20.04"
1919
- "22.04"
20+
- "24.04"
2021
RUNTIME_VERSION:
2122
- "3.9"
2223
- "3.10"

tests/integration/docker/Dockerfile.echo.amazonlinux

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ RUN yum install -y \
1717
freetype-devel \
1818
yum-utils \
1919
findutils \
20-
openssl-devel \
2120
wget \
21+
openssl11 \
22+
openssl11-devel \
23+
bzip2-devel \
2224
libffi-devel \
2325
sqlite-devel
2426

tests/integration/docker/Dockerfile.echo.ubuntu

+9-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,15 @@ RUN add-apt-repository ppa:deadsnakes/ppa
1616
RUN apt-get update && \
1717
apt-get install -y \
1818
curl \
19-
python${RUNTIME_VERSION} \
20-
python${RUNTIME_VERSION}-distutils
19+
python${RUNTIME_VERSION}
20+
21+
# specific distutils package name for ubuntu24.04
22+
RUN if [ ${RUNTIME_VERSION} == "3.12" ] && [ ${DISTRO_VERSION} == "24.04" ];
23+
then \
24+
apt-get install -y python3-distutils-extra \
25+
else \
26+
apt-get install -y python${RUNTIME_VERSION}-distutils \
27+
fi
2128

2229
RUN ln -s /usr/bin/python${RUNTIME_VERSION} /usr/local/bin/python3
2330

0 commit comments

Comments
 (0)