From c958aeff218695900174ed6594efe97fee44de24 Mon Sep 17 00:00:00 2001 From: Bryce Lampe Date: Mon, 9 Dec 2024 09:24:35 -0800 Subject: [PATCH] fix tests --- azure-py-appservice-docker/__main__.py | 4 ++-- azure-py-containerapps/__main__.py | 4 ++-- docker-py-multi-container-app/__main__.py | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/azure-py-appservice-docker/__main__.py b/azure-py-appservice-docker/__main__.py index 1ab6652cf..eed5255b3 100644 --- a/azure-py-appservice-docker/__main__.py +++ b/azure-py-appservice-docker/__main__.py @@ -67,8 +67,8 @@ custom_image, image_name=registry.login_server.apply( lambda login_server: f"{login_server}/{custom_image}:v1.0.0"), - build=docker.DockerBuild(context=f"./{custom_image}"), - registry=docker.ImageRegistry( + build=docker.DockerBuildArgs(context=f"./{custom_image}"), + registry=docker.RegistryArgs( server=registry.login_server, username=admin_username, password=admin_password diff --git a/azure-py-containerapps/__main__.py b/azure-py-containerapps/__main__.py index 5075c0c48..400805e86 100644 --- a/azure-py-containerapps/__main__.py +++ b/azure-py-containerapps/__main__.py @@ -44,8 +44,8 @@ my_image = docker.Image(custom_image, image_name=registry.login_server.apply( lambda login_server: f"{login_server}/{custom_image}:v1.0.0"), - build=docker.DockerBuild(context=f"./{custom_image}"), - registry=docker.ImageRegistry( + build=docker.DockerBuildArgs(context=f"./{custom_image}"), + registry=docker.RegistryArgs( server=registry.login_server, username=admin_username, password=admin_password)) diff --git a/docker-py-multi-container-app/__main__.py b/docker-py-multi-container-app/__main__.py index b6f4c72bd..a302a1e4c 100644 --- a/docker-py-multi-container-app/__main__.py +++ b/docker-py-multi-container-app/__main__.py @@ -15,7 +15,7 @@ keep_locally=True) redis_container = docker.Container("redis_container", - image=redis_image.latest, + image=redis_image.name, ports=[docker.ContainerPortArgs(internal=redis_port, external=redis_port)], networks_advanced=[docker.ContainerNetworksAdvancedArgs( name=network.name, @@ -24,7 +24,7 @@ ) app_image = docker.Image("app_image", - build=docker.DockerBuild(context="./app"), + build=docker.DockerBuildArgs(context="./app"), image_name="app", skip_push=True ) @@ -44,4 +44,4 @@ opts=pulumi.ResourceOptions(depends_on=[redis_container]) ) -pulumi.export("url", f"http://localhost:{app_port}") \ No newline at end of file +pulumi.export("url", f"http://localhost:{app_port}")