-
Notifications
You must be signed in to change notification settings - Fork 52
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
Showing
2 changed files
with
30 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
title: StoreSpec | ||
sidebar_label: StoreSpec | ||
--- | ||
|
||
The `StoreSpec` is used to configure how to store a file on the a [`run_sh`][run-sh-reference] and a [`run_python`][run-python-reference] container as a files artifact | ||
|
||
```python | ||
config = StoreSpec( | ||
# The path on the task container that needs to be stored in a files artifact | ||
# MANDATORY | ||
src = "/foo/bar", | ||
|
||
# The name of the files artifact; needs to be unique in the enclave | ||
# This is optional; if not provided Kurtosis will create a nature themed name | ||
name = "divine-pool" | ||
) | ||
``` | ||
|
||
Note the `StoreSpec` object is provided as a list to `run_sh` and `run_python` instructions to the `store` attribtute. Within | ||
one list both the `src` needs to be unique; while the `name` needs to be `unique` for the entire enclave. | ||
|
||
<!--------------- ONLY LINKS BELOW THIS POINT ----------------------> | ||
[run-python-reference]: ./plan.md#run_python | ||
[run-sh-reference]: ./plan.md#run_sh |