Skip to content

Commit

Permalink
Merge pull request #70 from golemfactory/feature/JST-491/TaskAPI-shell
Browse files Browse the repository at this point in the history
Feature/jst 491/task api shell
  • Loading branch information
cryptobench authored Oct 26, 2023
2 parents 5e284d7 + 027b008 commit 9b95b32
Show file tree
Hide file tree
Showing 14 changed files with 1,305 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
name: Build and unit-test on supported platforms and NodeJS versions
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
node-version: [18.x, 20.x]
os: [ubuntu-latest, windows-latest, macos-latest]

runs-on: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
name: Build and unit-test on supported platforms and NodeJS versions
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
node-version: [18.x, 20.x]
os: [ubuntu-latest, windows-latest, macos-latest]

runs-on: ${{ matrix.os }}
Expand Down
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,33 @@ Manifest matches signature.

It is important to use this command to make sure the key you are using is compatible with your certificate.

### Run-on-golem

The `run-on-golem` command allows you to run an image on the Golem Network without the need to create a full Golem application.
Now you can test, debug and validate images without having to writing a single line of code.

By default, `run-on-golem` will try to use your manifest file from the current directory. You can override this behaviour by using the `--manifest` option
or by providing the `--image` option.

Example:

```shell
golem-sdk run-on-golem --image=golem/node:20-alpine
```

Once you run the command, the CLI will deploy the image to one of the providers and you will be presented with an interactive shell. You can type `?` in order to get a list of all available commands.

Within the shell, you can quickly test your application by running commands on the image, as well as uploading and downloading files.

You can run commands without an interactive shell ether by passing the commands you want to run using the `--execute` option or using a batch file:

Examples:

```shell
golem-sdk run-on-golem --execute "upload localfile.txt /golem/input; run 'ls /golem/input'"
golem-sdk run-on-golem batchfile.txt
```

## Contributing

If you'd like to contribute to the project, you can fork the repository and create a Pull Request.
Expand Down
Loading

0 comments on commit 9b95b32

Please sign in to comment.