From: Mike Marchetti Date: Thu, 14 Jun 2018 19:06:21 +0000 (-0400) Subject: Add restart always options to vim-emu container X-Git-Tag: BUILD_v4.0.1_1~12 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F75%2F6275%2F1;p=osm%2Fdevops.git Add restart always options to vim-emu container Change-Id: I9e96bc1ff537143eb3b0cf87810dc0923efe1b40 Signed-off-by: Mike Marchetti --- diff --git a/installers/full_install_osm.sh b/installers/full_install_osm.sh index 2286aa4b..3e675e16 100755 --- a/installers/full_install_osm.sh +++ b/installers/full_install_osm.sh @@ -777,10 +777,10 @@ function install_vimemu() { echo "Starting vim-emu Docker container 'vim-emu' ..." if [ -n "$INSTALL_LIGHTWEIGHT" ]; then # in lightweight mode, the emulator needs to be attached to netOSM - sudo docker run --name vim-emu -t -d --rm --privileged --pid='host' --network=netOSM -v /var/run/docker.sock:/var/run/docker.sock vim-emu-img python examples/osm_default_daemon_topology_2_pop.py + sudo docker run --name vim-emu -t -d --restart always --privileged --pid='host' --network=netOSM -v /var/run/docker.sock:/var/run/docker.sock vim-emu-img python examples/osm_default_daemon_topology_2_pop.py else # classic build mode - sudo docker run --name vim-emu -t -d --rm --privileged --pid='host' -v /var/run/docker.sock:/var/run/docker.sock vim-emu-img python examples/osm_default_daemon_topology_2_pop.py + sudo docker run --name vim-emu -t -d --restart always --privileged --pid='host' -v /var/run/docker.sock:/var/run/docker.sock vim-emu-img python examples/osm_default_daemon_topology_2_pop.py fi echo "Waiting for 'vim-emu' container to start ..." sleep 5