Reordering install_lightweight to init swarm before building docker images 34/6734/12
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 22 Oct 2018 14:47:28 +0000 (16:47 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 7 Nov 2018 01:03:12 +0000 (02:03 +0100)
Change-Id: Id6700aa6eba58cc85d407fdce1756d01237bd298
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
installers/full_install_osm.sh

index ddff44a..36049cc 100755 (executable)
@@ -959,12 +959,12 @@ function install_lightweight() {
     [ -n "$INSTALL_NODOCKER" ] || install_docker_ce
     track docker_ce
     #install_docker_compose
+    [ -n "$INSTALL_NODOCKER" ] || init_docker_swarm
     [ -z "$DOCKER_NOBUILD" ] && generate_docker_images
     track docker_build
     generate_docker_env_files
     generate_config_log_folders
 
-    [ -n "$INSTALL_NODOCKER" ] || init_docker_swarm
     # remove old stack
     remove_stack $OSM_STACK_NAME
     create_docker_network