Giter Club home page Giter Club logo

ya-runtime-dbg's Introduction

ya-runtime-dbg

A debugging tool for yagna runtimes based on 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.

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.

Check the releases page for deb and tar.gz packages (x64 and Linux only) of this tool.

Command line

USAGE:
    ya-runtime-dbg [FLAGS] [OPTIONS] --runtime <runtime> --task-package <task-package> --workdir <workdir> [varargs]...

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

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

ARGS:
    <varargs>...    Additional runtime arguments

Example invocation

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 topic on GH.

ya-runtime-dbg's People

Contributors

mfranciszkiewicz avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

ya-runtime-dbg's Issues

Run debugger shell commands through bash

This would enable some bash features (e.g. bash syntax, shell expansion, PATH lookup). Any potential shortcomings can be listed as "known limitations" in the project's documentation.

`ya-runtime-dbg` requires full path to the .gvmi file

$ ya-runtime-dbg --runtime /home/[user]/.local/lib/yagna/plugins/ya-runtime-vm/ya-runtime-vm --workdir /home/[user]/yagna-workdir --task-package docker-blender-latest-cd3a73334d.gvmi 

output:

[INFO] Arguments: /home/[blue]/.local/lib/yagna/plugins/ya-runtime-vm/ya-runtime-vm --workdir /home/[user]/yagna-workdir --task-package docker-blender-latest-cd3a73334d.gvmi
[INFO] Deploying
Error:
No such file or directory
(os error
2
)
Error: deployment failed

Caused by:
    deployment failed

after providing full path to the GVMI, it works correctly ... giving ./docker-blender-latest-cd3a73334d.gvmi as --task-package doesn't help, full path is required

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.