Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blampe committed Dec 9, 2024
1 parent c7805c3 commit c958aef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions azure-py-appservice-docker/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions azure-py-containerapps/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
6 changes: 3 additions & 3 deletions docker-py-multi-container-app/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
)
Expand All @@ -44,4 +44,4 @@
opts=pulumi.ResourceOptions(depends_on=[redis_container])
)

pulumi.export("url", f"http://localhost:{app_port}")
pulumi.export("url", f"http://localhost:{app_port}")

0 comments on commit c958aef

Please sign in to comment.