Skip to content

Commit 83451ea

Browse files
Kyr Shatskyyzmc
authored andcommitted
teuthology/Dockerfile: add env setuptools-scm version
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>
1 parent baef78e commit 83451ea

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

containers/teuthology-dev/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
FROM ubuntu:noble
22
ENV DEBIAN_FRONTEND=noninteractive
3+
ENV SETUPTOOLS_SCM_PRETEND_VERSION_FOR_TEUTHOLOGY=0.0.0
34
ENV LANG=C.UTF-8
45
RUN apt-get update && \
56
apt-get install -y \

docs/docker-compose/teuthology/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM ubuntu:24.04
22
ARG SSH_PRIVKEY_FILE=id_ed25519
33
ENV DEBIAN_FRONTEND=noninteractive
4+
ENV SETUPTOOLS_SCM_PRETEND_VERSION_FOR_TEUTHOLOGY=0.0.0
45
ENV LANG=C.UTF-8
56
RUN apt-get update && \
67
apt-get install -y \

0 commit comments

Comments
 (0)