jelastic - Unable to set "Environment Variable" -
i want run script /usr/sbin/run.sh when start container on jelastic, did following:
- set environment variable, path = /usr/sbin
- in run command section, set run.sh
then follow normal procedure add container on jelastic, gave following error(everything fine if don't set environment variable , run command):
{"result":99,"source":"jel","error":"java.lang.nullpointerexception","params":{"extip":"false","session":"114x1d38909aa5d9848b418276a6ca653875","actionkey":"changetopology;dbde54d07b423f0a770cf08727f19272;licds30","fixedcloudlets":"1","ismaster":"false","flexiblecloudlets":"16","appid":"dbde54d07b423f0a770cf08727f19272","nodetype":"docker","displayname":"licds30/baoqi:v3","metadata":{"dockerhubuser":"sdfs23fs","dockername":"licds30/baoqi","dockerrunargs":"run.sh","dockerhuburl":"https://index.docker.io/","dockerenvvars":{"path":"/usr/sbin"},"layer":"cp","dockertag":"v3","dockerhubpassword":"xxs23saddjd"}},"methodname":"addnode(docker)"}
can advise how resolve issue?
many thanks!
j.
as know environment variables set of dynamic named values can affect way running processes behave on computer. https://en.wikipedia.org/wiki/environment_variable
in jelastic docker's environment variables designed specifying of destination directory/application paths , specifying of specific/needed information ports, hosts, enabled/disabled features.
in case correct scenario set environment variable home = /usr/sbin, since default location of home directory /root.
environment variable path contains colon-separated list of directories shell searches commands not contain slash in name (commands slashes interpreted file names execute, , shell attempts execute files directly) in other words determines location of main system components. (for example: when executing command ping system runs binary of program located @ /bin/ping)
Comments
Post a Comment