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

Passing common parameters to all isolates of one node #91

Open
debbabi opened this issue Apr 5, 2017 · 1 comment
Open

Passing common parameters to all isolates of one node #91

debbabi opened this issue Apr 5, 2017 · 1 comment
Assignees
Milestone

Comments

@debbabi
Copy link
Member

debbabi commented Apr 5, 2017

It is needed to have the possibility to passe several parameters to all the isolates of one node.

Whan starting the node, we could set several parameters (using --envs for instance).
These parameters are passed to all the isolates (Python and Java).
We should have an internal service that allows retrieving these parameters.
We could use system environment variables to store these parameters.

@debbabi debbabi added this to the 1.3.0 milestone Apr 5, 2017
@ogattaz
Copy link
Contributor

ogattaz commented Jul 28, 2017

@see
https://stackoverflow.com/questions/2231227/python-subprocess-popen-with-a-modified-environment

import subprocess, os
my_env = os.environ.copy()
my_env["PATH"] = "/usr/sbin:/sbin:" + my_env["PATH"]
subprocess.Popen(my_command, env=my_env)

@pisua pisua self-assigned this Aug 21, 2017
debbabi added a commit that referenced this issue Aug 22, 2017
* 'master' of https://github.com/cohorte/cohorte-platforms:
  #91 add --env parameter for start_node to pass it to boot.py
  #93 revert modif. it crashes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants