view contrib/docker/pytype/Dockerfile @ 51919:ceaf92d6d380

tests: always access the mercurial repo through `helpers-testrepo.sh` In some contexts the mercurial repo needs to be accessed through system hg. That's what `helpers-testrepo.sh` enforces, but some tests incorrectly use the mercurial repo without going through that script. This patch fixes those tests.
author Arseniy Alekseyev <aalekseyev@janestreet.com>
date Wed, 02 Oct 2024 14:51:56 +0100
parents 81be242a1b5c
children
line wrap: on
line source

FROM registry.heptapod.net/mercurial/ci-images/mercurial-core:v2.1

USER ci-runner

ENV PATH=/home/ci-runner/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV PYTHONPATH=/home/ci-runner/.local/lib/python3.11/site-packages

RUN python3 -m pip install --user --break-system-packages --upgrade pytype==2023.11.21

ADD --chown=ci-runner entrypoint.sh /home/ci-runner/entrypoint.sh

RUN chmod -R a=rwX /home/ci-runner/.local/ /home/ci-runner/entrypoint.sh

CMD /home/ci-runner/entrypoint.sh