Skip to content

Commit b950c5a

Browse files
committed
ci: layer the python docker image on top of run-task
1 parent 87d3550 commit b950c5a

File tree

2 files changed

+4
-23
lines changed

2 files changed

+4
-23
lines changed

taskcluster/docker/python/Dockerfile

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,17 @@
22
# License, v. 2.0. If a copy of the MPL was not distributed with this
33
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
44

5-
FROM debian:bookworm-slim
5+
FROM $DOCKER_IMAGE_PARENT
66
LABEL maintainer="Release Engineering <release@mozilla.com>"
77

88
VOLUME /builds/worker/checkouts
99
VOLUME /builds/worker/.task-cache/uv
1010

11-
# Add worker user
12-
RUN mkdir -p /builds && \
13-
useradd -d /builds/worker -s /bin/bash -m worker && \
14-
mkdir /builds/worker/artifacts && \
15-
chown -R worker:worker /builds/worker
16-
17-
# %include-run-task
18-
1911
RUN apt-get update \
20-
&& apt-get install -y --reinstall ca-certificates \
2112
&& apt-get install -y --force-yes --no-install-recommends \
22-
build-essential \
23-
mercurial \
24-
git
13+
build-essential
2514

15+
ENV PATH=/builds/worker/.local/bin:$PATH
2616

27-
ENV SHELL=/bin/bash \
28-
HOME=/builds/worker \
29-
PATH=/builds/worker/.local/bin:$PATH
30-
31-
# %ARG UV_VERSION
32-
COPY --from=ghcr.io/astral-sh/uv:$UV_VERSION /uv /bin/uv
3317
# %ARG PYTHON_VERSIONS
3418
RUN uv python install $PYTHON_VERSIONS
35-
36-
# Set a default command useful for debugging
37-
CMD ["/bin/bash", "--login"]

taskcluster/kinds/docker-image/kind.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ tasks:
2828
symbol: I(idx)
2929
python:
3030
symbol: I(py)
31+
parent: run-task
3132
args:
3233
PYTHON_VERSIONS: "3.14t 3.14 3.13 3.12 3.11 3.10 3.9"
33-
UV_VERSION: *uv_version
3434
run-task:
3535
symbol: I(rt)
3636
args:

0 commit comments

Comments
 (0)