Skip to content

Commit 5ca0444

Browse files
committed
pass CTF_API_SOCK to s2i
Signed-off-by: Jonathan Dowland <jdowland@redhat.com>
1 parent 8c6787a commit 5ca0444

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

steps/s2i_steps.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ def s2i_inner(context, application, path='.', env="", incremental=False, tag="ma
2929
mirror = "-e 'MAVEN_MIRROR_URL=%s'" % os.getenv("MAVEN_MIRROR_URL")
3030

3131
image_id = "integ-" + context.image
32+
docker_url = os.environ.get("CTF_API_SOCK", 'unix:///var/run/docker.sock')
3233

3334
command = f"""s2i build --loglevel=5 --pull-policy if-not-present\
35+
--url {docker_url}\
3436
{mirror}\
3537
--context-dir={path}\
3638
-r={tag}\

0 commit comments

Comments
 (0)