From 6926df42a83f1542e7bf939933745d96448867f6 Mon Sep 17 00:00:00 2001 From: nikki everett Date: Fri, 8 Dec 2023 14:45:03 -0600 Subject: [PATCH] rename simple example Signed-off-by: nikki everett --- .../cookiecutter.json | 0 .../{{cookiecutter.project_name}}/.gitignore | 0 .../{{cookiecutter.project_name}}/Dockerfile | 0 .../{{cookiecutter.project_name}}/LICENSE | 0 .../{{cookiecutter.project_name}}/README.md | 0 .../{{cookiecutter.project_name}}/docker_build.sh | 0 .../{{cookiecutter.project_name}}/requirements.txt | 0 .../{{cookiecutter.project_name}}/workflows/__init__.py | 0 .../{{cookiecutter.project_name}}/workflows/example.py | 4 ++-- templates.json | 2 +- 10 files changed, 3 insertions(+), 3 deletions(-) rename {simple-example => basic-example-dockerfile}/cookiecutter.json (100%) rename {simple-example => basic-example-dockerfile}/{{cookiecutter.project_name}}/.gitignore (100%) rename {simple-example => basic-example-dockerfile}/{{cookiecutter.project_name}}/Dockerfile (100%) rename {simple-example => basic-example-dockerfile}/{{cookiecutter.project_name}}/LICENSE (100%) rename {simple-example => basic-example-dockerfile}/{{cookiecutter.project_name}}/README.md (100%) rename {simple-example => basic-example-dockerfile}/{{cookiecutter.project_name}}/docker_build.sh (100%) rename {simple-example => basic-example-dockerfile}/{{cookiecutter.project_name}}/requirements.txt (100%) rename {simple-example => basic-example-dockerfile}/{{cookiecutter.project_name}}/workflows/__init__.py (100%) rename {simple-example => basic-example-dockerfile}/{{cookiecutter.project_name}}/workflows/example.py (95%) diff --git a/simple-example/cookiecutter.json b/basic-example-dockerfile/cookiecutter.json similarity index 100% rename from simple-example/cookiecutter.json rename to basic-example-dockerfile/cookiecutter.json diff --git a/simple-example/{{cookiecutter.project_name}}/.gitignore b/basic-example-dockerfile/{{cookiecutter.project_name}}/.gitignore similarity index 100% rename from simple-example/{{cookiecutter.project_name}}/.gitignore rename to basic-example-dockerfile/{{cookiecutter.project_name}}/.gitignore diff --git a/simple-example/{{cookiecutter.project_name}}/Dockerfile b/basic-example-dockerfile/{{cookiecutter.project_name}}/Dockerfile similarity index 100% rename from simple-example/{{cookiecutter.project_name}}/Dockerfile rename to basic-example-dockerfile/{{cookiecutter.project_name}}/Dockerfile diff --git a/simple-example/{{cookiecutter.project_name}}/LICENSE b/basic-example-dockerfile/{{cookiecutter.project_name}}/LICENSE similarity index 100% rename from simple-example/{{cookiecutter.project_name}}/LICENSE rename to basic-example-dockerfile/{{cookiecutter.project_name}}/LICENSE diff --git a/simple-example/{{cookiecutter.project_name}}/README.md b/basic-example-dockerfile/{{cookiecutter.project_name}}/README.md similarity index 100% rename from simple-example/{{cookiecutter.project_name}}/README.md rename to basic-example-dockerfile/{{cookiecutter.project_name}}/README.md diff --git a/simple-example/{{cookiecutter.project_name}}/docker_build.sh b/basic-example-dockerfile/{{cookiecutter.project_name}}/docker_build.sh similarity index 100% rename from simple-example/{{cookiecutter.project_name}}/docker_build.sh rename to basic-example-dockerfile/{{cookiecutter.project_name}}/docker_build.sh diff --git a/simple-example/{{cookiecutter.project_name}}/requirements.txt b/basic-example-dockerfile/{{cookiecutter.project_name}}/requirements.txt similarity index 100% rename from simple-example/{{cookiecutter.project_name}}/requirements.txt rename to basic-example-dockerfile/{{cookiecutter.project_name}}/requirements.txt diff --git a/simple-example/{{cookiecutter.project_name}}/workflows/__init__.py b/basic-example-dockerfile/{{cookiecutter.project_name}}/workflows/__init__.py similarity index 100% rename from simple-example/{{cookiecutter.project_name}}/workflows/__init__.py rename to basic-example-dockerfile/{{cookiecutter.project_name}}/workflows/__init__.py diff --git a/simple-example/{{cookiecutter.project_name}}/workflows/example.py b/basic-example-dockerfile/{{cookiecutter.project_name}}/workflows/example.py similarity index 95% rename from simple-example/{{cookiecutter.project_name}}/workflows/example.py rename to basic-example-dockerfile/{{cookiecutter.project_name}}/workflows/example.py index 1a01fb6..88c5be1 100644 --- a/simple-example/{{cookiecutter.project_name}}/workflows/example.py +++ b/basic-example-dockerfile/{{cookiecutter.project_name}}/workflows/example.py @@ -1,4 +1,4 @@ -"""A simple Flyte example.""" +"""A basic Flyte example.""" import typing from flytekit import task, workflow @@ -6,7 +6,7 @@ @task def say_hello(name: str) -> str: - """A simple Flyte task to say "hello". + """A Flyte task to say "hello". The @task decorator allows Flyte to use this function as a Flyte task, which is executed as an isolated, containerized unit of compute. diff --git a/templates.json b/templates.json index 2db58ea..a50851c 100644 --- a/templates.json +++ b/templates.json @@ -1,7 +1,7 @@ [ {"template_name": "mnist-training", "workflow_name": "mnist_workflow_cpu"}, {"template_name": "mnist-training", "workflow_name": "mnist_workflow_gpu"}, - {"template_name": "simple-example", "workflow_name": "wf"}, + {"template_name": "basic-example-dockerfile", "workflow_name": "wf"}, {"template_name": "wine-classification", "workflow_name": "training_workflow"}, {"template_name": "basic-example-imagespec", "workflow_name": "wf"} ]