]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
teuthology/Dockerfile: add env setuptools-scm version
authorKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Wed, 28 May 2025 19:37:05 +0000 (21:37 +0200)
committerKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Wed, 22 Apr 2026 19:36:23 +0000 (21:36 +0200)
Because the teuthology code is building in container after
copying source code from local directory, but no corresponding
git repo copied, the setuptools-scm cannot determine teuthology
version. So in order to produce the package we just provide dummy
version 0.0.0 using environment variable:

  SETUPTOOLS_SCM_PRETEND_VERSION_FOR_TEUTHOLOGY

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@clyso.com>
containers/teuthology-dev/Dockerfile
docs/docker-compose/teuthology/Dockerfile

index 91fc942f66930eef8569b47a34cc42331f249546..16b365e5a99561dff9e91839822c96a37bfcb1da 100644 (file)
@@ -1,5 +1,6 @@
 FROM ubuntu:noble
 ENV DEBIAN_FRONTEND=noninteractive
+ENV SETUPTOOLS_SCM_PRETEND_VERSION_FOR_TEUTHOLOGY=0.0.0
 ENV LANG=C.UTF-8
 RUN apt-get update && \
     apt-get install -y \
index bc10925c0892ae58bcc71fdd8e7481b980b43441..8cc4f1753c12447c6fc53bafcc9e4daf64c5553b 100644 (file)
@@ -1,6 +1,7 @@
 FROM ubuntu:24.04
 ARG SSH_PRIVKEY_FILE=id_ed25519
 ENV DEBIAN_FRONTEND=noninteractive
+ENV SETUPTOOLS_SCM_PRETEND_VERSION_FOR_TEUTHOLOGY=0.0.0
 ENV LANG=C.UTF-8
 RUN apt-get update && \
     apt-get install -y \