Skip to content

Commit 114a03c

Browse files
committed
install python 3.12 in docker
Signed-off-by: Runji Wang <[email protected]>
1 parent b6e0d80 commit 114a03c

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

ci/Dockerfile

+7-1
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,16 @@ ENV LANG en_US.utf8
1111
# Use AWS ubuntu mirror
1212
RUN sed -i 's|http://archive.ubuntu.com/ubuntu|http://us-east-2.ec2.archive.ubuntu.com/ubuntu/|g' /etc/apt/sources.list
1313
RUN apt-get update -yy && \
14-
DEBIAN_FRONTEND=noninteractive apt-get -y install make build-essential cmake protobuf-compiler curl parallel python3 python3-pip \
14+
DEBIAN_FRONTEND=noninteractive apt-get -y install make build-essential cmake protobuf-compiler curl parallel python3 python3-pip software-properties-common \
1515
openssl libssl-dev libsasl2-dev libcurl4-openssl-dev pkg-config bash openjdk-11-jdk wget unzip git tmux lld postgresql-client kafkacat netcat mysql-client \
1616
maven zstd libzstd-dev locales -yy \
1717
&& rm -rf /var/lib/{apt,dpkg,cache,log}/
18+
# Install Python 3.12
19+
RUN add-apt-repository ppa:deadsnakes/ppa -y && \
20+
apt-get update -yy && \
21+
DEBIAN_FRONTEND=noninteractive apt-get install python3.12 python3.12-dev -yy && \
22+
rm -rf /var/lib/{apt,dpkg,cache,log}/
23+
ENV PYO3_PYTHON=python3.12
1824

1925
SHELL ["/bin/bash", "-c"]
2026

ci/build-ci-image.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ cat ../rust-toolchain
1010
# shellcheck disable=SC2155
1111

1212
# REMEMBER TO ALSO UPDATE ci/docker-compose.yml
13-
export BUILD_ENV_VERSION=v20240213
13+
export BUILD_ENV_VERSION=v20240223
1414

1515
export BUILD_TAG="public.ecr.aws/x5u3w5h6/rw-build-env:${BUILD_ENV_VERSION}"
1616

ci/docker-compose.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ services:
7171
retries: 5
7272

7373
source-test-env:
74-
image: public.ecr.aws/x5u3w5h6/rw-build-env:v20240213
74+
image: public.ecr.aws/x5u3w5h6/rw-build-env:v20240223
7575
depends_on:
7676
- mysql
7777
- db
@@ -81,7 +81,7 @@ services:
8181
- ..:/risingwave
8282

8383
sink-test-env:
84-
image: public.ecr.aws/x5u3w5h6/rw-build-env:v20240213
84+
image: public.ecr.aws/x5u3w5h6/rw-build-env:v20240223
8585
depends_on:
8686
- mysql
8787
- db
@@ -93,12 +93,12 @@ services:
9393
- ..:/risingwave
9494

9595
rw-build-env:
96-
image: public.ecr.aws/x5u3w5h6/rw-build-env:v20240213
96+
image: public.ecr.aws/x5u3w5h6/rw-build-env:v20240223
9797
volumes:
9898
- ..:/risingwave
9999

100100
ci-flamegraph-env:
101-
image: public.ecr.aws/x5u3w5h6/rw-build-env:v20240213
101+
image: public.ecr.aws/x5u3w5h6/rw-build-env:v20240223
102102
# NOTE(kwannoel): This is used in order to permit
103103
# syscalls for `nperf` (perf_event_open),
104104
# so it can do CPU profiling.
@@ -109,7 +109,7 @@ services:
109109
- ..:/risingwave
110110

111111
regress-test-env:
112-
image: public.ecr.aws/x5u3w5h6/rw-build-env:v20240213
112+
image: public.ecr.aws/x5u3w5h6/rw-build-env:v20240223
113113
depends_on:
114114
db:
115115
condition: service_healthy

0 commit comments

Comments
 (0)