Skip to content

Commit

Permalink
docs: fix python syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Suraci <alex@dagger.io>
  • Loading branch information
vito committed Jul 18, 2023
1 parent b411f81 commit cdf22f7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ async def main():
# create Dagger client
async with dagger.Connection(dagger.Config(log_output=sys.stderr)) as client:
# create Redis service container
redis_srv = client.container()
redis_srv = (
client.container()
.from_("redis")
.with_exposed_port(6379)
.service([])
)

# create Redis client container
redis_cli = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ async def main():
# create Dagger client
async with dagger.Connection(dagger.Config(log_output=sys.stderr)) as client:
# create Redis service container
redis_srv = client.container()
redis_srv = (
client.container()
.from_("redis")
.with_exposed_port(6379)
.service([])
)

# create Redis client container
redis_cli = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ async def main():
# create Dagger client
async with dagger.Connection(dagger.Config(log_output=sys.stderr)) as client:
# create Redis service container
redis_srv = client.container()
redis_srv = (
client.container()
.from_("redis")
.with_exposed_port(6379)
.service([])
)

# create Redis client container
redis_cli = (
Expand Down

0 comments on commit cdf22f7

Please sign in to comment.