Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/golemfactory/ya-runtime-dbg

A debugging tool for yagna runtimes based on runtime API
https://github.com/golemfactory/ya-runtime-dbg

golem ya-runtime

Last synced: about 1 month ago
JSON representation

A debugging tool for yagna runtimes based on runtime API

Awesome Lists containing this project

README

        

# ya-runtime-dbg

A debugging tool for [yagna](https://github.com/golemfactory/yagna) runtimes based on [runtime API](https://github.com/golemfactory/yagna/tree/master/exe-unit/runtime-api).

**Runtimes** are execution environments for applications built on `yagna`; e.g. `ya-runtime-vm` executes user-built images in a Virtual Machine environment.
A tutorial on building an app can be found [here](https://handbook.golem.network/requestor-tutorials/create-your-own-application-on-golem).

## Installation

In order to use this tool, you need to install the runtime of your interest. To install the default runtimes, follow [this part of the handbook](https://handbook.golem.network/provider-tutorials/provider-tutorial#installation).

Check the [releases](https://github.com/golemfactory/ya-runtime-dbg/releases) page for `deb` and `tar.gz` packages (x64 and Linux only) of this tool.

## Command line

```bash
USAGE:
ya-runtime-dbg [FLAGS] [OPTIONS] --runtime --task-package --workdir [varargs]...

FLAGS:
--no-deploy Skip deployment phase
-h, --help Prints help information
-V, --version Prints version information

OPTIONS:
--exec-mode Mode to execute commands in [default: shell] [possible values:
Shell, Exec]
--exec-shell Execution shell (for "--exec-mode shell" or default mode) [default:
bash]
-r, --runtime Runtime binary
-w, --workdir Working directory
-t, --task-package Task package to deploy
-p, --protocol Service protocol version [default: 0.1.0]

ARGS:
... Additional runtime arguments
```

## Example invocation

```bash
ya-runtime-dbg --runtime /usr/lib/yagna/plugins/ya-runtime-vm/ya-runtime-vm \
--task-package /tmp/image.gvmi \
--workdir /tmp/runtime \
-- --cpu-cores 2
```

## Available runtimes

Available runtimes can be discovered via [ya-runtime](https://github.com/topics/ya-runtime) topic on GH.