-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
60d955b
commit 3648d91
Showing
94 changed files
with
299 additions
and
175 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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// !!!!!!!!!!! DO NOT UPDATE! WILL BE MANUALLY UPDATED DURING THE RELEASE PROCESS !!!!!!!!!!!!!!!!!!!!!! | ||
// This is necessary so that Kurt Core consumers (e.g. modules) will know if they're compatible with the currently-running | ||
// API container | ||
export const KURTOSIS_VERSION: string = "0.76.7" | ||
export const KURTOSIS_VERSION: string = "0.76.8" | ||
// !!!!!!!!!!! DO NOT UPDATE! WILL BE MANUALLY UPDATED DURING THE RELEASE PROCESS !!!!!!!!!!!!!!!!!!!!!! |
14 changes: 0 additions & 14 deletions
14
docs/versioned_docs/version-0.76.3/cli-reference/files-upload.md
This file was deleted.
Oops, something went wrong.
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,44 @@ | ||
--- | ||
title: Best Practices | ||
sidebar_label: Best Practices | ||
slug: /best-practices | ||
--- | ||
|
||
Passing package arguments to the CLI | ||
------------------------------- | ||
Passing [package arguments][args-concepts-reference] to the CLI can get hairy due to the interaction between Bash and JSON quotes. The following are tips to make your life easier: | ||
|
||
1. **When you have a small number of arguments:** surround the arguments with single quotes so you don't have to escape double quotes in your JSON. E.g.: | ||
```bash | ||
kurtosis run github.com/user/repo '{"some_param":5,"some_other_param":"My value"}' | ||
``` | ||
1. **When you have a large number of arguments:** put them in a `.json` file and use [Bash command substitution](https://www.gnu.org/software/bash/manual/html_node/Command-Substitution.html) _inside double quotes_ to slot them into the `kurtosis run` command. E.g.: | ||
```bash | ||
kurtosis run github.com/user/repo "$(cat my-args.json)" | ||
``` | ||
The double quotes around the `$(cat my-args.json)` are important so any spaces inside `my-args.json` don't fool Bash into thinking you're passing in two separate arguments. | ||
|
||
Choosing the right wait | ||
----------------------- | ||
Kurtosis has three different types of waits. Described here are the three, with tips on when to use each: | ||
|
||
1. Automatic waiting on port availability when a service starts (enabled by default; can be configured with [`PortSpec.wait`][port-spec-starlark-reference]) | ||
- Should be sufficient for most usecases | ||
- Requires little-to-no extra configuration | ||
- Will cause parallel `Plan.add_services` to fail, allowing for quick aborting | ||
1. Waiting on [`ReadyCondition`][ready-condition-starlark-reference]s (configured in [`ServiceConfig`][service-config-starlark-reference]) | ||
- Allows for more advanced checking (e.g. require a certain HTTP response body, ensure a CLI call returns success, etc.) | ||
- More complex to configure | ||
- Will cause parallel `Plan.add_services` to fail, allowing for quick aborting | ||
1. The [`Plan.wait`][plan-wait-starlark-reference] | ||
- Most useful for asserting the system has reached a desired state in tests (e.g. wait until data shows up after loading) | ||
- More complex to configure | ||
- Cannot be used to short-circuit `Plan.add_services` | ||
|
||
<!---------------------------------------- ONLY LINKS BELOW HERE!!! -----------------------------------> | ||
[args-concepts-reference]: ./concepts-reference/args.md | ||
|
||
[service-config-starlark-reference]: ./starlark-reference/service-config.md | ||
[port-spec-starlark-reference]: ./starlark-reference/port-spec.md | ||
[ready-condition-starlark-reference]: ./starlark-reference/ready-condition.md | ||
[plan-wait-starlark-reference]: ./starlark-reference/plan.md#wait |
51 changes: 51 additions & 0 deletions
51
...ersioned_docs/version-0.76.3/changelog.md → ...ersioned_docs/version-0.76.8/changelog.md
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
docs/versioned_docs/version-0.76.8/cli-reference/files-upload.md
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,17 @@ | ||
--- | ||
title: files upload | ||
sidebar_label: files upload | ||
slug: /files-upload | ||
--- | ||
|
||
Files can be stored as a [files artifact][files-artifacts] inside an enclave by uploading them: | ||
|
||
```bash | ||
kurtosis files upload $THE_ENCLAVE_IDENTIFIER $PATH_TO_FILES | ||
``` | ||
|
||
where `$THE_ENCLAVE_IDENTIFIER` is the [resource identifier][resource-identifier] for the enclave. | ||
|
||
<!-------------------- ONLY LINKS BELOW THIS POINT -----------------------> | ||
[files-artifacts]: ../concepts-reference/files-artifacts.md | ||
[resource-identifier]: ../concepts-reference/resource-identifier.md |
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
37 changes: 37 additions & 0 deletions
37
docs/versioned_docs/version-0.76.8/concepts-reference/args.md
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,37 @@ | ||
--- | ||
title: Args | ||
sidebar_label: Args | ||
--- | ||
|
||
Kurtosis [packages][packages-reference] can be parameterized with arguments. Arguments can be passed in via the CLI when running the package. | ||
|
||
To make your package take in arguments, first change your `run` function from: | ||
|
||
```python | ||
def run(plan): | ||
``` | ||
|
||
to: | ||
|
||
```python | ||
def run(plan, args) | ||
``` | ||
|
||
Then pass JSON-serialized arg values to `kurtosis run` in the CLI. For example: | ||
|
||
```bash | ||
kurtosis run github.com/USERNAME/REPO '{"some_parameter":"some_value","some_other_param":5}' | ||
``` | ||
|
||
Kurtosis will automatically JSON-deserialize the JSON string, and then pass it in to the `run` function in Starlark. | ||
|
||
The JSON passed in via the command line will be deserialized to a dictionary in Starlark (_not_ a `struct`). So to access the args above, your `main.star` might look like: | ||
|
||
```python | ||
def run(plan, args): | ||
plan.print("some_parameter value: " + args["some_parameter"]) | ||
plan.print("some_other_param value: " + args["some_other_param"]) | ||
``` | ||
|
||
<!------------------------------------- ONLY LINKS BELOW HERE ---------------------------------> | ||
[packages-reference]: ./packages.md |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,15 @@ | ||
--- | ||
title: Package Index | ||
sidebar_label: Package Index | ||
slug: /package-index | ||
--- | ||
|
||
This page lists where you can find many different types of Kurtosis [packages][packages-concepts-reference]: | ||
|
||
- [Awesome Kurtosis][awesome-kurtosis]: A repo containing many different examples of Kurtosis usage across web2 and web3 | ||
- [Official Kurtosis packages on Github](https://github.com/kurtosis-tech?q=package+in%3Aname&type=&language=): The multitude of Kurtosis-maintained packages, including the rising [AutoGPT package](https://github.com/kurtosis-tech/autogpt-package) | ||
- [Third-party packages on Github](https://github.com/search?q=-user%3Akurtosis-tech+path%3A**%2Fkurtosis.yml&type=code): Kurtosis packages written by non-Kurtosis parties | ||
|
||
<!---------------------------------------- ONLY LINKS BELOW HERE!!! -----------------------------------> | ||
[awesome-kurtosis]: https://github.com/kurtosis-tech/awesome-kurtosis | ||
[packages-concepts-reference]: ./concepts-reference/packages.md |
Oops, something went wrong.