Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 3 additions & 22 deletions taskcluster/docker/python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,17 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

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

VOLUME /builds/worker/checkouts
VOLUME /builds/worker/.task-cache/uv

# Add worker user
RUN mkdir -p /builds && \
useradd -d /builds/worker -s /bin/bash -m worker && \
mkdir /builds/worker/artifacts && \
chown -R worker:worker /builds/worker

# %include-run-task

RUN apt-get update \
&& apt-get install -y --reinstall ca-certificates \
&& apt-get install -y --force-yes --no-install-recommends \
build-essential \
mercurial \
git
build-essential

ENV PATH=/builds/worker/.local/bin:$PATH

ENV SHELL=/bin/bash \
HOME=/builds/worker \
PATH=/builds/worker/.local/bin:$PATH

# %ARG UV_VERSION
COPY --from=ghcr.io/astral-sh/uv:$UV_VERSION /uv /bin/uv
# %ARG PYTHON_VERSIONS
RUN uv python install $PYTHON_VERSIONS

# Set a default command useful for debugging
CMD ["/bin/bash", "--login"]
7 changes: 2 additions & 5 deletions taskcluster/kinds/docker-image/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
meta:
- &uv_version 0.9.3

loader: taskgraph.loader.transform:loader

transforms:
Expand All @@ -28,12 +25,12 @@ tasks:
symbol: I(idx)
python:
symbol: I(py)
parent: run-task
args:
PYTHON_VERSIONS: "3.14t 3.14 3.13 3.12 3.11 3.10 3.9"
UV_VERSION: *uv_version
run-task:
symbol: I(rt)
args:
UV_VERSION: *uv_version
UV_VERSION: "0.9.3"
skopeo:
symbol: I(skopeo)
Loading