GRIDAPPSD / GOSS-GridAPPS-D

14 stars 27 forks source link

Add environmental variable to autostart the platform #1716

Open craig8 opened 1 year ago

craig8 commented 1 year ago

Is your feature request related to a problem? Please describe. Allow a gridappsd server to be run without executing ./run-gridappsd.sh in the container.

Describe the solution you'd like Adding the -Dgosh.args=--nointeractive allows the container to be run inside docker without nohup or any other means

java -Dgosh.args=--nointeractive -jar lib/run.bnd.jar

In the entrypoint.sh script that is run when the gridappsd container starts up, I would like to have an environmental variable GRIDAPPSD_AUTO_START to allow this switch to be thrown. This would allow testing to setup a single time and run multiple simulations and gather output.

Describe alternatives you've considered I have actually not found any other way to allow the server to start correctly. Perhaps a shell in a shell?