-
Notifications
You must be signed in to change notification settings - Fork 702
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update docs theme Signed-off-by: cosmicBboy <niels.bantilan@gmail.com> * remove sphinx material and readthedocs search Signed-off-by: cosmicBboy <niels.bantilan@gmail.com> * update flytekit link Signed-off-by: cosmicBboy <niels.bantilan@gmail.com> * update Signed-off-by: cosmicBboy <niels.bantilan@gmail.com> * add readthedocs sphinx search Signed-off-by: cosmicBboy <niels.bantilan@gmail.com> * update community link Signed-off-by: cosmicBboy <niels.bantilan@gmail.com> Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com>
- Loading branch information
1 parent
da88980
commit de34713
Showing
11 changed files
with
182 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
h1, h2, h3, h4, h5, h6 { | ||
font-weight: bold; | ||
} | ||
|
||
.sidebar-logo { | ||
max-width: 30%; | ||
} | ||
|
||
.sidebar-tree .reference.external:after { | ||
content: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
.. _gettingstarted: | ||
|
||
Getting started | ||
--------------- | ||
|
||
.. rubric:: Estimated time: 3 minutes | ||
|
||
Prerequisites | ||
############# | ||
|
||
Make sure you have `docker installed <https://docs.docker.com/get-docker/>`__ and `git <https://git-scm.com/>`__ installed, then install flytekit: | ||
|
||
.. prompt:: bash | ||
|
||
pip install flytekit | ||
|
||
Clone the `flytekit-python-template <https://github.com/flyteorg/flytekit-python-template>`__ repo to create our own git repository called ``flyteexamples``: | ||
|
||
.. prompt:: bash | ||
|
||
git clone git@github.com:flyteorg/flytekit-python-template.git flyteexamples | ||
cd flyteexamples | ||
|
||
|
||
Write Your First Flyte Workflow | ||
############################### | ||
|
||
|
||
Let's take a look at the example workflow in `myapp/workflows/example.py <https://github.com/flyteorg/flytekit-python-template/blob/main/myapp/workflows/example.py>`__: | ||
|
||
.. rli:: https://raw.githubusercontent.com/flyteorg/flytekit-python-template/main/myapp/workflows/example.py | ||
:language: python | ||
|
||
As you can see, a Flyte :std:doc:`task <generated/flytekit.task>` is the most basic unit of work in Flyte, | ||
and you can compose multiple tasks into a :std:doc:`workflow <generated/flytekit.workflow>`. Try running and | ||
modifying the ``example.py`` script locally. | ||
|
||
Start a Local Flyte Backend | ||
########################### | ||
|
||
Once you're happy with the ``example.py`` script, run the following command in your terminal: | ||
|
||
.. prompt:: bash | ||
|
||
docker run --rm --privileged -p 30081:30081 -p 30082:30082 -p 30084:30084 ghcr.io/flyteorg/flyte-sandbox | ||
|
||
When you see the message ``Flyte is ready!``, your local sandbox should be ready on http://localhost:30081/console. | ||
|
||
Register Your Workflows | ||
########################### | ||
|
||
Now we're ready to ship your code to the Flyte backend by running the following command: | ||
|
||
.. prompt:: bash | ||
|
||
FLYTE_AWS_ENDPOINT=http://localhost:30084/ FLYTE_AWS_ACCESS_KEY_ID=minio FLYTE_AWS_SECRET_ACCESS_KEY=miniostorage make fast_register | ||
|
||
Run Your Workflows | ||
################## | ||
|
||
To run a workflow, go to http://localhost:30081/console/projects/flyteexamples/workflows and then follow these steps: | ||
|
||
1. Select the ``hello_world`` workflow | ||
2. Click the **Launch Workflow** button in the upper right corner | ||
3. Update the ``name`` input argument | ||
4. Proceed to **Launch** to trigger an execution | ||
|
||
.. rubric:: 🎉 Congratulations, you just ran your first Flyte workflow 🎉 | ||
|
||
|
||
Next Steps: Tutorials | ||
##################### | ||
|
||
To experience the full capabilities of Flyte, try out the `Flytekit Tutorials <https://flytecookbook.readthedocs.io/en/latest/>`__ 🛫 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.