Skip to content

Commit

Permalink
Merge pull request #37 from OferMania/92
Browse files Browse the repository at this point in the history
AUE-92: Adds ability to use prebuilt ramcloud-test docker image
  • Loading branch information
OferMania authored Jul 28, 2021
2 parents a9f7f6c + d41a801 commit 315b5f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions testing/cluster_test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ def ensemble_servers_string(ensemble):
return ' '.join(['server.{}={}:2888:3888;2181'.format(zkid, ip) for (zkid, ip) in list(ensemble.items())])

def get_node_image():
existing_images = docker_client.images.list(name="ramcloud-test")
if (len(existing_images) > 0):
logger.info('Found existing ramcloud-test image, using that...')
return existing_images[0]
logger.info('Building ramcloud-test-node image...')
node_image = docker_client.images.build(path='/src',
dockerfile='/src/config/Dockerfile.node',
Expand Down

0 comments on commit 315b5f9

Please sign in to comment.