Skip to content

Commit

Permalink
Add comments to image spec definition
Browse files Browse the repository at this point in the history
  • Loading branch information
ppiegaze committed Jan 17, 2025
1 parent effc3d2 commit 8a6b3a1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions first-project/{{cookiecutter.project_name}}/src/tasks/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,26 @@
import union

image_spec = union.ImageSpec(

# The name of the image.
name="first-project-image",

# Use the `uv.lock` file in this project to define the dependencies included in the image.
requirements="uv.lock",

# The container registry to which the image will be pushed.
# Only used for Union BYOC. Not used for Union Serverless
# Uncomment this parameter if you are using Union BYOC.:
#
# * Substitute the actual name of the registry for <my-registry>.
# (for example if you are using GitHub's GHCR, you would use "ghcr.io/<my-github-org>").
#
# * Make sure you have Docker installed locally and are logged into that registry.
#
# * Make sure that the image, once pushed to the registry, is accessible to Union
# (for example, for GHCR, make sure the image is public).
#
# registry="<my-registry>"
)

@union.task(container_image=image_spec)
Expand Down

0 comments on commit 8a6b3a1

Please sign in to comment.