Mercurial > evolve
annotate contrib/docker/pytype/Dockerfile @ 6826:72d311b8258d
tests: remove (esc) when it's not needed in test-namespaces.t
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sun, 25 Feb 2024 17:53:00 -0300 |
parents | 9c329a7a5922 |
children |
rev | line source |
---|---|
6649
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
1 FROM registry.heptapod.net/mercurial/ci-images/py3-hgext3rd:v2.0 |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
2 |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
3 USER ci-runner |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
4 |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
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 |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
6 ENV PYTHONPATH=/home/ci-runner/.local/lib/python3.11/site-packages |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
7 |
6650
9c329a7a5922
ci: install the newest pytype to date (2024.1.5)
Anton Shestakov <av6@dwimlabs.net>
parents:
6649
diff
changeset
|
8 RUN python3 -m pip install --user --break-system-packages --upgrade pytype==2024.1.5 |
6649
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
9 |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
10 ADD --chown=ci-runner entrypoint.sh /home/ci-runner/entrypoint.sh |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
11 |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
12 RUN chmod -R a=rwX /home/ci-runner/.local/ /home/ci-runner/entrypoint.sh |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
13 |
da3fd8644ad9
contrib: add a Dockerfile to run pytype using our CI setup locally
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
14 CMD /home/ci-runner/entrypoint.sh |