annotate contrib/docker/pytype/Dockerfile @ 52315:d49144a1422f default tip

run-tests: refactor the HGPORT handling code to use a constant for the max val Simple enough, and then we don't need comments to cross-reference other areas of code that need to be kept in sync. Since the `_getreplacements()` list is now partially dynamically generated and needed to change anyway, also move the one line that was being appended separately to the list for some reason, for clarity.
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 21 Nov 2024 01:07:47 -0500
parents 81be242a1b5c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
51763
81be242a1b5c docker-pytype: use version v2.1 of the CI image
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 51307
diff changeset
1 FROM registry.heptapod.net/mercurial/ci-images/mercurial-core:v2.1
51307
87bfd1703597 contrib: add a set of scripts to run pytype in Docker
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
2
87bfd1703597 contrib: add a set of scripts to run pytype in Docker
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
3 USER ci-runner
87bfd1703597 contrib: add a set of scripts to run pytype in Docker
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
4
87bfd1703597 contrib: add a set of scripts to run pytype in Docker
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
5 ENV PATH=/home/ci-runner/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
87bfd1703597 contrib: add a set of scripts to run pytype in Docker
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
6 ENV PYTHONPATH=/home/ci-runner/.local/lib/python3.11/site-packages
87bfd1703597 contrib: add a set of scripts to run pytype in Docker
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
7
87bfd1703597 contrib: add a set of scripts to run pytype in Docker
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
8 RUN python3 -m pip install --user --break-system-packages --upgrade pytype==2023.11.21
87bfd1703597 contrib: add a set of scripts to run pytype in Docker
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
9
87bfd1703597 contrib: add a set of scripts to run pytype in Docker
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
10 ADD --chown=ci-runner entrypoint.sh /home/ci-runner/entrypoint.sh
87bfd1703597 contrib: add a set of scripts to run pytype in Docker
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
11
87bfd1703597 contrib: add a set of scripts to run pytype in Docker
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
12 RUN chmod -R a=rwX /home/ci-runner/.local/ /home/ci-runner/entrypoint.sh
87bfd1703597 contrib: add a set of scripts to run pytype in Docker
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
13
87bfd1703597 contrib: add a set of scripts to run pytype in Docker
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
14 CMD /home/ci-runner/entrypoint.sh