Skip to content

Commit

Permalink
pass CTF_API_SOCK to s2i
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Dowland <[email protected]>
  • Loading branch information
jmtd committed Nov 21, 2024
1 parent 8c6787a commit 5ca0444
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions steps/s2i_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}\
Expand Down

0 comments on commit 5ca0444

Please sign in to comment.