Skip to content

Commit

Permalink
consolidate union templates into single one
Browse files Browse the repository at this point in the history
Signed-off-by: Peeter Piegaze <[email protected]>
  • Loading branch information
ppiegaze committed Jul 4, 2024
1 parent ee51f82 commit 5932327
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 318 deletions.
3 changes: 0 additions & 3 deletions basic-union-byoc-template/cookiecutter.json

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions basic-union-serverless-template/cookiecutter.json

This file was deleted.

201 changes: 0 additions & 201 deletions basic-union-serverless-template/{{cookiecutter.project_name}}/LICENSE

This file was deleted.

This file was deleted.

This file was deleted.

Empty file.

This file was deleted.

3 changes: 3 additions & 0 deletions basic-union-template/cookiecutter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"project_name": "Basic Union template"
}
3 changes: 3 additions & 0 deletions basic-union-template/{{cookiecutter.project_name}}/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# {{ cookiecutter.project_name }}

A basic code template for Union.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
unionai
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""Basic Union BYOC workflow template."""
"""Basic Union workflow template."""

from unionai import task, workflow, ImageSpec

# ImageSpec defines the container image used for the Kubernetes pods that run the tasks in Union.
image_spec = ImageSpec(

# The name of the image
name="basic-union-byoc-image",
name="basic-union-image",

# The base image on which this image is based
base_image="ghcr.io/flyteorg/flytekit:py3.11-latest",
Expand All @@ -15,16 +15,23 @@
requirements="requirements.txt",

# Container registry to which the image will be pushed.
#
# ON UNION BYOC UNCOMMENT THIS PARAMETER!
#
# Make sure that:
#
# * You subsitutue the actual name of the registry here.
# If you are using GHCR, substitute <my-github-org> with your github org name.
# * You have Docker installed locally and are logged into this registry.
# (for example if you are using GitHub's GHCR, you would
# use "https://ghcr.io/<your-github-org>").
#
# * You have Docker installed locally and are logged into the registry.
#
# * The image, once pushed to the registry, is accessible to Union
# (for example, for GHCR, make sure the image is public)
#
# Only needed for BYOC.
# On Serverless, images are stored in Union's own container registry.
registry="ghcr.io/<my-github-org>"
# This parameter is only needed for BYOC. On Serverless, images are stored
# transparently in Union's own container registry.
# registry="<my-registry>"

# Python version of the image. Use default python in the base image if None.
# python_version="3.11"
Expand Down

0 comments on commit 5932327

Please sign in to comment.