Skip to content

Commit

Permalink
Update documentation (#133)
Browse files Browse the repository at this point in the history
Signed-off-by: Flyte-Bot <[email protected]>

Co-authored-by: pmahindrakar-oss <[email protected]>
  • Loading branch information
flyte-bot and pmahindrakar-oss authored Jul 8, 2021
1 parent 5c71337 commit bb62255
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 17 deletions.
2 changes: 1 addition & 1 deletion flytectl/docs/source/gen/flytectl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ SEE ALSO
* :doc:`flytectl_delete` - Used for terminating/deleting various flyte resources including tasks/workflows/launchplans/executions/project.
* :doc:`flytectl_get` - Used for fetching various flyte resources including tasks/workflows/launchplans/executions/project.
* :doc:`flytectl_register` - Registers tasks/workflows/launchplans from list of generated serialized files.
* :doc:`flytectl_sandbox` - Used for testing flyte sandbox.
* :doc:`flytectl_sandbox` - Used for sandbox interactions like start/teardown/status/exec.
* :doc:`flytectl_update` - Used for updating flyte resources eg: project.
* :doc:`flytectl_version` - Used for fetching flyte version

23 changes: 18 additions & 5 deletions flytectl/docs/source/gen/flytectl_sandbox.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,36 @@
flytectl sandbox
----------------

Used for testing flyte sandbox.
Used for sandbox interactions like start/teardown/status/exec.

Synopsis
~~~~~~~~



Example Create sandbox cluster.
The Flyte Sandbox is a fully standalone minimal environment for running Flyte. provides a simplified way of running flyte-sandbox as a single Docker container running locally.

Create sandbox cluster.
::

bin/flytectl sandbox start
Example Remove sandbox cluster.
Remove sandbox cluster.
::

bin/flytectl sandbox teardown

Check status of sandbox container.
::

bin/flytectl sandbox status
Execute command inside sandbox container.
::

bin/flytectl sandbox exec -- pwd


Options
Expand All @@ -43,8 +56,8 @@ SEE ALSO
~~~~~~~~

* :doc:`flytectl` - flyetcl CLI tool
* :doc:`flytectl_sandbox_exec` - Execute any command in sandbox
* :doc:`flytectl_sandbox_start` - Start the flyte sandbox
* :doc:`flytectl_sandbox_exec` - Execute non-interactive command inside the sandbox container
* :doc:`flytectl_sandbox_start` - Start the flyte sandbox cluster
* :doc:`flytectl_sandbox_status` - Get the status of the sandbox environment.
* :doc:`flytectl_sandbox_teardown` - Teardown will cleanup the sandbox environment

6 changes: 3 additions & 3 deletions flytectl/docs/source/gen/flytectl_sandbox_exec.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
flytectl sandbox exec
---------------------

Execute any command in sandbox
Execute non-interactive command inside the sandbox container

Synopsis
~~~~~~~~



Execute command will Will run non-interactive commands and return immediately with the output.
Execute command will run non-interactive command inside the sandbox container and return immediately with the output.By default flytectl exec in /root directory inside the sandbox container

::
bin/flytectl sandbox exec -- ls -al
Expand Down Expand Up @@ -42,5 +42,5 @@ Options inherited from parent commands
SEE ALSO
~~~~~~~~

* :doc:`flytectl_sandbox` - Used for testing flyte sandbox.
* :doc:`flytectl_sandbox` - Used for sandbox interactions like start/teardown/status/exec.

12 changes: 7 additions & 5 deletions flytectl/docs/source/gen/flytectl_sandbox_start.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,24 @@
flytectl sandbox start
----------------------

Start the flyte sandbox
Start the flyte sandbox cluster

Synopsis
~~~~~~~~



Start will run the flyte sandbox cluster inside a docker container and setup the config that is required
The Flyte Sandbox is a fully standalone minimal environment for running Flyte. provides a simplified way of running flyte-sandbox as a single Docker container running locally.

Start sandbox cluster without any source code
::

bin/flytectl sandbox start
Mount your flytesnacks repository code inside sandbox
Mount your source code repository inside sandbox
::

bin/flytectl sandbox start --sourcesPath=$HOME/flyteorg/flytesnacks
bin/flytectl sandbox start --source=$HOME/flyteorg/flytesnacks

Usage

Expand Down Expand Up @@ -48,5 +50,5 @@ Options inherited from parent commands
SEE ALSO
~~~~~~~~

* :doc:`flytectl_sandbox` - Used for testing flyte sandbox.
* :doc:`flytectl_sandbox` - Used for sandbox interactions like start/teardown/status/exec.

2 changes: 1 addition & 1 deletion flytectl/docs/source/gen/flytectl_sandbox_status.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ Options inherited from parent commands
SEE ALSO
~~~~~~~~

* :doc:`flytectl_sandbox` - Used for testing flyte sandbox.
* :doc:`flytectl_sandbox` - Used for sandbox interactions like start/teardown/status/exec.

4 changes: 2 additions & 2 deletions flytectl/docs/source/gen/flytectl_sandbox_teardown.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Synopsis



Teardown will remove docker container and all the flyte config
Teardown will remove sandbox cluster and all the flyte config created by sandbox start
::

bin/flytectl sandbox teardown
Expand Down Expand Up @@ -43,5 +43,5 @@ Options inherited from parent commands
SEE ALSO
~~~~~~~~

* :doc:`flytectl_sandbox` - Used for testing flyte sandbox.
* :doc:`flytectl_sandbox` - Used for sandbox interactions like start/teardown/status/exec.

0 comments on commit bb62255

Please sign in to comment.