Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

environment support for commands run on the providers #73

Open
shadeofblue opened this issue Dec 8, 2022 · 2 comments
Open

environment support for commands run on the providers #73

shadeofblue opened this issue Dec 8, 2022 · 2 comments
Labels
blocked Waiting for some dependencies

Comments

@shadeofblue
Copy link
Contributor

we'd like add an environment definition similar to what's available in docker-compose

e.g.

nodes:
  backend:
    payload: "backend"
    environment: 
      PROVIDER_ADDRESS: "http://bor.golem.network/"
      MONGO_DB_CONNECTION_STRING: "mongodb://192.168.0.2:27017"
...

it should be passed to all commands that are executed on the given node (Service)

yapapi should support this:

https://github.com/golemfactory/yapapi/blob/master/yapapi/script/__init__.py#L154

but maybe first we should perform a quick spike:

@approxit approxit added the blocked Waiting for some dependencies label Feb 13, 2023
@approxit
Copy link
Contributor

We need to decide following things:

  • Do we want to implement this in dapp descriptor?
  • Do we have defined syntax for this in dapp descriptor?
  • What about env variables for non-vm runtimes?

@approxit
Copy link
Contributor

See golemfactory/yagna#2448 for yagna implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Waiting for some dependencies
Projects
None yet
Development

No branches or pull requests

2 participants