Skip to content

Commit

Permalink
Merge pull request #21 from Eventual-Inc/docs/iam-instance-profile-arn
Browse files Browse the repository at this point in the history
[Docs] Update docs
  • Loading branch information
Raunak Bhagat authored Oct 10, 2024
2 parents 143f12b + 0205c18 commit d4952e2
Show file tree
Hide file tree
Showing 20 changed files with 274 additions and 272 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-mdbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ jobs:
id: pages
uses: actions/configure-pages@v5
- name: Build with mdBook
run: mdbook build docs/book
run: mdbook build docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/book/book
path: ./docs/book

deploy-book:
environment:
Expand Down
12 changes: 9 additions & 3 deletions daft_launcher/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
DEFAULT_CONFIG_PATH = Path(".daft.toml")


def generate_intro_message():
summary = metadata.metadata("daft-launcher").get("Summary")
info_string = "For more documentation, please visit:\n\nhttps://eventual-inc.github.io/daft-launcher"
return f"{summary}\n\n{info_string}"


def get_config_path(config: Optional[Path]) -> Path:
if config:
if not config.exists():
Expand Down Expand Up @@ -40,9 +46,9 @@ def get_new_configuration_file_path(name: Optional[Path]) -> Path:
if name.is_file():
raise click.UsageError(f"A configuration file at path {name} already exists.")
elif name.is_dir():
raise click.UsageError(f"That is the path to a directory; please pass in a file name.")
raise click.UsageError("That is the path to a directory; please pass in a file name.")
elif name.exists():
raise click.UsageError(f"That path already exists; please use a new one.")
raise click.UsageError("That path already exists; please use a new one.")

return name

Expand Down Expand Up @@ -193,7 +199,7 @@ def down(config: Optional[Path]):
commands.down(config)


@click.group(help=metadata.metadata("daft-launcher").get("Summary"))
@click.group(help=generate_intro_message())
@click.version_option(version=metadata.version("daft-launcher"))
def cli(): ...

Expand Down
File renamed without changes.
43 changes: 0 additions & 43 deletions docs/GETTING_STARTED.md

This file was deleted.

File renamed without changes.
6 changes: 0 additions & 6 deletions docs/book/src/SUMMARY.md

This file was deleted.

217 changes: 0 additions & 217 deletions docs/book/src/commands.md

This file was deleted.

13 changes: 13 additions & 0 deletions docs/src/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Summary

- [Introduction](./introduction.md)
- [Commands](./commands/mod.md)
- [Init Config](./commands/init-config.md)
- [Up](./commands/up.md)
- [Down](./commands/down.md)
- [List](./commands/list.md)
- [Submit](./commands/submit.md)
- [Dashboard](./commands/dashboard.md)
- [Sql](./commands/sql.md)
- [Example](./example.md)
- [Future Plans](./future_plans.md)
18 changes: 18 additions & 0 deletions docs/src/commands/dashboard.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## Dashboard

The dashboard command enables you to view the Ray dashboard of a specified cluster that you currently have running.
The way this is done is by establishing a port-forward over SSH from your local machine to the head node of the cluster (connecting `localhost:8265` to the remote head's `8265`).
The head node then serves some HTML/CSS/JS that you can view in your browser by pointing it towards `localhost:8265`).

An important thing to note is that this command will require that you have the appropriate private SSH keypair to authenticate against the remote head's public SSH keypair.
You will need to pass this SSH keypair as an argument to the command.

### Example

```bash
# establish the port-forward using the default .daft.toml configuration file
daft dashboard -i my-keypair.pem

# or, if you want, establish the port-forward using a custom configuration file
daft dashboard -c my-custom-config.toml -i my-keypair.pem
```
17 changes: 17 additions & 0 deletions docs/src/commands/down.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## Down

The down command is pretty much the opposite of the up command.
It takes the cluster specified in the configuration file and tears it down.

### Example

```bash
# spin down a cluster using the default .daft.toml configuration file
daft down

# or, if you want, spin down a cluster using a custom configuration file
daft down -c my-custom-config.toml
```

This command will tear down *all* instances in the cluster, not just the head node.
When each instance has been requested to shut down, the command will return successfully.
Loading

0 comments on commit d4952e2

Please sign in to comment.