def build(ctx, nocache=False, push=False): """ Build the container image used for native openmpi """ shell_env = copy(environ) shell_env["DOCKER_BUILDKIT"] = "1" img_tag = get_docker_tag(OPENMPI_IMAGE_NAME) cmd = [ "docker", "build", "-f {}".format(OPENMPI_DOCKERFILE), "--no-cache" if nocache else "", "-t {}".format(img_tag), ".", ] cmd_str = " ".join(cmd) print(cmd_str) run(cmd_str, shell=True, check=True, cwd=PROJ_ROOT) if push: push_docker_image(img_tag)
def build(ctx, nocache=False, push=False): """ Build the container image used for makespan experiment """ shell_env = copy(environ) shell_env["DOCKER_BUILDKIT"] = "1" img_tag = get_docker_tag(MAKESPAN_IMAGE_NAME) cmd = [ "docker", "build", "-f {}".format(MAKESPAN_DOCKERFILE), "--no-cache" if nocache else "", "--build-arg EXPERIMENT_VERSION={}".format(get_version()), "-t {}".format(img_tag), ".", ] cmd_str = " ".join(cmd) print(cmd_str) run(cmd_str, shell=True, check=True, cwd=PROJ_ROOT) if push: push_docker_image(img_tag)
def push(ctx): """ Push the container image for native openmpi """ img_tag = get_docker_tag(OPENMPI_IMAGE_NAME) push_docker_image(img_tag)
def push(ctx): """ Push the makespan container image """ img_tag = get_docker_tag(MAKESPAN_IMAGE_NAME) push_docker_image(img_tag)
def push(ctx): """ Push the kernels container image """ img_tag = get_docker_tag(KERNELS_IMAGE_NAME) push_docker_image(img_tag)
def push(ctx): """ Push the LAMMPS container image """ img_tag = get_docker_tag(LAMMPS_IMAGE_NAME) push_docker_image(img_tag)