Skip to content

Commit

Permalink
Fix docker run
Browse files Browse the repository at this point in the history
Signed-off-by: payalcha <[email protected]>
  • Loading branch information
payalcha committed Feb 19, 2025
1 parent 467b573 commit f4d929d
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions tests/end_to_end/utils/docker_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,22 +212,4 @@ def stop_start_docker_participant(participant, action):
log.debug(f"Docker {action} successful for {container.name}")
container_names.append(container.name)

return True


def build_docker_image(image_name, dockerfile_path):
"""
Build a docker image.
Args:
image_name (str): Name of the image to build
dockerfile_path (str): Path to the Dockerfile
"""
client = get_docker_client()
log.info(f"Building docker image {image_name}")

try:
image, _ = client.images.build(path=".", dockerfile=dockerfile_path, tag=image_name)
log.info(f"Image {image_name} built successfully")
return image
except Exception as e:
raise ex.DockerException(f"Error building docker image: {e}")
return True

0 comments on commit f4d929d

Please sign in to comment.