]> 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)
committerZack Cerza <zack@cerza.org>
Fri, 7 Nov 2025 20:02:44 +0000 (13:02 -0700)
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 fe685cfed28ae18cbf54ac10b6ec0be7d205ccd2..010e1ff4ba4e08e7b343f95d13a6f93e7b2171af 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 d03cc0b2d77dcbe2ffe848ee305b6f95af18be71..e7729508f649448b61fff995810ae8927b315eb3 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 \