Skip to content

Commit 426c596

Browse files
committed
Dockefile: use base image 'ubuntu:latest' instead of focal
Default python version in focal is python3.8 which is breaking integration CI builds on t-api PRs with: `ERROR: Package 'teuthology-1.1.1.dev729-g861a8dcf' requires a different Python: 3.8.10 not in '>=3.10'` Recently, we upgraded the minimum teuthology version to support python3.10, which could be the reason of the above CI failures. Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
1 parent f0a9d59 commit 426c596

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
FROM ubuntu:focal
1+
FROM ubuntu:latest
22
ENV DEBIAN_FRONTEND=noninteractive
3+
ENV VENV=${VENV:-"venv"}
34
RUN apt-get update && \
45
apt-get install -y \
56
git \
@@ -21,7 +22,8 @@ RUN apt-get update && \
2122
COPY .teuthology.yaml /root
2223
WORKDIR /teuthology_api
2324
COPY . /teuthology_api/
24-
RUN pip3 install -e .
25+
RUN python3 -m venv .${VENV}
26+
RUN .${VENV}/bin/pip3 install -e .
2527
RUN mkdir /archive_dir/
2628

2729
CMD sh /teuthology_api/start_container.sh

0 commit comments

Comments
 (0)