diff --git a/steps/s2i_steps.py b/steps/s2i_steps.py index d45ee70..610a4fd 100644 --- a/steps/s2i_steps.py +++ b/steps/s2i_steps.py @@ -40,11 +40,15 @@ def s2i_inner(context, application, path='.', env="", incremental=False, tag="ma assemble_user = labels.get("io.openshift.s2i.assemble-user", False) scripts_url = labels.get("io.openshift.s2i.scripts-url", False) + docker_url = os.environ.get("CTF_API_SOCK", 'unix://var/run/docker.sock') + with tempfile.TemporaryDirectory(prefix="behave-test-steps.") as workdir: dockerfile = os.path.join(workdir, "Dockerfile") # Perform S2I Dockerfile/source generation - command = f"""s2i build --loglevel=5 --pull-policy if-not-present\ + command = f"""s2i \ + --url {docker_url}\ + build --loglevel=5 --pull-policy if-not-present\ {mirror}\ --context-dir={path}\ -r={tag}\