From 5ca044443d917fb6a88f7f4b2a932fc4e03797a5 Mon Sep 17 00:00:00 2001 From: Jonathan Dowland Date: Thu, 21 Nov 2024 16:10:28 +0000 Subject: [PATCH] pass CTF_API_SOCK to s2i Signed-off-by: Jonathan Dowland --- steps/s2i_steps.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/steps/s2i_steps.py b/steps/s2i_steps.py index e6a7dd5..e7891ea 100644 --- a/steps/s2i_steps.py +++ b/steps/s2i_steps.py @@ -29,8 +29,10 @@ def s2i_inner(context, application, path='.', env="", incremental=False, tag="ma mirror = "-e 'MAVEN_MIRROR_URL=%s'" % os.getenv("MAVEN_MIRROR_URL") image_id = "integ-" + context.image + docker_url = os.environ.get("CTF_API_SOCK", 'unix:///var/run/docker.sock') command = f"""s2i build --loglevel=5 --pull-policy if-not-present\ + --url {docker_url}\ {mirror}\ --context-dir={path}\ -r={tag}\