diff --git a/Samples/HelloWorld/README.md b/Samples/HelloWorld/README.md index face90a..2adaaef 100644 --- a/Samples/HelloWorld/README.md +++ b/Samples/HelloWorld/README.md @@ -38,17 +38,24 @@ the configuration information that will be used by the export AMBROSIA_IMMORTALCOORDINATOR_PORT=1500 export AZURE_STORAGE_CONN_STRING=... -To launch a service +To launch a service we're going to use a convenience script called +`runAmbrosiaService.sh` which is included in the binary distribution +of AMBROSIA. This handles starting the immortal coordinator and +monitorying its health. (You could start ImmortalCoordinator +yourself, as well + + + + -docker run -it --rm --env "AZURE_STORAGE_CONN_STRING=$AZURE_STORAGE_CONN_STRING" \ - --env --env "AMBROSIA_IMMORTALCOORDINATOR_PORT=1600" \ - ambrosia-hello runAmbrosiaService.sh dotnet Client2/publish/Client2.dll $CNAME $SNAME Building and Running: Docker ---------------------------- - +docker run -it --rm --env "AZURE_STORAGE_CONN_STRING=$AZURE_STORAGE_CONN_STRING" \ + --env --env "AMBROSIA_IMMORTALCOORDINATOR_PORT=1600" \ + ambrosia-hello runAmbrosiaService.sh dotnet Client2/publish/Client2.dll $CNAME $SNAME Building and Running: Windows / Visual Studio diff --git a/Scripts/runAmbrosiaService.sh b/Scripts/runAmbrosiaService.sh index d631024..af878f3 100755 --- a/Scripts/runAmbrosiaService.sh +++ b/Scripts/runAmbrosiaService.sh @@ -221,7 +221,9 @@ start_immortal_coordinator -i $AMBROSIA_INSTANCE_NAME -p $AMBROSIA_IMMORTALCOORD # Step 2: echo " $TAG Launching app process alongside coordinator:" set -x -if [ -e /dev/stdin ]; then + +# Test for interactive shell: +if tty -s; then $* < /dev/stdin & app_pid=$! else