Skip to content

Commit 8a6b3a1

Browse files
committed
Add comments to image spec definition
1 parent effc3d2 commit 8a6b3a1

File tree

1 file changed

+18
-0
lines changed
  • first-project/{{cookiecutter.project_name}}/src/tasks

1 file changed

+18
-0
lines changed

first-project/{{cookiecutter.project_name}}/src/tasks/tasks.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,26 @@
33
import union
44

55
image_spec = union.ImageSpec(
6+
7+
# The name of the image.
68
name="first-project-image",
9+
10+
# Use the `uv.lock` file in this project to define the dependencies included in the image.
711
requirements="uv.lock",
12+
13+
# The container registry to which the image will be pushed.
14+
# Only used for Union BYOC. Not used for Union Serverless
15+
# Uncomment this parameter if you are using Union BYOC.:
16+
#
17+
# * Substitute the actual name of the registry for <my-registry>.
18+
# (for example if you are using GitHub's GHCR, you would use "ghcr.io/<my-github-org>").
19+
#
20+
# * Make sure you have Docker installed locally and are logged into that registry.
21+
#
22+
# * Make sure that the image, once pushed to the registry, is accessible to Union
23+
# (for example, for GHCR, make sure the image is public).
24+
#
25+
# registry="<my-registry>"
826
)
927

1028
@union.task(container_image=image_spec)

0 commit comments

Comments
 (0)